Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_micp_mic_ctlr_cb Struct Reference

Struct to hold the Microphone Controller callbacks. More...

#include <micp.h>

Data Fields

void(* mute )(struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t mute)
 Callback function for Microphone Control Profile mute.
 
void(* discover )(struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t aics_count)
 Callback function for bt_micp_mic_ctlr_discover().
 
void(* mute_written )(struct bt_micp_mic_ctlr *mic_ctlr, int err)
 Callback function for Microphone Control Profile mute/unmute.
 
void(* unmute_written )(struct bt_micp_mic_ctlr *mic_ctlr, int err)
 Callback function for Microphone Control Profile mute/unmute.
 

Detailed Description

Struct to hold the Microphone Controller callbacks.

These can be registered for usage with bt_micp_mic_ctlr_cb_register().

Field Documentation

◆ discover

void(* bt_micp_mic_ctlr_cb::discover) (struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t aics_count)

Callback function for bt_micp_mic_ctlr_discover().

Parameters
mic_ctlrMicrophone Controller instance pointer.
errError value. 0 on success, GATT error or errno on fail.
aics_countNumber of Audio Input Control Service instances on peer device.

◆ mute

void(* bt_micp_mic_ctlr_cb::mute) (struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t mute)

Callback function for Microphone Control Profile mute.

Called when the value is read, or if the value is changed by either the Microphone Device or a Microphone Controller.

Parameters
mic_ctlrMicrophone Controller instance pointer.
errError value. 0 on success, GATT error or errno on fail. For notifications, this will always be 0.
muteThe mute setting of the Microphone Control Service.

◆ mute_written

void(* bt_micp_mic_ctlr_cb::mute_written) (struct bt_micp_mic_ctlr *mic_ctlr, int err)

Callback function for Microphone Control Profile mute/unmute.

Parameters
mic_ctlrMicrophone Controller instance pointer.
errError value. 0 on success, GATT error or errno on fail.

◆ unmute_written

void(* bt_micp_mic_ctlr_cb::unmute_written) (struct bt_micp_mic_ctlr *mic_ctlr, int err)

Callback function for Microphone Control Profile mute/unmute.

Parameters
mic_ctlrMicrophone Controller instance pointer.
errError value. 0 on success, GATT error or errno on fail.

The documentation for this struct was generated from the following file: