Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
micp.h File Reference

Go to the source code of this file.

Data Structures

struct  bt_micp_mic_dev_register_param
 Register parameters structure for Microphone Control Service. More...
 
struct  bt_micp_included
 Microphone Control Profile included services. More...
 
struct  bt_micp_mic_dev_cb
 
struct  bt_micp_mic_ctlr_cb
 

Macros

#define BT_MICP_MIC_DEV_AICS_CNT   0
 
#define BT_MICP_ERR_MUTE_DISABLED   0x80
 Application error codes.
 
#define BT_MICP_MUTE_UNMUTED   0x00
 Microphone Control Profile mute states.
 
#define BT_MICP_MUTE_MUTED   0x01
 
#define BT_MICP_MUTE_DISABLED   0x02
 

Functions

int bt_micp_mic_dev_register (struct bt_micp_mic_dev_register_param *param)
 Initialize the Microphone Control Profile Microphone Device.
 
int bt_micp_mic_dev_included_get (struct bt_micp_included *included)
 Get Microphone Device included services.
 
int bt_micp_mic_dev_unmute (void)
 Unmute the Microphone Device.
 
int bt_micp_mic_dev_mute (void)
 Mute the Microphone Device.
 
int bt_micp_mic_dev_mute_disable (void)
 Disable the mute functionality on the Microphone Device.
 
int bt_micp_mic_dev_mute_get (void)
 Read the mute state on the Microphone Device.
 
int bt_micp_mic_ctlr_included_get (struct bt_micp_mic_ctlr *mic_ctlr, struct bt_micp_included *included)
 Get Microphone Control Profile included services.
 
int bt_micp_mic_ctlr_conn_get (const struct bt_micp_mic_ctlr *mic_ctlr, struct bt_conn **conn)
 Get the connection pointer of a Microphone Controller instance.
 
int bt_micp_mic_ctlr_discover (struct bt_conn *conn, struct bt_micp_mic_ctlr **mic_ctlr)
 Discover Microphone Control Service.
 
int bt_micp_mic_ctlr_unmute (struct bt_micp_mic_ctlr *mic_ctlr)
 Unmute a remote Microphone Device.
 
int bt_micp_mic_ctlr_mute (struct bt_micp_mic_ctlr *mic_ctlr)
 Mute a remote Microphone Device.
 
int bt_micp_mic_ctlr_mute_get (struct bt_micp_mic_ctlr *mic_ctlr)
 Read the mute state of a remote Microphone Device.
 
int bt_micp_mic_ctlr_cb_register (struct bt_micp_mic_ctlr_cb *cb)
 Registers the callbacks used by Microphone Controller.