Home
last modified time | relevance | path

Searched refs:active_index (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/bluetooth/audio/
Dhas_internal.h63 uint8_t active_index; member
Dhas_client.c253 client_cb->preset_switch(&inst->has, 0, inst->has.active_index); in discover_complete()
325 client_cb->preset_switch(&inst->has, err, inst->has.active_index); in set_active_preset_cb()
363 const uint8_t prev = inst->has.active_index; in active_index_update()
367 inst->has.active_index = net_buf_simple_pull_u8(&buf); in active_index_update()
369 LOG_DBG("conn %p index 0x%02x", (void *)inst->conn, inst->has.active_index); in active_index_update()
410 if (client_cb && client_cb->preset_switch && inst->has.active_index != prev) { in active_preset_notify_cb()
411 client_cb->preset_switch(&inst->has, 0, inst->has.active_index); in active_preset_notify_cb()
Dhas.c88 uint8_t active_index; in read_active_preset_index() local
92 if (offset > sizeof(active_index)) { in read_active_preset_index()
96 active_index = bt_has_preset_active_get(); in read_active_preset_index()
98 return bt_gatt_attr_read(conn, attr, buf, len, offset, &active_index, sizeof(active_index)); in read_active_preset_index()
491 uint8_t active_index; in notify_work_handler() local
493 active_index = bt_has_preset_active_get(); in notify_work_handler()
496 &active_index, sizeof(active_index)); in notify_work_handler()