7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_MICS_H_
8#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_MICS_H_
29#if defined(CONFIG_BT_MICS)
30#define BT_MICS_AICS_CNT CONFIG_BT_MICS_AICS_INSTANCE_COUNT
32#define BT_MICS_AICS_CNT 0
36#define BT_MICS_ERR_MUTE_DISABLED 0x80
37#define BT_MICS_ERR_VAL_OUT_OF_RANGE 0x81
40#define BT_MICS_MUTE_UNMUTED 0x00
41#define BT_MICS_MUTE_MUTED 0x01
42#define BT_MICS_MUTE_DISABLED 0x02
83 struct bt_mics **mics);
151#if defined(CONFIG_BT_MICS_CLIENT)
void
Definition: eswifi_shell.c:15
int bt_mics_aics_activate(struct bt_mics *mics, struct bt_aics *inst)
Activates a Audio Input Control Service instance.
int bt_mics_aics_unmute(struct bt_mics *mics, struct bt_aics *inst)
Unmute the Audio Input Control Service input.
int bt_mics_aics_state_get(struct bt_mics *mics, struct bt_aics *inst)
Read the Audio Input Control Service input state.
int bt_mics_register(struct bt_mics_register_param *param, struct bt_mics **mics)
Initialize the Microphone Input Control Service.
int bt_mics_client_conn_get(const struct bt_mics *mics, struct bt_conn **conn)
Get the connection pointer of a client instance.
void(* bt_mics_mute_write_cb)(struct bt_mics *mics, int err)
Callback function for Microphone Input Control Service mute/unmute.
Definition: mics.h:146
int bt_mics_mute_get(struct bt_mics *mics)
Read the mute state of a Microphone Input Control Service.
int bt_mics_mute_disable(struct bt_mics *mics)
Disable the mute functionality.
void(* bt_mics_discover_cb)(struct bt_mics *mics, int err, uint8_t aics_count)
Callback function for bt_mics_discover.
Definition: mics.h:123
void(* bt_mics_mute_read_cb)(struct bt_mics *mics, int err, uint8_t mute)
Callback function for Microphone Input Control Service mute.
Definition: mics.h:137
int bt_mics_aics_gain_setting_get(struct bt_mics *mics, struct bt_aics *inst)
Read the Audio Input Control Service gain settings.
int bt_mics_aics_description_get(struct bt_mics *mics, struct bt_aics *inst)
Read the Audio Input Control Service description.
int bt_mics_aics_deactivate(struct bt_mics *mics, struct bt_aics *inst)
Deactivates a Audio Input Control Service instance.
int bt_mics_included_get(struct bt_mics *mics, struct bt_mics_included *included)
Get Microphone Input Control Service included services.
int bt_mics_aics_manual_gain_set(struct bt_mics *mics, struct bt_aics *inst)
Set Audio Input Control Service gain mode to manual.
#define BT_MICS_AICS_CNT
Definition: mics.h:32
int bt_mics_mute(struct bt_mics *mics)
Mute the server.
int bt_mics_aics_status_get(struct bt_mics *mics, struct bt_aics *inst)
Read the Audio Input Control Service input status.
int bt_mics_unmute(struct bt_mics *mics)
Unmute the server.
int bt_mics_aics_automatic_gain_set(struct bt_mics *mics, struct bt_aics *inst)
Set Audio Input Control Service gain mode to automatic.
int bt_mics_aics_mute(struct bt_mics *mics, struct bt_aics *inst)
Mute the Audio Input Control Service input.
int bt_mics_discover(struct bt_conn *conn, struct bt_mics **mics)
Discover Microphone Input Control Service.
int bt_mics_aics_description_set(struct bt_mics *mics, struct bt_aics *inst, const char *description)
Set the Audio Input Control Service description.
int bt_mics_client_cb_register(struct bt_mics_cb *cb)
Registers the callbacks used by Microphone Input Control Service client.
int bt_mics_aics_gain_set(struct bt_mics *mics, struct bt_aics *inst, int8_t gain)
Set Audio Input Control Service input gain.
int bt_mics_aics_type_get(struct bt_mics *mics, struct bt_aics *inst)
Read the Audio Input Control Service input type.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__INT8_TYPE__ int8_t
Definition: stdint.h:42
bt_aics_description_cb description
Definition: aics.h:260
Structure for initializing a Audio Input Control Service instance.
Definition: aics.h:67
bt_mics_mute_read_cb mute
Definition: mics.h:149
Microphone Input Control Service included services.
Definition: mics.h:63
uint8_t aics_cnt
Definition: mics.h:65
struct bt_aics ** aics
Definition: mics.h:67
Register parameters structure for Microphone Input Control Service.
Definition: mics.h:48
struct bt_mics_cb * cb
Definition: mics.h:53
struct bt_aics_register_param aics_param[0]
Definition: mics.h:50