Home
last modified time | relevance | path

Searched refs:pa_interval (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_broadcast_assistant.c405 unsigned long pa_interval; in cmd_bap_broadcast_assistant_add_src() local
407 pa_interval = shell_strtoul(argv[6], 0, &result); in cmd_bap_broadcast_assistant_add_src()
415 if (!IN_RANGE(pa_interval, in cmd_bap_broadcast_assistant_add_src()
419 pa_interval); in cmd_bap_broadcast_assistant_add_src()
424 param.pa_interval = pa_interval; in cmd_bap_broadcast_assistant_add_src()
426 param.pa_interval = BT_BAP_PA_INTERVAL_UNKNOWN; in cmd_bap_broadcast_assistant_add_src()
570 param.pa_interval = info->interval; in scan_recv_cb()
802 param.pa_interval = BT_BAP_PA_INTERVAL_UNKNOWN; in cmd_bap_broadcast_assistant_mod_src()
804 unsigned long pa_interval; in cmd_bap_broadcast_assistant_mod_src() local
806 pa_interval = shell_strtoul(argv[3], 0, &result); in cmd_bap_broadcast_assistant_mod_src()
[all …]
Dbap_scan_delegator.c44 uint16_t pa_interval; member
146 static uint16_t interval_to_sync_timeout(uint16_t pa_interval) in interval_to_sync_timeout() argument
150 if (pa_interval == BT_BAP_PA_INTERVAL_UNKNOWN) { in interval_to_sync_timeout()
158 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
195 uint16_t pa_interval) in pa_sync_past() argument
201 param.timeout = interval_to_sync_timeout(pa_interval); in pa_sync_past()
219 uint16_t pa_interval) in pa_sync_no_past() argument
231 param.timeout = interval_to_sync_timeout(pa_interval); in pa_sync_no_past()
285 bool past_avail, uint16_t pa_interval) in pa_sync_req_cb() argument
291 past_avail, recv_state->broadcast_id, pa_interval, in pa_sync_req_cb()
[all …]
Dcap_commander.c600 unsigned long pa_interval; in cmd_cap_commander_broadcast_reception_start() local
602 pa_interval = shell_strtoul(argv[5], 0, &err); in cmd_cap_commander_broadcast_reception_start()
609 if (!IN_RANGE(pa_interval, BT_GAP_PER_ADV_MIN_INTERVAL, in cmd_cap_commander_broadcast_reception_start()
611 shell_error(sh, "Invalid pa_interval: %lu", pa_interval); in cmd_cap_commander_broadcast_reception_start()
616 member_param->pa_interval = pa_interval; in cmd_cap_commander_broadcast_reception_start()
618 member_param->pa_interval = BT_BAP_PA_INTERVAL_UNKNOWN; in cmd_cap_commander_broadcast_reception_start()
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_broadcast.c286 static uint16_t interval_to_sync_timeout(uint16_t pa_interval) in interval_to_sync_timeout() argument
290 if (pa_interval == BT_BAP_PA_INTERVAL_UNKNOWN) { in interval_to_sync_timeout()
298 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
311 uint16_t pa_interval) in pa_sync_with_past() argument
317 param.timeout = interval_to_sync_timeout(pa_interval); in pa_sync_with_past()
338 static int pa_sync_without_past(const bt_addr_le_t *addr, uint8_t adv_sid, uint16_t pa_interval) in pa_sync_without_past() argument
347 param.timeout = interval_to_sync_timeout(pa_interval); in pa_sync_without_past()
363 bool past_avail, uint16_t pa_interval) in pa_sync_req_cb() argument
383 err = pa_sync_with_past(conn, recv_state, pa_interval); in pa_sync_req_cb()
392 err = pa_sync_without_past(&recv_state->addr, recv_state->adv_sid, pa_interval); in pa_sync_req_cb()
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_internal.h64 uint16_t pa_interval; member
73 uint16_t pa_interval; member
Dbap_broadcast_assistant.c1313 CHECKIF(!(param->pa_interval != BT_BAP_PA_INTERVAL_UNKNOWN) && in valid_add_src_param()
1314 !IN_RANGE(param->pa_interval, BT_GAP_PER_ADV_MIN_INTERVAL, in valid_add_src_param()
1316 LOG_DBG("Invalid pa_interval 0x%04X", param->pa_interval); in valid_add_src_param()
1405 cp->pa_interval = sys_cpu_to_le16(param->pa_interval); in bt_bap_broadcast_assistant_add_src()
1451 CHECKIF(!(param->pa_interval != BT_BAP_PA_INTERVAL_UNKNOWN) && in valid_add_mod_param()
1452 !IN_RANGE(param->pa_interval, BT_GAP_PER_ADV_MIN_INTERVAL, in valid_add_mod_param()
1454 LOG_DBG("Invalid pa_interval 0x%04X", param->pa_interval); in valid_add_mod_param()
1548 cp->pa_interval = sys_cpu_to_le16(param->pa_interval); in bt_bap_broadcast_assistant_mod_src()
Dbap_scan_delegator.c430 uint8_t pa_sync_val, uint16_t pa_interval) in pa_sync_request() argument
440 pa_interval); in pa_sync_request()
493 uint16_t pa_interval; in scan_delegator_add_source() local
547 pa_interval = net_buf_simple_pull_le16(buf); in scan_delegator_add_source()
636 err = pa_sync_request(conn, state, pa_sync, pa_interval); in scan_delegator_add_source()
672 uint16_t pa_interval; in scan_delegator_mod_src() local
705 pa_interval = net_buf_simple_pull_le16(buf); in scan_delegator_mod_src()
828 pa_interval); in scan_delegator_mod_src()
Dcap_internal.h103 uint16_t pa_interval; member
Dcap_commander.c113 add_src_param->pa_interval = start_param->pa_interval; in copy_broadcast_reception_start_param()
242 CHECKIF(!IN_RANGE(start_param->pa_interval, BT_GAP_PER_ADV_MIN_INTERVAL, in valid_broadcast_reception_start_param()
380 stored_param->broadcast_reception_start.pa_interval = member_param->pa_interval; in bt_cap_commander_broadcast_reception_start()
411 mod_src_param->pa_interval = BT_BAP_PA_INTERVAL_UNKNOWN; in copy_broadcast_reception_stop_param()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_scan_delegator_test.c136 uint16_t pa_interval) in pa_sync_past() argument
143 param.timeout = interval_to_sync_timeout(pa_interval); in pa_sync_past()
160 uint16_t pa_interval) in pa_sync_no_past() argument
172 param.timeout = interval_to_sync_timeout(pa_interval); in pa_sync_no_past()
245 bool past_avail, uint16_t pa_interval) in pa_sync_req_cb() argument
251 past_avail, pa_interval, recv_state); in pa_sync_req_cb()
270 err = pa_sync_past(conn, state, pa_interval); in pa_sync_req_cb()
279 err = pa_sync_no_past(state, pa_interval); in pa_sync_req_cb()
Dcommon.c227 uint16_t interval_to_sync_timeout(uint16_t pa_interval) in interval_to_sync_timeout() argument
231 if (pa_interval == BT_BAP_PA_INTERVAL_UNKNOWN) { in interval_to_sync_timeout()
239 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
Dcommon.h125 uint16_t interval_to_sync_timeout(uint16_t pa_interval);
Dbap_broadcast_assistant_test.c442 add_src_param.pa_interval = g_broadcaster_info.interval; in test_bass_add_source()
472 mod_src_param.pa_interval = g_broadcaster_info.interval; in test_bass_mod_source()
502 mod_src_param.pa_interval = g_broadcaster_info.interval; in test_bass_mod_source_long_meta()
Dcap_acceptor_test.c344 bool past_avail, uint16_t pa_interval) in pa_sync_req_cb() argument
357 broadcaster_info.interval = pa_interval; in pa_sync_req_cb()
Dbap_broadcast_sink_test.c375 bool past_avail, uint16_t pa_interval) in pa_sync_req_cb() argument
/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/
Dmain.c255 static uint16_t interval_to_sync_timeout(uint16_t pa_interval) in interval_to_sync_timeout() argument
259 if (pa_interval == BT_BAP_PA_INTERVAL_UNKNOWN) { in interval_to_sync_timeout()
267 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
658 param.pa_interval = selected_pa_interval; in main()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/
Dbis_receiver.c180 static uint16_t interval_to_sync_timeout(uint16_t pa_interval) in interval_to_sync_timeout() argument
186 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c854 static uint16_t interval_to_sync_timeout(uint16_t pa_interval) in interval_to_sync_timeout() argument
858 if (pa_interval == BT_BAP_PA_INTERVAL_UNKNOWN) { in interval_to_sync_timeout()
866 interval_us = BT_GAP_PER_ADV_INTERVAL_TO_US(pa_interval); in interval_to_sync_timeout()
877 static int pa_sync_past(struct bt_conn *conn, uint16_t pa_interval) in pa_sync_past() argument
883 param.timeout = interval_to_sync_timeout(pa_interval); in pa_sync_past()
911 bool past_avail, uint16_t pa_interval) in pa_sync_req_cb() argument
929 err = pa_sync_past(conn, pa_interval); in pa_sync_req_cb()
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap_broadcast_assistant.rst38 [<pa_interval>] [<sync_bis>] [<metadata>]
43 mod_src : Set sync <src_id> <sync_pa> [<pa_interval> | "unknown"] [<sync_bis>]
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.c825 bool past_avail, uint16_t pa_interval) in btp_send_pas_sync_req_ev() argument
834 ev.pa_interval = sys_cpu_to_le16(pa_interval); in btp_send_pas_sync_req_ev()
913 bool past_avail, uint16_t pa_interval) in pa_sync_req_cb() argument
938 recv_state->broadcast_id, past_avail, pa_interval); in pa_sync_req_cb()
1431 param.pa_interval = sys_le16_to_cpu(cp->padv_interval); in btp_bap_broadcast_assistant_add_src()
1502 param.pa_interval = sys_le16_to_cpu(cp->padv_interval); in btp_bap_broadcast_assistant_modify_src()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dbap.h630 bool past_avail, uint16_t pa_interval);
2789 uint16_t pa_interval; member
2831 uint16_t pa_interval; member
Dcap.h938 uint16_t pa_interval; member
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_bap.h275 uint16_t pa_interval; member
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/
Dtest_broadcast_reception.c140 fixture->start_member_params[i].pa_interval = ADV_INTERVAL; in test_start_param_init()
361 fixture->start_param.param[0].pa_interval = BT_GAP_PER_ADV_MIN_INTERVAL - 1; in ZTEST_F()
/Zephyr-latest/subsys/bluetooth/host/shell/
Dbt.c253 uint16_t pa_interval; member
507 (scan_filter.pa_interval > BT_CONN_INTERVAL_TO_MS(info->interval))) { in passes_scan_filter()
1815 unsigned long pa_interval; in cmd_scan_filter_set_pa_interval() local
1818 pa_interval = shell_strtoul(argv[1], 10, &err); in cmd_scan_filter_set_pa_interval()
1821 if (IN_RANGE(pa_interval, in cmd_scan_filter_set_pa_interval()
1824 scan_filter.pa_interval = (uint16_t)pa_interval; in cmd_scan_filter_set_pa_interval()
1827 scan_filter.pa_interval); in cmd_scan_filter_set_pa_interval()
4873 SHELL_CMD_ARG(pa_interval, NULL, "<pa_interval>",

12