Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
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. | |
Struct to hold the Microphone Controller callbacks.
These can be registered for usage with bt_micp_mic_ctlr_cb_register().
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().
mic_ctlr | Microphone Controller instance pointer. |
err | Error value. 0 on success, GATT error or errno on fail. |
aics_count | Number of Audio Input Control Service instances on peer device. |
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.
mic_ctlr | Microphone Controller instance pointer. |
err | Error value. 0 on success, GATT error or errno on fail. For notifications, this will always be 0. |
mute | The mute setting of the Microphone Control Service. |
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.
mic_ctlr | Microphone Controller instance pointer. |
err | Error value. 0 on success, GATT error or errno on fail. |
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.
mic_ctlr | Microphone Controller instance pointer. |
err | Error value. 0 on success, GATT error or errno on fail. |