Home
last modified time | relevance | path

Searched refs:create_param (Results 1 – 24 of 24) sorted by relevance

/Zephyr-latest/tests/bluetooth/audio/bap_broadcast_source/src/
Dmain.c200 struct bt_bap_broadcast_source_param *create_param = fixture->param; in ZTEST_F() local
204 create_param->params_count, fixture->stream_cnt); in ZTEST_F()
206 err = bt_bap_broadcast_source_create(create_param, &fixture->source); in ZTEST_F()
209 for (size_t i = 0u; i < create_param->params_count; i++) { in ZTEST_F()
210 for (size_t j = 0u; j < create_param->params[i].params_count; j++) { in ZTEST_F()
212 create_param->params[i].params[j].stream; in ZTEST_F()
214 zassert_equal(create_param->qos->sdu, stream->qos->sdu, in ZTEST_F()
216 zassert_equal(create_param->qos->rtn, stream->qos->rtn, in ZTEST_F()
218 zassert_equal(create_param->qos->phy, stream->qos->phy, in ZTEST_F()
230 struct bt_bap_broadcast_source_param *create_param = fixture->param; in ZTEST_F() local
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/central/src/
Dmain.c57 const struct bt_conn_le_create_param create_param = { in test_central_connect_timeout_with_timeout() local
70 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_timeout_with_timeout()
119 const struct bt_conn_le_create_param create_param = { in test_central_connect_when_connecting() local
127 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_when_connecting()
135 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_when_connecting()
165 const struct bt_conn_le_create_param create_param = { in test_central_connect_to_existing() local
173 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_to_existing()
184 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in test_central_connect_to_existing()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dcap_initiator_broadcast_test.c332 struct bt_cap_initiator_broadcast_create_param create_param; in test_broadcast_audio_create_inval() local
350 create_param.subgroup_count = 1U; in test_broadcast_audio_create_inval()
351 create_param.subgroup_params = &subgroup_param; in test_broadcast_audio_create_inval()
352 create_param.qos = &broadcast_preset_16_2_1.qos; in test_broadcast_audio_create_inval()
353 create_param.packing = BT_ISO_PACKING_SEQUENTIAL; in test_broadcast_audio_create_inval()
354 create_param.encryption = false; in test_broadcast_audio_create_inval()
363 err = bt_cap_initiator_broadcast_audio_create(&create_param, NULL); in test_broadcast_audio_create_inval()
373 err = bt_cap_initiator_broadcast_audio_create(&create_param, NULL); in test_broadcast_audio_create_inval()
392 struct bt_cap_initiator_broadcast_create_param create_param; in test_broadcast_audio_create() local
406 create_param.subgroup_count = 1U; in test_broadcast_audio_create()
[all …]
Dpbp_public_broadcast_source_test.c52 static struct bt_cap_initiator_broadcast_create_param create_param; variable
284 create_param.subgroup_count = 1U; in test_main()
285 create_param.subgroup_params = &subgroup_param; in test_main()
286 create_param.qos = &broadcast_preset_48_2_1.qos; in test_main()
287 create_param.packing = BT_ISO_PACKING_SEQUENTIAL; in test_main()
288 create_param.encryption = false; in test_main()
300 err = bt_cap_initiator_broadcast_audio_create(&create_param, &broadcast_source); in test_main()
Dbap_broadcast_source_test.c259 struct bt_bap_broadcast_source_param create_param; in setup_broadcast_source() local
289 create_param.params_count = subgroup_cnt_arg; in setup_broadcast_source()
290 create_param.params = subgroup_params; in setup_broadcast_source()
291 create_param.qos = &preset_16_2_1.qos; in setup_broadcast_source()
292 create_param.packing = BT_ISO_PACKING_SEQUENTIAL; in setup_broadcast_source()
293 create_param.encryption = encryption; in setup_broadcast_source()
295 memcpy(create_param.broadcast_code, BROADCAST_CODE, sizeof(BROADCAST_CODE)); in setup_broadcast_source()
300 err = bt_bap_broadcast_source_create(&create_param, source); in setup_broadcast_source()
Dgmap_ugg_test.c1165 struct bt_cap_initiator_broadcast_create_param create_param = {0}; in test_gmap_ugg_broadcast_ac() local
1196 create_param.subgroup_count = 1U; in test_gmap_ugg_broadcast_ac()
1197 create_param.subgroup_params = &subgroup_param; in test_gmap_ugg_broadcast_ac()
1198 create_param.qos = &qos; in test_gmap_ugg_broadcast_ac()
1203 err = bt_cap_initiator_broadcast_audio_create(&create_param, &broadcast_source); in test_gmap_ugg_broadcast_ac()
1212 test_stream->tx_sdu_size = create_param.qos->sdu; in test_gmap_ugg_broadcast_ac()
/Zephyr-latest/samples/bluetooth/central_hr/src/
Dmain.c119 struct bt_conn_le_create_param *create_param; in eir_found() local
139 create_param = BT_CONN_LE_CREATE_CONN; in eir_found()
140 create_param->options |= BT_CONN_LE_OPT_CODED; in eir_found()
141 err = bt_conn_le_create(addr, create_param, param, in eir_found()
148 create_param->options &= ~BT_CONN_LE_OPT_CODED; in eir_found()
149 err = bt_conn_le_create(addr, create_param, in eir_found()
/Zephyr-latest/samples/bluetooth/tmap_bms/src/
Dcap_initiator.c53 struct bt_cap_initiator_broadcast_create_param create_param; variable
293 create_param.subgroup_count = 1U; in cap_initiator_setup()
294 create_param.subgroup_params = &subgroup_param; in cap_initiator_setup()
295 create_param.qos = &broadcast_preset_48_2_1.qos; in cap_initiator_setup()
296 create_param.packing = BT_ISO_PACKING_SEQUENTIAL; in cap_initiator_setup()
297 create_param.encryption = false; in cap_initiator_setup()
313 err = bt_cap_initiator_broadcast_audio_create(&create_param, &broadcast_source); in cap_initiator_setup()
/Zephyr-latest/tests/bluetooth/host/conn/src/
Dmain.c56 const struct bt_conn_le_create_param create_param = { in ZTEST() local
70 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in ZTEST()
86 err = bt_conn_le_create(&peer, &create_param, BT_LE_CONN_PARAM_DEFAULT, &conn); in ZTEST()
/Zephyr-latest/samples/bluetooth/pbp_public_broadcast_source/src/
Dmain.c69 struct bt_cap_initiator_broadcast_create_param create_param; variable
352 create_param.subgroup_count = 1U; in cap_initiator_setup()
353 create_param.subgroup_params = &subgroup_param; in cap_initiator_setup()
354 create_param.qos = &broadcast_preset_48_2_1.qos; in cap_initiator_setup()
355 create_param.packing = BT_ISO_PACKING_SEQUENTIAL; in cap_initiator_setup()
356 create_param.encryption = false; in cap_initiator_setup()
373 err = bt_cap_initiator_broadcast_audio_create(&create_param, &broadcast_source); in cap_initiator_setup()
/Zephyr-latest/samples/bluetooth/bap_broadcast_source/src/
Dmain.c394 struct bt_bap_broadcast_source_param create_param = {0}; in setup_broadcast_source() local
415 create_param.params_count = ARRAY_SIZE(subgroup_param); in setup_broadcast_source()
416 create_param.params = subgroup_param; in setup_broadcast_source()
417 create_param.qos = &preset_active.qos; in setup_broadcast_source()
418 create_param.encryption = strlen(CONFIG_BROADCAST_CODE) > 0; in setup_broadcast_source()
419 create_param.packing = BT_ISO_PACKING_SEQUENTIAL; in setup_broadcast_source()
421 if (create_param.encryption) { in setup_broadcast_source()
422 memcpy(create_param.broadcast_code, CONFIG_BROADCAST_CODE, in setup_broadcast_source()
429 err = bt_bap_broadcast_source_create(&create_param, source); in setup_broadcast_source()
/Zephyr-latest/subsys/bluetooth/host/
Dscan.h133 bool bt_le_explicit_scanner_uses_same_params(const struct bt_conn_le_create_param *create_param);
Dconn.c1349 bt_dev.create_param.timeout != 0) { in bt_conn_set_state()
1351 K_MSEC(10 * bt_dev.create_param.timeout)); in bt_conn_set_state()
3532 bt_dev.create_param = *param; in create_param_setup()
3534 bt_dev.create_param.timeout = in create_param_setup()
3535 (bt_dev.create_param.timeout != 0) ? in create_param_setup()
3536 bt_dev.create_param.timeout : in create_param_setup()
3539 bt_dev.create_param.interval_coded = in create_param_setup()
3540 (bt_dev.create_param.interval_coded != 0) ? in create_param_setup()
3541 bt_dev.create_param.interval_coded : in create_param_setup()
3542 bt_dev.create_param.interval; in create_param_setup()
[all …]
Dscan.c354 .interval = bt_dev.create_param.interval, in select_scan_params()
355 .window = bt_dev.create_param.window, in select_scan_params()
357 .interval_coded = bt_dev.create_param.interval_coded, in select_scan_params()
358 .window_coded = bt_dev.create_param.window_coded, in select_scan_params()
2418 bool bt_le_explicit_scanner_uses_same_params(const struct bt_conn_le_create_param *create_param) in bt_le_explicit_scanner_uses_same_params() argument
2420 if (scan_state.explicit_scan_param.window != create_param->window || in bt_le_explicit_scanner_uses_same_params()
2421 scan_state.explicit_scan_param.interval != create_param->interval){ in bt_le_explicit_scanner_uses_same_params()
2426 if (scan_state.explicit_scan_param.window_coded != create_param->window_coded || in bt_le_explicit_scanner_uses_same_params()
2427 scan_state.explicit_scan_param.interval_coded != create_param->interval_coded){ in bt_le_explicit_scanner_uses_same_params()
Dhci_core.h334 struct bt_conn_le_create_param create_param; member
Dhci_core.c706 num_phys = (!(bt_dev.create_param.options & in bt_le_create_conn_ext()
708 ((bt_dev.create_param.options & in bt_le_create_conn_ext()
740 if (!(bt_dev.create_param.options & BT_CONN_LE_OPT_NO_1M)) { in bt_le_create_conn_ext()
744 bt_dev.create_param.interval); in bt_le_create_conn_ext()
746 bt_dev.create_param.window); in bt_le_create_conn_ext()
750 if (bt_dev.create_param.options & BT_CONN_LE_OPT_CODED) { in bt_le_create_conn_ext()
754 bt_dev.create_param.interval_coded); in bt_le_create_conn_ext()
756 bt_dev.create_param.window_coded); in bt_le_create_conn_ext()
858 cp->scan_interval = sys_cpu_to_le16(bt_dev.create_param.interval); in bt_le_create_conn_legacy()
859 cp->scan_window = sys_cpu_to_le16(bt_dev.create_param.window); in bt_le_create_conn_legacy()
Did.c1714 return remaining_ms > (10 * bt_dev.create_param.timeout); in rpa_timeout_valid_check()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_cap.c604 static struct bt_cap_initiator_broadcast_create_param create_param; in btp_cap_broadcast_source_setup() local
613 memset(&create_param, 0, sizeof(create_param)); in btp_cap_broadcast_source_setup()
647 create_param.subgroup_count++; in btp_cap_broadcast_source_setup()
650 if (create_param.subgroup_count == 0) { in btp_cap_broadcast_source_setup()
663 create_param.subgroup_params = cap_subgroup_params; in btp_cap_broadcast_source_setup()
664 create_param.qos = qos; in btp_cap_broadcast_source_setup()
665 create_param.packing = BT_ISO_PACKING_SEQUENTIAL; in btp_cap_broadcast_source_setup()
666 create_param.encryption = cp->flags & BTP_CAP_BROADCAST_SOURCE_SETUP_FLAG_ENCRYPTION; in btp_cap_broadcast_source_setup()
667 memcpy(create_param.broadcast_code, cp->broadcast_code, sizeof(cp->broadcast_code)); in btp_cap_broadcast_source_setup()
669 err = bt_cap_initiator_broadcast_audio_create(&create_param, &source->cap_broadcast); in btp_cap_broadcast_source_setup()
[all …]
Dbtp_bap_broadcast.c249 struct bt_bap_broadcast_source_param create_param; in setup_broadcast_source() local
279 create_param.params_count = subgroups; in setup_broadcast_source()
280 create_param.params = subgroup_param; in setup_broadcast_source()
281 create_param.qos = &source->qos; in setup_broadcast_source()
282 create_param.encryption = false; in setup_broadcast_source()
283 create_param.packing = BT_ISO_PACKING_SEQUENTIAL; in setup_broadcast_source()
289 err = bt_bap_broadcast_source_create(&create_param, in setup_broadcast_source()
298 &create_param); in setup_broadcast_source()
/Zephyr-latest/samples/bluetooth/cap_initiator/src/
Dcap_initiator_broadcast.c107 const struct bt_cap_initiator_broadcast_create_param create_param = { in broadcast_create() local
116 err = bt_cap_initiator_broadcast_audio_create(&create_param, broadcast_source); in broadcast_create()
/Zephyr-latest/samples/bluetooth/central_multilink/src/
Dcentral_multilink.c42 struct bt_conn_le_create_param create_param = { in device_found() local
83 err = bt_conn_le_create(addr, &create_param, &conn_param, in device_found()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dcap_initiator.c1245 struct bt_cap_initiator_broadcast_create_param create_param = {0}; in cap_ac_broadcast() local
1281 create_param.subgroup_count = 1U; in cap_ac_broadcast()
1282 create_param.subgroup_params = &subgroup_param; in cap_ac_broadcast()
1283 create_param.qos = &default_source.qos; in cap_ac_broadcast()
1285 err = bt_cap_initiator_broadcast_audio_create(&create_param, &default_source.cap_source); in cap_ac_broadcast()
Dbap.c3277 struct bt_bap_broadcast_source_param create_param = {0}; in cmd_create_broadcast() local
3299 create_param.broadcast_code, in cmd_create_broadcast()
3300 sizeof(create_param.broadcast_code)); in cmd_create_broadcast()
3302 if (bcode_len != sizeof(create_param.broadcast_code)) { in cmd_create_broadcast()
3309 create_param.encryption = true; in cmd_create_broadcast()
3347 create_param.params_count = 1U; in cmd_create_broadcast()
3348 create_param.params = &subgroup_param; in cmd_create_broadcast()
3349 create_param.qos = &default_source.qos; in cmd_create_broadcast()
3351 err = bt_bap_broadcast_source_create(&create_param, &default_source.bap_source); in cmd_create_broadcast()
/Zephyr-latest/include/zephyr/bluetooth/
Dconn.h1360 const struct bt_conn_le_create_param *create_param,
1415 int bt_conn_le_create_auto(const struct bt_conn_le_create_param *create_param,