Home
last modified time | relevance | path

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

/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/
Dmain.c75 struct scan_recv_info *sr_info = (struct scan_recv_info *)user_data; in device_found() local
81 memcpy(sr_info->bt_name, data->data, MIN(data->data_len, NAME_LEN - 1)); in device_found()
84 memcpy(sr_info->broadcast_name, data->data, MIN(data->data_len, NAME_LEN - 1)); in device_found()
100 sr_info->broadcast_id = sys_get_le24(data->data + BT_UUID_SIZE_16); in device_found()
130 sr_info->has_bass = true; in device_found()
135 sr_info->has_pacs = true; in device_found()
295 struct scan_recv_info sr_info = {0}; in scan_recv_cb() local
300 sr_info.broadcast_id = BT_BAP_INVALID_BROADCAST_ID; in scan_recv_cb()
308 bt_data_parse(ad, device_found, (void *)&sr_info); in scan_recv_cb()
310 if (sr_info.broadcast_id != BT_BAP_INVALID_BROADCAST_ID) { in scan_recv_cb()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_broadcast_assistant.c480 struct bt_scan_recv_info *sr_info = (struct bt_scan_recv_info *)user_data; in broadcast_source_found() local
497 sr_info->broadcast_id = sys_get_le24(data->data + BT_UUID_SIZE_16); in broadcast_source_found()
505 utf8_lcpy(sr_info->broadcast_name, data->data, (data->data_len) + 1); in broadcast_source_found()
515 struct bt_scan_recv_info sr_info = { 0 }; in scan_recv_cb() local
519 sr_info.broadcast_id = BT_BAP_INVALID_BROADCAST_ID; in scan_recv_cb()
537 bt_data_parse(ad, broadcast_source_found, (void *)&sr_info); in scan_recv_cb()
540 if (sr_info.broadcast_id != BT_BAP_INVALID_BROADCAST_ID) { in scan_recv_cb()
546 if (sr_info.broadcast_id == auto_scan.broadcast_id) { in scan_recv_cb()
551 is_substring(auto_scan.broadcast_name, sr_info.broadcast_name)) { in scan_recv_cb()
555 sr_info.broadcast_name, addr_str); in scan_recv_cb()
[all …]
Dbap.c2390 struct bt_broadcast_info *sr_info = (struct bt_broadcast_info *)user_data; in scan_check_and_sync_broadcast() local
2407 sr_info->broadcast_id = sys_get_le24(data->data + BT_UUID_SIZE_16); in scan_check_and_sync_broadcast()
2415 memcpy(sr_info->broadcast_name, data->data, data->data_len); in scan_check_and_sync_broadcast()
2416 sr_info->broadcast_name[data->data_len] = '\0'; in scan_check_and_sync_broadcast()
2425 struct bt_broadcast_info sr_info = {0}; in broadcast_scan_recv() local
2429 sr_info.broadcast_id = BT_BAP_INVALID_BROADCAST_ID; in broadcast_scan_recv()
2441 bt_data_parse(ad, scan_check_and_sync_broadcast, (void *)&sr_info); in broadcast_scan_recv()
2444 if (sr_info.broadcast_id == BT_BAP_INVALID_BROADCAST_ID) { in broadcast_scan_recv()
2450 if (sr_info.broadcast_id == auto_scan.broadcast_info.broadcast_id) { in broadcast_scan_recv()
2453 is_substring(auto_scan.broadcast_info.broadcast_name, sr_info.broadcast_name)) { in broadcast_scan_recv()
[all …]