Home
last modified time | relevance | path

Searched refs:bt_aics (Results 1 – 20 of 20) sorted by relevance

/Zephyr-Core-2.7.6/include/bluetooth/audio/
Daics.h64 struct bt_aics;
121 struct bt_aics *bt_aics_free_instance_get(void);
132 void *bt_aics_svc_decl_get(struct bt_aics *aics);
145 int bt_aics_client_conn_get(const struct bt_aics *aics, struct bt_conn **conn);
155 int bt_aics_register(struct bt_aics *aics, struct bt_aics_register_param *param);
164 typedef void (*bt_aics_write_cb)(struct bt_aics *inst, int err);
180 typedef void (*bt_aics_state_cb)(struct bt_aics *inst, int err, int8_t gain,
198 typedef void (*bt_aics_gain_setting_cb)(struct bt_aics *inst, int err,
213 typedef void (*bt_aics_type_cb)(struct bt_aics *inst, int err, uint8_t type);
226 typedef void (*bt_aics_status_cb)(struct bt_aics *inst, int err, bool active);
[all …]
Dmics.h67 struct bt_aics **aics;
225 int bt_mics_aics_state_get(struct bt_mics *mics, struct bt_aics *inst);
235 int bt_mics_aics_gain_setting_get(struct bt_mics *mics, struct bt_aics *inst);
245 int bt_mics_aics_type_get(struct bt_mics *mics, struct bt_aics *inst);
255 int bt_mics_aics_status_get(struct bt_mics *mics, struct bt_aics *inst);
265 int bt_mics_aics_unmute(struct bt_mics *mics, struct bt_aics *inst);
275 int bt_mics_aics_mute(struct bt_mics *mics, struct bt_aics *inst);
285 int bt_mics_aics_manual_gain_set(struct bt_mics *mics, struct bt_aics *inst);
295 int bt_mics_aics_automatic_gain_set(struct bt_mics *mics, struct bt_aics *inst);
306 int bt_mics_aics_gain_set(struct bt_mics *mics, struct bt_aics *inst,
[all …]
Dvcs.h86 struct bt_aics **aics;
399 int bt_vcs_aics_deactivate(struct bt_vcs *vcs, struct bt_aics *inst);
413 int bt_vcs_aics_activate(struct bt_vcs *vcs, struct bt_aics *inst);
423 int bt_vcs_aics_state_get(struct bt_vcs *vcs, struct bt_aics *inst);
433 int bt_vcs_aics_gain_setting_get(struct bt_vcs *vcs, struct bt_aics *inst);
443 int bt_vcs_aics_type_get(struct bt_vcs *vcs, struct bt_aics *inst);
453 int bt_vcs_aics_status_get(struct bt_vcs *vcs, struct bt_aics *inst);
463 int bt_vcs_aics_mute(struct bt_vcs *vcs, struct bt_aics *inst);
473 int bt_vcs_aics_unmute(struct bt_vcs *vcs, struct bt_aics *inst);
483 int bt_vcs_aics_manual_gain_set(struct bt_vcs *vcs, struct bt_aics *inst);
[all …]
/Zephyr-Core-2.7.6/subsys/bluetooth/audio/
Daics_internal.h98 struct bt_aics *inst;
106 struct bt_aics { struct
118 int bt_aics_client_register(struct bt_aics *inst); argument
119 int bt_aics_client_unregister(struct bt_aics *inst);
120 int bt_aics_client_state_get(struct bt_aics *inst);
121 int bt_aics_client_gain_setting_get(struct bt_aics *inst);
122 int bt_aics_client_type_get(struct bt_aics *inst);
123 int bt_aics_client_status_get(struct bt_aics *inst);
124 int bt_aics_client_unmute(struct bt_aics *inst);
125 int bt_aics_client_mute(struct bt_aics *inst);
[all …]
Dmics.c178 int bt_mics_aics_deactivate(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_deactivate()
201 int bt_mics_aics_activate(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_activate()
241 static bool valid_aics_inst(struct bt_mics *mics, struct bt_aics *aics) in valid_aics_inst()
357 int bt_mics_aics_state_get(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_state_get()
377 int bt_mics_aics_gain_setting_get(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_gain_setting_get()
392 int bt_mics_aics_type_get(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_type_get()
407 int bt_mics_aics_status_get(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_status_get()
421 int bt_mics_aics_unmute(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_unmute()
436 int bt_mics_aics_mute(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_mute()
451 int bt_mics_aics_manual_gain_set(struct bt_mics *mics, struct bt_aics *inst) in bt_mics_aics_manual_gain_set()
[all …]
Daics_client.c30 static struct bt_aics aics_insts[CONFIG_BT_MAX_CONN * CONFIG_BT_AICS_CLIENT_MAX_INSTANCE_COUNT];
32 static int aics_client_common_control(uint8_t opcode, struct bt_aics *inst);
34 static struct bt_aics *lookup_aics_by_handle(struct bt_conn *conn, uint16_t handle) in lookup_aics_by_handle()
54 struct bt_aics *inst = lookup_aics_by_handle(conn, handle); in aics_client_notify_handler()
116 struct bt_aics *inst = lookup_aics_by_handle(conn, params->single.handle); in aics_client_read_state_cb()
167 struct bt_aics *inst = lookup_aics_by_handle(conn, params->single.handle); in aics_client_read_gain_settings_cb()
216 struct bt_aics *inst = lookup_aics_by_handle(conn, params->single.handle); in aics_client_read_type_cb()
261 struct bt_aics *inst = lookup_aics_by_handle(conn, params->single.handle); in aics_client_read_status_cb()
300 static void aics_cp_notify_app(struct bt_aics *inst, uint8_t err) in aics_cp_notify_app()
343 struct bt_aics *inst = lookup_aics_by_handle(conn, params->single.handle); in internal_read_state_cb()
[all …]
Daics.c23 #define LOG_MODULE_NAME bt_aics
101 static struct bt_aics aics_insts[CONFIG_BT_AICS_MAX_INSTANCE_COUNT];
117 struct bt_aics *inst = attr->user_data; in read_aics_state()
131 struct bt_aics *inst = attr->user_data; in read_aics_gain_settings()
145 struct bt_aics *inst = attr->user_data; in read_type()
163 struct bt_aics *inst = attr->user_data; in read_input_status()
178 struct bt_aics *inst = attr->user_data; in write_aics_control()
300 struct bt_aics *inst = attr->user_data; in write_description()
335 struct bt_aics *inst = attr->user_data; in read_description()
344 void *bt_aics_svc_decl_get(struct bt_aics *aics) in bt_aics_svc_decl_get()
[all …]
Dmics_internal.h17 struct bt_aics *aics_insts[CONFIG_BT_MICS_AICS_INSTANCE_COUNT];
37 struct bt_aics *aics[CONFIG_BT_MICS_CLIENT_MAX_AICS_INST];
59 bool bt_mics_client_valid_aics_inst(struct bt_mics *mics, struct bt_aics *aics);
Dvcs_internal.h64 struct bt_aics *aics[CONFIG_BT_VCS_CLIENT_MAX_AICS_INST];
77 struct bt_aics *aics_insts[CONFIG_BT_VCS_AICS_INSTANCE_COUNT];
107 bool bt_vcs_client_valid_aics_inst(struct bt_vcs *vcs, struct bt_aics *aics);
Dvcs.c46 static bool valid_aics_inst(struct bt_vcs *vcs, struct bt_aics *aics) in valid_aics_inst()
422 int bt_vcs_aics_deactivate(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_deactivate()
441 int bt_vcs_aics_activate(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_activate()
838 int bt_vcs_aics_state_get(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_state_get()
857 int bt_vcs_aics_gain_setting_get(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_gain_setting_get()
876 int bt_vcs_aics_type_get(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_type_get()
895 int bt_vcs_aics_status_get(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_status_get()
914 int bt_vcs_aics_unmute(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_unmute()
933 int bt_vcs_aics_mute(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_mute()
952 int bt_vcs_aics_manual_gain_set(struct bt_vcs *vcs, struct bt_aics *inst) in bt_vcs_aics_manual_gain_set()
[all …]
Dmics_client.c35 bool bt_mics_client_valid_aics_inst(struct bt_mics *mics, struct bt_aics *aics) in bt_mics_client_valid_aics_inst()
138 static struct bt_mics *lookup_mics_by_aics(const struct bt_aics *aics) in lookup_mics_by_aics()
153 static void aics_discover_cb(struct bt_aics *inst, int err) in aics_discover_cb()
449 struct bt_aics *aics = mics_insts[i].cli.aics[j]; in bt_mics_client_cb_register()
Dvcs_client.c62 bool bt_vcs_client_valid_aics_inst(struct bt_vcs *vcs, struct bt_aics *aics) in bt_vcs_client_valid_aics_inst()
598 static struct bt_vcs *lookup_vcs_by_aics(const struct bt_aics *aics) in lookup_vcs_by_aics()
613 static void aics_discover_cb(struct bt_aics *inst, int err) in aics_discover_cb()
827 struct bt_aics *aics = vcs_insts[i].cli.aics[j]; in bt_vcs_client_cb_register()
/Zephyr-Core-2.7.6/subsys/bluetooth/shell/
Dmics_client.c55 static void mics_aics_set_gain_cb(struct bt_aics *inst, int err) in mics_aics_set_gain_cb()
65 static void mics_aics_unmute_cb(struct bt_aics *inst, int err) in mics_aics_unmute_cb()
75 static void mics_aics_mute_cb(struct bt_aics *inst, int err) in mics_aics_mute_cb()
85 static void mics_aics_set_manual_mode_cb(struct bt_aics *inst, int err) in mics_aics_set_manual_mode_cb()
96 static void mics_aics_automatic_mode_cb(struct bt_aics *inst, int err) in mics_aics_automatic_mode_cb()
117 static void mics_aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in mics_aics_state_cb()
130 static void mics_aics_gain_setting_cb(struct bt_aics *inst, int err, in mics_aics_gain_setting_cb()
145 static void mics_aics_input_type_cb(struct bt_aics *inst, int err, in mics_aics_input_type_cb()
158 static void mics_aics_status_cb(struct bt_aics *inst, int err, bool active) in mics_aics_status_cb()
170 static void mics_aics_description_cb(struct bt_aics *inst, int err, in mics_aics_description_cb()
Dvcs_client.c119 static void vcs_aics_set_gain_cb(struct bt_aics *inst, int err) in vcs_aics_set_gain_cb()
129 static void vcs_aics_unmute_cb(struct bt_aics *inst, int err) in vcs_aics_unmute_cb()
139 static void vcs_aics_mute_cb(struct bt_aics *inst, int err) in vcs_aics_mute_cb()
149 static void vcs_aics_set_manual_mode_cb(struct bt_aics *inst, int err) in vcs_aics_set_manual_mode_cb()
160 static void vcs_aics_automatic_mode_cb(struct bt_aics *inst, int err) in vcs_aics_automatic_mode_cb()
172 static void vcs_aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in vcs_aics_state_cb()
185 static void vcs_aics_gain_setting_cb(struct bt_aics *inst, int err, in vcs_aics_gain_setting_cb()
200 static void vcs_aics_input_type_cb(struct bt_aics *inst, int err, in vcs_aics_input_type_cb()
213 static void vcs_aics_status_cb(struct bt_aics *inst, int err, bool active) in vcs_aics_status_cb()
225 static void vcs_aics_description_cb(struct bt_aics *inst, int err, in vcs_aics_description_cb()
Dmics.c31 static void mics_aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in mics_aics_state_cb()
43 static void mics_aics_gain_setting_cb(struct bt_aics *inst, int err, in mics_aics_gain_setting_cb()
57 static void mics_aics_input_type_cb(struct bt_aics *inst, int err, in mics_aics_input_type_cb()
69 static void mics_aics_status_cb(struct bt_aics *inst, int err, bool active) in mics_aics_status_cb()
80 static void mics_aics_description_cb(struct bt_aics *inst, int err, in mics_aics_description_cb()
Dvcs.c41 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in aics_state_cb()
55 static void aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, in aics_gain_setting_cb()
69 static void aics_input_type_cb(struct bt_aics *inst, int err, in aics_input_type_cb()
82 static void aics_status_cb(struct bt_aics *inst, int err, bool active) in aics_status_cb()
94 static void aics_description_cb(struct bt_aics *inst, int err, in aics_description_cb()
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_audio/src/
Dmics_client_test.c42 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in aics_state_cb()
57 static void aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, in aics_gain_setting_cb()
72 static void aics_input_type_cb(struct bt_aics *inst, int err, in aics_input_type_cb()
85 static void aics_status_cb(struct bt_aics *inst, int err, bool active) in aics_status_cb()
97 static void aics_description_cb(struct bt_aics *inst, int err, in aics_description_cb()
116 static void aics_write_cb(struct bt_aics *inst, int err) in aics_write_cb()
Dmics_test.c47 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in aics_state_cb()
61 static void aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, in aics_gain_setting_cb()
75 static void aics_input_type_cb(struct bt_aics *inst, int err, in aics_input_type_cb()
87 static void aics_status_cb(struct bt_aics *inst, int err, bool active) in aics_status_cb()
98 static void aics_description_cb(struct bt_aics *inst, int err, in aics_description_cb()
Dvcs_client_test.c125 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in aics_state_cb()
140 static void aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, in aics_gain_setting_cb()
155 static void aics_input_type_cb(struct bt_aics *inst, int err, in aics_input_type_cb()
168 static void aics_status_cb(struct bt_aics *inst, int err, bool active) in aics_status_cb()
180 static void aics_description_cb(struct bt_aics *inst, int err, in aics_description_cb()
199 static void aics_write_cb(struct bt_aics *inst, int err) in aics_write_cb()
Dvcs_test.c106 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in aics_state_cb()
120 static void aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, in aics_gain_setting_cb()
134 static void aics_input_type_cb(struct bt_aics *inst, int err, in aics_input_type_cb()
146 static void aics_status_cb(struct bt_aics *inst, int err, bool active) in aics_status_cb()
157 static void aics_description_cb(struct bt_aics *inst, int err, in aics_description_cb()