Home
last modified time | relevance | path

Searched refs:broadcast_code (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-latest/subsys/bluetooth/audio/
Dbap_internal.h81 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
95 struct bt_bap_bass_cp_broadcase_code broadcast_code; member
Dbap_scan_delegator.c71 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
883 const uint8_t *broadcast_code; in scan_delegator_broadcast_code() local
899 broadcast_code = net_buf_simple_pull_mem(buf, sizeof(internal_state->broadcast_code)); in scan_delegator_broadcast_code()
901 (void)memcpy(internal_state->broadcast_code, broadcast_code, in scan_delegator_broadcast_code()
902 sizeof(internal_state->broadcast_code)); in scan_delegator_broadcast_code()
905 bt_hex(internal_state->broadcast_code, sizeof(internal_state->broadcast_code))); in scan_delegator_broadcast_code()
908 scan_delegator_cbs->broadcast_code != NULL) { in scan_delegator_broadcast_code()
909 scan_delegator_cbs->broadcast_code(conn, &internal_state->state, in scan_delegator_broadcast_code()
910 broadcast_code); in scan_delegator_broadcast_code()
968 (void)memset(internal_state->broadcast_code, 0, in scan_delegator_rem_src()
[all …]
Dbap_broadcast_assistant.c256 uint8_t *broadcast_code; in parse_recv_state() local
266 broadcast_code = net_buf_simple_pull_mem(&buf, BT_ISO_BROADCAST_CODE_SIZE); in parse_recv_state()
267 (void)memcpy(recv_state->bad_code, broadcast_code, in parse_recv_state()
811 if (listener->broadcast_code != NULL) { in bap_broadcast_assistant_write_cp_cb()
812 listener->broadcast_code(conn, err); in bap_broadcast_assistant_write_cp_cb()
1589 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in bt_bap_broadcast_assistant_set_broadcast_code()
1622 (void)memcpy(cp->broadcast_code, broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in bt_bap_broadcast_assistant_set_broadcast_code()
1624 LOG_HEXDUMP_DBG(cp->broadcast_code, BT_ISO_BROADCAST_CODE_SIZE, "broadcast code:"); in bt_bap_broadcast_assistant_set_broadcast_code()
Dbap_endpoint.h125 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
Dcap_internal.h123 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
Dbap_broadcast_source.c812 (void)memcpy(source->broadcast_code, param->broadcast_code, in bt_bap_broadcast_source_create()
813 sizeof(source->broadcast_code)); in bt_bap_broadcast_source_create()
1078 (void)memcpy(param.bcode, source->broadcast_code, sizeof(param.bcode)); in bt_bap_broadcast_source_start()
Dcap_commander.c713 proc_param->distribute_broadcast_code.broadcast_code); in cap_commander_broadcast_assistant_set_broadcast_code_cb()
801 broadcast_assistant_cb.broadcast_code = in bt_cap_commander_distribute_broadcast_code()
831 memcpy(stored_param->distribute_broadcast_code.broadcast_code, in bt_cap_commander_distribute_broadcast_code()
832 param->broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in bt_cap_commander_distribute_broadcast_code()
843 proc_param->distribute_broadcast_code.broadcast_code); in bt_cap_commander_distribute_broadcast_code()
Dbap_broadcast_sink.c1225 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in bt_bap_broadcast_sink_sync()
1265 broadcast_code == NULL) { in bt_bap_broadcast_sink_sync()
1334 memcpy(param.bcode, broadcast_code, sizeof(param.bcode)); in bt_bap_broadcast_sink_sync()
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dbap_broadcast_assistant.c183 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in bt_bap_broadcast_assistant_set_broadcast_code()
192 err = strncmp((const char *)broadcast_code, BROADCAST_CODE, sizeof(BROADCAST_CODE)); in bt_bap_broadcast_assistant_set_broadcast_code()
196 if (listener->broadcast_code != NULL) { in bt_bap_broadcast_assistant_set_broadcast_code()
197 listener->broadcast_code(conn, 0); in bt_bap_broadcast_assistant_set_broadcast_code()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dcap.h501 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
665 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
1040 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
Dbap.h659 void (*broadcast_code)(struct bt_conn *conn, member
661 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]);
2114 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
2372 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]);
2674 void (*broadcast_code)(struct bt_conn *conn, int err); member
2872 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]);
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_broadcast_assistant.c307 .broadcast_code = bap_broadcast_assistant_broadcast_code_cb,
1044 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE] = {0}; in cmd_bap_broadcast_assistant_broadcast_code() local
1069 memcpy(broadcast_code, argv[2], broadcast_code_len); in cmd_bap_broadcast_assistant_broadcast_code()
1072 shell_hexdump(sh, broadcast_code, sizeof(broadcast_code)); in cmd_bap_broadcast_assistant_broadcast_code()
1076 broadcast_code); in cmd_bap_broadcast_assistant_broadcast_code()
1181 SHELL_CMD_ARG(broadcast_code, NULL,
Dbap_scan_delegator.c49 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
340 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in broadcast_code_cb()
345 shell_hexdump(ctx_shell, broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in broadcast_code_cb()
354 (void)memcpy(state->broadcast_code, broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in broadcast_code_cb()
374 .broadcast_code = broadcast_code_cb,
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_scan_delegator_test.c51 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
303 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in broadcast_code_cb()
315 (void)memcpy(state->broadcast_code, broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in broadcast_code_cb()
358 .broadcast_code = broadcast_code_cb,
Dbap_broadcast_sink_test.c426 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in broadcast_code_cb()
430 memcpy(recv_state_broadcast_code, broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in broadcast_code_cb()
444 .broadcast_code = broadcast_code_cb,
753 static void test_broadcast_sync(const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in test_broadcast_sync()
758 err = bt_bap_broadcast_sink_sync(g_sink, bis_index_bitfield, streams, broadcast_code); in test_broadcast_sync()
Dbap_broadcast_assistant_test.c281 .broadcast_code = bap_broadcast_assistant_broadcast_code_cb,
520 static void test_bass_broadcast_code(const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in test_bass_broadcast_code()
526 err = bt_bap_broadcast_assistant_set_broadcast_code(default_conn, g_src_id, broadcast_code); in test_bass_broadcast_code()
Dcap_acceptor_test.c399 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in broadcast_code_cb()
403 if (memcmp(broadcast_code, BROADCAST_CODE, sizeof(BROADCAST_CODE)) != 0) { in broadcast_code_cb()
415 .broadcast_code = broadcast_code_cb,
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_cap.h102 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
Dbtp_bap.h170 uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]; member
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap_broadcast_assistant.rst45 broadcast_code : Send a string-based broadcast code of up to 16 bytes
125 uart:~$ bap_broadcast_assistant broadcast_code 0 secretCode
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_broadcast.c428 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in broadcast_code_cb()
434 (void)memcpy(broadcast_sink.sink_broadcast_code, broadcast_code, in broadcast_code_cb()
716 .broadcast_code = broadcast_code_cb, in init_cap_acceptor_broadcast()
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/
Dtest_distribute_broadcast_code.c52 memcpy(fixture->distribute_broadcast_code_param.broadcast_code, BROADCAST_CODE, in cap_commander_test_distribute_broadcast_code_fixture_init()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.c966 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in broadcast_code_cb()
982 (void)memcpy(broadcaster->sink_broadcast_code, broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in broadcast_code_cb()
1058 .broadcast_code = broadcast_code_cb,
1349 .broadcast_code = bap_broadcast_assistant_broadcast_code_cb,
1544 err = bt_bap_broadcast_assistant_set_broadcast_code(conn, cp->src_id, cp->broadcast_code); in btp_bap_broadcast_assistant_set_broadcast_code()
Dbtp_cap.c667 memcpy(create_param.broadcast_code, cp->broadcast_code, sizeof(cp->broadcast_code)); in btp_cap_broadcast_source_setup()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c978 const uint8_t broadcast_code[BT_ISO_BROADCAST_CODE_SIZE]) in broadcast_code_cb()
984 (void)memcpy(sink_broadcast_code, broadcast_code, BT_ISO_BROADCAST_CODE_SIZE); in broadcast_code_cb()
1052 .broadcast_code = broadcast_code_cb,

12