7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MICP_H_ 
    8#define ZEPHYR_INCLUDE_BLUETOOTH_MICP_H_ 
   29#if defined(CONFIG_BT_MICP_MIC_DEV) 
   30#define BT_MICP_MIC_DEV_AICS_CNT CONFIG_BT_MICP_MIC_DEV_AICS_INSTANCE_COUNT 
   32#define BT_MICP_MIC_DEV_AICS_CNT 0 
   36#define BT_MICP_ERR_MUTE_DISABLED                  0x80 
   37#define BT_MICP_ERR_VAL_OUT_OF_RANGE               0x81 
   40#define BT_MICP_MUTE_UNMUTED                       0x00 
   41#define BT_MICP_MUTE_MUTED                         0x01 
   42#define BT_MICP_MUTE_DISABLED                      0x02 
   45struct bt_micp_mic_ctlr;
 
   49#if defined(CONFIG_BT_MICP_MIC_DEV_AICS) 
  165        void (*
discover)(
struct bt_micp_mic_ctlr *mic_ctlr, 
int err,
 
  184#if defined(CONFIG_BT_MICP_MIC_CTLR_AICS) 
  218                              struct bt_conn **conn);
 
  234                              struct bt_micp_mic_ctlr **mic_ctlr);
 
int bt_micp_mic_dev_included_get(struct bt_micp_included *included)
Get Microphone Device included services.
 
int bt_micp_mic_ctlr_cb_register(struct bt_micp_mic_ctlr_cb *cb)
Registers the callbacks used by Microphone Controller.
 
int bt_micp_mic_dev_unmute(void)
Unmute the Microphone Device.
 
int bt_micp_mic_ctlr_included_get(struct bt_micp_mic_ctlr *mic_ctlr, struct bt_micp_included *included)
Get Microphone Input Control Profile included services.
 
int bt_micp_mic_ctlr_discover(struct bt_conn *conn, struct bt_micp_mic_ctlr **mic_ctlr)
Discover Microphone Input Control Service.
 
int bt_micp_mic_dev_mute_get(void)
Read the mute state on the Microphone Device.
 
int bt_micp_mic_ctlr_mute(struct bt_micp_mic_ctlr *mic_ctlr)
Mute a remote Microphone Device.
 
#define BT_MICP_MIC_DEV_AICS_CNT
Definition: micp.h:32
 
int bt_micp_mic_dev_mute(void)
Mute the Microphone Device.
 
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_mute_get(struct bt_micp_mic_ctlr *mic_ctlr)
Read the mute state of a remote Microphone Device.
 
int bt_micp_mic_dev_mute_disable(void)
Disable the mute functionality on the Microphone Device.
 
int bt_micp_mic_dev_register(struct bt_micp_mic_dev_register_param *param)
Initialize the Microphone Input Control Profile Microphone Device.
 
int bt_micp_mic_ctlr_unmute(struct bt_micp_mic_ctlr *mic_ctlr)
Unmute a remote Microphone Device.
 
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
 
Structure for initializing a Audio Input Control Service instance.
Definition: aics.h:67
 
Microphone Input Control Profile included services.
Definition: micp.h:66
 
struct bt_aics ** aics
Definition: micp.h:70
 
uint8_t aics_cnt
Definition: micp.h:68
 
void(* unmute_written)(struct bt_micp_mic_ctlr *mic_ctlr, int err)
Callback function for Microphone Input Control Profile mute/unmute.
Definition: micp.h:182
 
void(* mute)(struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t mute)
Callback function for Microphone Input Control Profile mute.
Definition: micp.h:155
 
void(* discover)(struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t aics_count)
Callback function for bt_micp_mic_ctlr_discover().
Definition: micp.h:165
 
void(* mute_written)(struct bt_micp_mic_ctlr *mic_ctlr, int err)
Callback function for Microphone Input Control Profile mute/unmute.
Definition: micp.h:174
 
void(* mute)(uint8_t mute)
Callback function for Microphone Device mute.
Definition: micp.h:109
 
Register parameters structure for Microphone Input Control Service.
Definition: micp.h:48
 
struct bt_micp_mic_dev_cb * cb
Definition: micp.h:55