Home
last modified time | relevance | path

Searched refs:bis_sync (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dbap_broadcast_assistant.c104 state.subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_add_src()
105 inst->subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_add_src()
143 state.subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_mod_src()
144 inst->subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_mod_src()
169 zassert_equal(0, inst->subgroups[i].bis_sync); in bt_bap_broadcast_assistant_rem_src()
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_internal.h53 uint32_t bis_sync; member
133 static inline bool valid_bis_syncs(uint32_t bis_sync) in valid_bis_syncs() argument
135 if (bis_sync == BT_BAP_BIS_SYNC_NO_PREF) { in valid_bis_syncs()
139 if (bis_sync > BIT_MASK(BT_ISO_MAX_GROUP_ISO_COUNT)) { in valid_bis_syncs()
Dbap_scan_delegator.c145 i, subgroup->bis_sync, recv_state->requested_bis_sync[i], in bt_debug_dump_recv_state()
213 (void)net_buf_simple_add_le32(&read_buf, subgroup->bis_sync); in net_buf_put_recv_state()
561 if (buf->len < (sizeof(subgroup->bis_sync) + sizeof(subgroup->metadata_len))) { in scan_delegator_add_source()
721 if (buf->len < (sizeof(subgroup->bis_sync) + sizeof(subgroup->metadata_len))) { in scan_delegator_mod_src()
1307 if (bis_synced[i] != subgroup->bis_sync) { in bt_bap_scan_delegator_set_bis_sync_state()
1309 subgroup->bis_sync = bis_synced[i]; in bt_bap_scan_delegator_set_bis_sync_state()
1361 if (!bis_syncs_unique_or_no_pref(subgroup->bis_sync, in valid_bt_bap_scan_delegator_add_src_param()
1363 LOG_DBG("Invalid BIS sync: %u", subgroup->bis_sync); in valid_bt_bap_scan_delegator_add_src_param()
1464 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_FAILED && in valid_bt_bap_scan_delegator_mod_src_param()
1465 !bis_syncs_unique_or_no_pref(subgroup->bis_sync, aggregated_bis_syncs)) { in valid_bt_bap_scan_delegator_mod_src_param()
[all …]
Dbap_broadcast_assistant.c283 if (buf.len < sizeof(subgroup->bis_sync)) { in parse_recv_state()
285 buf.len, buf.len + sizeof(subgroup->bis_sync)); in parse_recv_state()
289 subgroup->bis_sync = net_buf_simple_pull_le32(&buf); in parse_recv_state()
1264 CHECKIF(pa_sync == 0 && (subgroups[i].bis_sync != 0U && in valid_subgroup_params()
1265 subgroups[i].bis_sync != BT_BAP_BIS_SYNC_NO_PREF)) { in valid_subgroup_params()
1272 if (!bis_syncs_unique_or_no_pref(subgroups[i].bis_sync, aggregated_bis_syncs)) { in valid_subgroup_params()
1274 subgroups[i].bis_sync, aggregated_bis_syncs); in valid_subgroup_params()
1280 if (subgroups[i].bis_sync != BT_BAP_BIS_SYNC_NO_PREF) { in valid_subgroup_params()
1281 aggregated_bis_syncs |= subgroups[i].bis_sync; in valid_subgroup_params()
1410 const size_t subgroup_size = sizeof(subgroup->bis_sync) + in bt_bap_broadcast_assistant_add_src()
[all …]
Dcap_commander.c276 CHECKIF(!valid_bis_syncs(param_subgroups->bis_sync)) { in valid_broadcast_reception_start_param()
278 j, param_subgroups->bis_sync); in valid_broadcast_reception_start_param()
283 CHECKIF((total_bis_sync & param_subgroups->bis_sync) != 0) { in valid_broadcast_reception_start_param()
286 i, j, param_subgroups->bis_sync, total_bis_sync); in valid_broadcast_reception_start_param()
291 total_bis_sync |= param_subgroups->bis_sync; in valid_broadcast_reception_start_param()
439 if (subgroup->bis_sync != 0) { in cap_commander_broadcast_assistant_recv_state_cb()
652 stored_param->broadcast_reception_stop.subgroups[j].bis_sync = 0; in bt_cap_commander_broadcast_reception_stop()
Dbap_broadcast_sink.c121 subgroup_param->bis_sync = sink_subgroup->bis_indexes & sink->indexes_bitfield; in update_recv_state_big_synced()
170 mod_src_param.subgroups[i].bis_sync = BT_BAP_BIS_SYNC_FAILED; in update_recv_state_big_cleared()
547 subgroup_param->bis_sync = recv_state->subgroups[i].bis_sync; in update_recv_state_base()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_broadcast_assistant.c158 subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
431 unsigned long bis_sync; in cmd_bap_broadcast_assistant_add_src() local
433 bis_sync = shell_strtoul(argv[7], 0, &result); in cmd_bap_broadcast_assistant_add_src()
440 if (!BT_BAP_BASS_VALID_BIT_BITFIELD(bis_sync)) { in cmd_bap_broadcast_assistant_add_src()
441 shell_error(sh, "Invalid bis_sync: %lu", bis_sync); in cmd_bap_broadcast_assistant_add_src()
446 subgroup.bis_sync = bis_sync; in cmd_bap_broadcast_assistant_add_src()
662 const unsigned long bis_sync = shell_strtoul(argv[3], 0, &err); in cmd_bap_broadcast_assistant_add_broadcast_id() local
668 } else if (!BT_BAP_BASS_VALID_BIT_BITFIELD(bis_sync)) { in cmd_bap_broadcast_assistant_add_broadcast_id()
669 shell_error(sh, "Invalid bis_sync: %lu", bis_sync); in cmd_bap_broadcast_assistant_add_broadcast_id()
674 subgroup.bis_sync = bis_sync; in cmd_bap_broadcast_assistant_add_broadcast_id()
[all …]
Dbap_scan_delegator.c642 unsigned long bis_sync; in cmd_bap_scan_delegator_add_src() local
644 bis_sync = shell_strtoul(argv[6], 16, &err); in cmd_bap_scan_delegator_add_src()
651 if (bis_sync > BT_BAP_BIS_SYNC_NO_PREF) { in cmd_bap_scan_delegator_add_src()
652 shell_error(sh, "Invalid bis_sync %lu", bis_sync); in cmd_bap_scan_delegator_add_src()
657 subgroup_param->bis_sync = 0U; in cmd_bap_scan_delegator_add_src()
747 unsigned long bis_sync; in cmd_bap_scan_delegator_add_src_by_pa_sync() local
749 bis_sync = shell_strtoul(argv[3], 16, &err); in cmd_bap_scan_delegator_add_src_by_pa_sync()
756 if (bis_sync > BT_BAP_BIS_SYNC_NO_PREF) { in cmd_bap_scan_delegator_add_src_by_pa_sync()
757 shell_error(sh, "Invalid bis_sync %lu", bis_sync); in cmd_bap_scan_delegator_add_src_by_pa_sync()
762 subgroup_param->bis_sync = 0U; in cmd_bap_scan_delegator_add_src_by_pa_sync()
[all …]
Dcap_commander.c623 unsigned long bis_sync; in cmd_cap_commander_broadcast_reception_start() local
625 bis_sync = shell_strtoul(argv[6], 0, &err); in cmd_cap_commander_broadcast_reception_start()
632 if (!BT_BAP_BASS_VALID_BIT_BITFIELD(bis_sync)) { in cmd_cap_commander_broadcast_reception_start()
633 shell_error(sh, "Invalid bis_sync: %lu", bis_sync); in cmd_cap_commander_broadcast_reception_start()
638 subgroup.bis_sync = bis_sync; in cmd_cap_commander_broadcast_reception_start()
640 subgroup.bis_sync = BT_BAP_BIS_SYNC_NO_PREF; in cmd_cap_commander_broadcast_reception_start()
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap_scan_delegator.rst31 <enc_state> [bis_sync [metadata]]
32 add_src_by_pa_sync : Add a PA as source <broadcast_id> <enc_state> [bis_sync
35 [bis_sync [metadata]]
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_broadcast_assistant_test.c153 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_FAILED) { in bap_broadcast_assistant_recv_state_cb()
155 subgroup->bis_sync); in bap_broadcast_assistant_recv_state_cb()
166 i, subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
172 if (subgroup->bis_sync != 0) { in bap_broadcast_assistant_recv_state_cb()
446 subgroup.bis_sync = 0; in test_bass_add_source()
473 subgroup.bis_sync = BT_ISO_BIS_INDEX_BIT(1) | BT_ISO_BIS_INDEX_BIT(2); /* Indexes 1 and 2 */ in test_bass_mod_source()
503 subgroup.bis_sync = BT_ISO_BIS_INDEX_BIT(1) | BT_ISO_BIS_INDEX_BIT(2); in test_bass_mod_source_long_meta()
Dbap_scan_delegator_test.c505 subgroup_param->bis_sync = BT_BAP_BIS_SYNC_NO_PREF; in add_source()
564 subgroup_param->bis_sync = 0U; in mod_source()
651 uint32_t bis_sync[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]; in sync_broadcast() local
656 bis_sync[i] = BT_ISO_BIS_INDEX_BIT(i + 1); in sync_broadcast()
660 err = bt_bap_scan_delegator_set_bis_sync_state(state->src_id, bis_sync); in sync_broadcast()
Dcap_commander_test.c479 printk("\t[%d]: BIS sync %u, metadata_len %u\n", i, subgroup->bis_sync, in bap_broadcast_assistant_recv_state_cb()
486 if (subgroup->bis_sync != 0) { in bap_broadcast_assistant_recv_state_cb()
999 uint32_t bis_sync[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]; in test_broadcast_reception_start() local
1010 bis_sync); in test_broadcast_reception_start()
1018 reception_start_param.param[i].subgroups[j].bis_sync = bis_sync[j]; in test_broadcast_reception_start()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.c877 sys_put_le32(subgroup->bis_sync >> 1, ptr); in btp_send_broadcast_receive_state_ev()
878 ptr += sizeof(subgroup->bis_sync); in btp_send_broadcast_receive_state_ev()
1439 subgroup->bis_sync = sys_get_le32(ptr); in btp_bap_broadcast_assistant_add_src()
1440 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_NO_PREF) { in btp_bap_broadcast_assistant_add_src()
1444 subgroup->bis_sync <<= 1; in btp_bap_broadcast_assistant_add_src()
1447 ptr += sizeof(subgroup->bis_sync); in btp_bap_broadcast_assistant_add_src()
1510 subgroup->bis_sync = sys_get_le32(ptr); in btp_bap_broadcast_assistant_modify_src()
1511 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_NO_PREF) { in btp_bap_broadcast_assistant_modify_src()
1515 subgroup->bis_sync <<= 1; in btp_bap_broadcast_assistant_modify_src()
1518 ptr += sizeof(subgroup->bis_sync); in btp_bap_broadcast_assistant_modify_src()
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_broadcast.c442 uint32_t bis_sync = 0U; in get_req_bis_sync() local
445 bis_sync |= bis_sync_req[i]; in get_req_bis_sync()
448 return bis_sync; in get_req_bis_sync()
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/
Dtest_broadcast_reception.c132 fixture->subgroups[i].bis_sync = 1 << i; in test_start_param_init()
424 fixture->start_param.param[0].subgroups[0].bis_sync = in ZTEST_F()
425 fixture->start_param.param[0].subgroups[1].bis_sync; in ZTEST_F()
/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/
Dmain.c196 subgroup_param->bis_sync |= BT_ISO_BIS_INDEX_BIT(bis->index); in add_pa_sync_base_subgroup_bis_cb()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c903 printk("subgroup %d bis_sync: 0x%08x\n", i, recv_state->subgroups[i].bis_sync); in recv_state_updated_cb()
960 printk("subgroup %d bis_sync: 0x%08x\n", i, recv_state->subgroups[i].bis_sync); in pa_sync_term_req_cb()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dbap.h545 uint32_t bis_sync; member