Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
mics.h File Reference
#include <zephyr/types.h>
#include <bluetooth/audio/aics.h>

Go to the source code of this file.

Data Structures

struct  bt_mics_register_param
 Register parameters structure for Microphone Input Control Service. More...
 
struct  bt_mics_included
 Microphone Input Control Service included services. More...
 
struct  bt_mics_cb
 

Macros

#define BT_MICS_AICS_CNT   0
 
#define BT_MICS_ERR_MUTE_DISABLED   0x80
 
#define BT_MICS_ERR_VAL_OUT_OF_RANGE   0x81
 
#define BT_MICS_MUTE_UNMUTED   0x00
 
#define BT_MICS_MUTE_MUTED   0x01
 
#define BT_MICS_MUTE_DISABLED   0x02
 

Typedefs

typedef void(* bt_mics_discover_cb) (struct bt_mics *mics, int err, uint8_t aics_count)
 Callback function for bt_mics_discover. More...
 
typedef void(* bt_mics_mute_read_cb) (struct bt_mics *mics, int err, uint8_t mute)
 Callback function for Microphone Input Control Service mute. More...
 
typedef void(* bt_mics_mute_write_cb) (struct bt_mics *mics, int err)
 Callback function for Microphone Input Control Service mute/unmute. More...
 

Functions

int bt_mics_register (struct bt_mics_register_param *param, struct bt_mics **mics)
 Initialize the Microphone Input Control Service. More...
 
int bt_mics_included_get (struct bt_mics *mics, struct bt_mics_included *included)
 Get Microphone Input Control Service included services. More...
 
int bt_mics_client_conn_get (const struct bt_mics *mics, struct bt_conn **conn)
 Get the connection pointer of a client instance. More...
 
int bt_mics_discover (struct bt_conn *conn, struct bt_mics **mics)
 Discover Microphone Input Control Service. More...
 
int bt_mics_unmute (struct bt_mics *mics)
 Unmute the server. More...
 
int bt_mics_mute (struct bt_mics *mics)
 Mute the server. More...
 
int bt_mics_mute_disable (struct bt_mics *mics)
 Disable the mute functionality. More...
 
int bt_mics_mute_get (struct bt_mics *mics)
 Read the mute state of a Microphone Input Control Service. More...
 
int bt_mics_aics_state_get (struct bt_mics *mics, struct bt_aics *inst)
 Read the Audio Input Control Service input state. More...
 
int bt_mics_aics_gain_setting_get (struct bt_mics *mics, struct bt_aics *inst)
 Read the Audio Input Control Service gain settings. More...
 
int bt_mics_aics_type_get (struct bt_mics *mics, struct bt_aics *inst)
 Read the Audio Input Control Service input type. More...
 
int bt_mics_aics_status_get (struct bt_mics *mics, struct bt_aics *inst)
 Read the Audio Input Control Service input status. More...
 
int bt_mics_aics_unmute (struct bt_mics *mics, struct bt_aics *inst)
 Unmute the Audio Input Control Service input. More...
 
int bt_mics_aics_mute (struct bt_mics *mics, struct bt_aics *inst)
 Mute the Audio Input Control Service input. More...
 
int bt_mics_aics_manual_gain_set (struct bt_mics *mics, struct bt_aics *inst)
 Set Audio Input Control Service gain mode to manual. More...
 
int bt_mics_aics_automatic_gain_set (struct bt_mics *mics, struct bt_aics *inst)
 Set Audio Input Control Service gain mode to automatic. More...
 
int bt_mics_aics_gain_set (struct bt_mics *mics, struct bt_aics *inst, int8_t gain)
 Set Audio Input Control Service input gain. More...
 
int bt_mics_aics_description_get (struct bt_mics *mics, struct bt_aics *inst)
 Read the Audio Input Control Service description. More...
 
int bt_mics_aics_description_set (struct bt_mics *mics, struct bt_aics *inst, const char *description)
 Set the Audio Input Control Service description. More...
 
int bt_mics_aics_deactivate (struct bt_mics *mics, struct bt_aics *inst)
 Deactivates a Audio Input Control Service instance. More...
 
int bt_mics_aics_activate (struct bt_mics *mics, struct bt_aics *inst)
 Activates a Audio Input Control Service instance. More...
 
int bt_mics_client_cb_register (struct bt_mics_cb *cb)
 Registers the callbacks used by Microphone Input Control Service client. More...