Lines Matching refs:params
66 struct bt_le_cs_set_default_settings_param params; in cmd_set_default_settings() local
75 params.enable_initiator_role = shell_strtobool(argv[1], 10, &err); in cmd_set_default_settings()
82 params.enable_reflector_role = shell_strtobool(argv[2], 10, &err); in cmd_set_default_settings()
110 params.cs_sync_antenna_selection = antenna_input; in cmd_set_default_settings()
111 params.max_tx_power = tx_power_input; in cmd_set_default_settings()
113 err = bt_le_cs_set_default_settings(default_conn, ¶ms); in cmd_set_default_settings()
189 struct bt_le_cs_test_param params; in cmd_cs_test_simple() local
191 params.main_mode = BT_CONN_LE_CS_MAIN_MODE_1; in cmd_cs_test_simple()
192 params.sub_mode = BT_CONN_LE_CS_SUB_MODE_UNUSED; in cmd_cs_test_simple()
193 params.main_mode_repetition = 0; in cmd_cs_test_simple()
194 params.mode_0_steps = 2; in cmd_cs_test_simple()
196 params.role = shell_strtoul(argv[1], 16, &err); in cmd_cs_test_simple()
204 if (params.role != BT_CONN_LE_CS_ROLE_INITIATOR && in cmd_cs_test_simple()
205 params.role != BT_CONN_LE_CS_ROLE_REFLECTOR) { in cmd_cs_test_simple()
211 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_AA_ONLY; in cmd_cs_test_simple()
212 params.cs_sync_phy = BT_CONN_LE_CS_SYNC_1M_PHY; in cmd_cs_test_simple()
213 params.cs_sync_antenna_selection = BT_LE_CS_TEST_CS_SYNC_ANTENNA_SELECTION_ONE; in cmd_cs_test_simple()
214 params.subevent_len = 3000; in cmd_cs_test_simple()
215 params.subevent_interval = 1; in cmd_cs_test_simple()
216 params.max_num_subevents = 1; in cmd_cs_test_simple()
217 params.transmit_power_level = BT_HCI_OP_LE_CS_TEST_MAXIMIZE_TX_POWER; in cmd_cs_test_simple()
218 params.t_ip1_time = 80; in cmd_cs_test_simple()
219 params.t_ip2_time = 80; in cmd_cs_test_simple()
220 params.t_fcs_time = 120; in cmd_cs_test_simple()
221 params.t_pm_time = 20; in cmd_cs_test_simple()
222 params.t_sw_time = 0; in cmd_cs_test_simple()
223 params.tone_antenna_config_selection = BT_LE_CS_TONE_ANTENNA_CONFIGURATION_INDEX_ONE; in cmd_cs_test_simple()
224 params.initiator_snr_control = BT_LE_CS_SNR_CONTROL_NOT_USED; in cmd_cs_test_simple()
225 params.reflector_snr_control = BT_LE_CS_SNR_CONTROL_NOT_USED; in cmd_cs_test_simple()
226 params.drbg_nonce = 0x1234; in cmd_cs_test_simple()
227 params.override_config = 0; in cmd_cs_test_simple()
228 params.override_config_0.channel_map_repetition = 1; in cmd_cs_test_simple()
229 memset(params.override_config_0.not_set.channel_map, 0, in cmd_cs_test_simple()
230 sizeof(params.override_config_0.not_set.channel_map)); in cmd_cs_test_simple()
231 params.override_config_0.not_set.channel_map[1] = 0xFF; in cmd_cs_test_simple()
232 params.override_config_0.not_set.channel_map[7] = 0xFF; in cmd_cs_test_simple()
233 params.override_config_0.not_set.channel_map[8] = 0xFF; in cmd_cs_test_simple()
234 params.override_config_0.not_set.channel_selection_type = BT_CONN_LE_CS_CHSEL_TYPE_3B; in cmd_cs_test_simple()
235 params.override_config_0.not_set.ch3c_shape = BT_CONN_LE_CS_CH3C_SHAPE_HAT; in cmd_cs_test_simple()
236 params.override_config_0.not_set.ch3c_jump = 0x2; in cmd_cs_test_simple()
249 err = bt_le_cs_start_test(¶ms); in cmd_cs_test_simple()
282 struct bt_le_cs_create_config_params params; in cmd_create_config() local
289 params.id = strtoul(argv[1], NULL, 10); in cmd_create_config()
301 params.role = BT_CONN_LE_CS_ROLE_INITIATOR; in cmd_create_config()
303 params.role = BT_CONN_LE_CS_ROLE_REFLECTOR; in cmd_create_config()
311 params.main_mode_type = BT_CONN_LE_CS_MAIN_MODE_2; in cmd_create_config()
312 params.sub_mode_type = BT_CONN_LE_CS_SUB_MODE_1; in cmd_create_config()
313 params.min_main_mode_steps = 0x05; in cmd_create_config()
314 params.max_main_mode_steps = 0x0A; in cmd_create_config()
315 params.main_mode_repetition = 0; in cmd_create_config()
316 params.mode_0_steps = 1; in cmd_create_config()
317 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_AA_ONLY; in cmd_create_config()
318 params.cs_sync_phy = BT_CONN_LE_CS_SYNC_2M_PHY; in cmd_create_config()
319 params.channel_map_repetition = 1; in cmd_create_config()
320 params.channel_selection_type = BT_CONN_LE_CS_CHSEL_TYPE_3B; in cmd_create_config()
321 params.ch3c_shape = BT_CONN_LE_CS_CH3C_SHAPE_HAT; in cmd_create_config()
322 params.ch3c_jump = 2; in cmd_create_config()
324 bt_le_cs_set_valid_chmap_bits(params.channel_map); in cmd_create_config()
328 params.main_mode_type = BT_CONN_LE_CS_MAIN_MODE_1; in cmd_create_config()
329 params.sub_mode_type = BT_CONN_LE_CS_SUB_MODE_UNUSED; in cmd_create_config()
331 params.main_mode_type = BT_CONN_LE_CS_MAIN_MODE_2; in cmd_create_config()
332 params.sub_mode_type = BT_CONN_LE_CS_SUB_MODE_UNUSED; in cmd_create_config()
334 params.main_mode_type = BT_CONN_LE_CS_MAIN_MODE_3; in cmd_create_config()
335 params.sub_mode_type = BT_CONN_LE_CS_SUB_MODE_UNUSED; in cmd_create_config()
337 params.main_mode_type = BT_CONN_LE_CS_MAIN_MODE_2; in cmd_create_config()
338 params.sub_mode_type = BT_CONN_LE_CS_SUB_MODE_1; in cmd_create_config()
340 params.main_mode_type = BT_CONN_LE_CS_MAIN_MODE_2; in cmd_create_config()
341 params.sub_mode_type = BT_CONN_LE_CS_SUB_MODE_3; in cmd_create_config()
343 params.main_mode_type = BT_CONN_LE_CS_MAIN_MODE_3; in cmd_create_config()
344 params.sub_mode_type = BT_CONN_LE_CS_SUB_MODE_2; in cmd_create_config()
351 params.min_main_mode_steps = strtoul(argv[j], NULL, 10); in cmd_create_config()
357 params.max_main_mode_steps = strtoul(argv[j], NULL, 10); in cmd_create_config()
363 params.mode_0_steps = strtoul(argv[j], NULL, 10); in cmd_create_config()
365 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_AA_ONLY; in cmd_create_config()
367 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_32_BIT_SOUNDING; in cmd_create_config()
369 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_96_BIT_SOUNDING; in cmd_create_config()
371 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_32_BIT_RANDOM; in cmd_create_config()
373 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_64_BIT_RANDOM; in cmd_create_config()
375 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_96_BIT_RANDOM; in cmd_create_config()
377 params.rtt_type = BT_CONN_LE_CS_RTT_TYPE_128_BIT_RANDOM; in cmd_create_config()
379 params.cs_sync_phy = BT_CONN_LE_CS_SYNC_1M_PHY; in cmd_create_config()
381 params.cs_sync_phy = BT_CONN_LE_CS_SYNC_2M_PHY; in cmd_create_config()
383 params.cs_sync_phy = BT_CONN_LE_CS_SYNC_2M_2BT_PHY; in cmd_create_config()
390 params.channel_map_repetition = strtoul(argv[j], NULL, 10); in cmd_create_config()
392 params.ch3c_shape = BT_CONN_LE_CS_CH3C_SHAPE_HAT; in cmd_create_config()
394 params.ch3c_shape = BT_CONN_LE_CS_CH3C_SHAPE_X; in cmd_create_config()
396 params.channel_selection_type = BT_CONN_LE_CS_CHSEL_TYPE_3B; in cmd_create_config()
398 params.channel_selection_type = BT_CONN_LE_CS_CHSEL_TYPE_3C; in cmd_create_config()
405 params.ch3c_jump = strtoul(argv[j], NULL, 10); in cmd_create_config()
412 if (hex2bin(argv[j], strlen(argv[j]), params.channel_map, 10) == 0) { in cmd_create_config()
417 sys_mem_swap(params.channel_map, 10); in cmd_create_config()
424 err = bt_le_cs_create_config(default_conn, ¶ms, context); in cmd_create_config()
450 struct bt_conn_le_cs_capabilities params; in cmd_read_local_supported_capabilities() local
452 err = bt_le_cs_read_local_supported_capabilities(¶ms); in cmd_read_local_supported_capabilities()
493 params.num_config_supported, params.max_consecutive_procedures_supported, in cmd_read_local_supported_capabilities()
494 params.num_antennas_supported, params.max_antenna_paths_supported, in cmd_read_local_supported_capabilities()
495 params.initiator_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
496 params.reflector_supported ? "Yes" : "No", params.mode_3_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
497 params.rtt_aa_only_precision == BT_CONN_LE_CS_RTT_AA_ONLY_NOT_SUPP ? "No" : "Yes", in cmd_read_local_supported_capabilities()
498 params.rtt_aa_only_precision == BT_CONN_LE_CS_RTT_AA_ONLY_10NS ? "Yes" : "No", in cmd_read_local_supported_capabilities()
499 params.rtt_aa_only_n, in cmd_read_local_supported_capabilities()
500 params.rtt_sounding_precision == BT_CONN_LE_CS_RTT_SOUNDING_NOT_SUPP ? "No" : "Yes", in cmd_read_local_supported_capabilities()
501 params.rtt_sounding_precision == BT_CONN_LE_CS_RTT_SOUNDING_10NS ? "Yes" : "No", in cmd_read_local_supported_capabilities()
502 params.rtt_sounding_n, in cmd_read_local_supported_capabilities()
503 params.rtt_random_payload_precision == BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_NOT_SUPP in cmd_read_local_supported_capabilities()
506 params.rtt_random_payload_precision == BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_10NS ? "Yes" in cmd_read_local_supported_capabilities()
508 params.rtt_random_payload_n, in cmd_read_local_supported_capabilities()
509 params.phase_based_nadm_sounding_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
510 params.phase_based_nadm_random_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
511 params.cs_sync_2m_phy_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
512 params.cs_sync_2m_2bt_phy_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
513 params.cs_without_fae_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
514 params.chsel_alg_3c_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
515 params.pbr_from_rtt_sounding_seq_supported ? "Yes" : "No", in cmd_read_local_supported_capabilities()
516 params.t_ip1_times_supported, params.t_ip2_times_supported, in cmd_read_local_supported_capabilities()
517 params.t_fcs_times_supported, params.t_pm_times_supported, params.t_sw_time, in cmd_read_local_supported_capabilities()
518 params.tx_snr_capability); in cmd_read_local_supported_capabilities()
533 struct bt_conn_le_cs_capabilities params; in cmd_write_cached_remote_supported_capabilities() local
535 params.num_config_supported = 1; in cmd_write_cached_remote_supported_capabilities()
536 params.max_consecutive_procedures_supported = 0; in cmd_write_cached_remote_supported_capabilities()
537 params.num_antennas_supported = 1; in cmd_write_cached_remote_supported_capabilities()
538 params.max_antenna_paths_supported = 1; in cmd_write_cached_remote_supported_capabilities()
539 params.initiator_supported = true; in cmd_write_cached_remote_supported_capabilities()
540 params.reflector_supported = true; in cmd_write_cached_remote_supported_capabilities()
541 params.mode_3_supported = true; in cmd_write_cached_remote_supported_capabilities()
542 params.rtt_aa_only_precision = BT_CONN_LE_CS_RTT_AA_ONLY_10NS; in cmd_write_cached_remote_supported_capabilities()
543 params.rtt_sounding_precision = BT_CONN_LE_CS_RTT_SOUNDING_10NS; in cmd_write_cached_remote_supported_capabilities()
544 params.rtt_random_payload_precision = BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_10NS; in cmd_write_cached_remote_supported_capabilities()
545 params.rtt_aa_only_n = 5; in cmd_write_cached_remote_supported_capabilities()
546 params.rtt_sounding_n = 6; in cmd_write_cached_remote_supported_capabilities()
547 params.rtt_random_payload_n = 7; in cmd_write_cached_remote_supported_capabilities()
548 params.phase_based_nadm_sounding_supported = true; in cmd_write_cached_remote_supported_capabilities()
549 params.phase_based_nadm_random_supported = true; in cmd_write_cached_remote_supported_capabilities()
550 params.cs_sync_2m_phy_supported = true; in cmd_write_cached_remote_supported_capabilities()
551 params.cs_sync_2m_2bt_phy_supported = true; in cmd_write_cached_remote_supported_capabilities()
552 params.chsel_alg_3c_supported = true; in cmd_write_cached_remote_supported_capabilities()
553 params.cs_without_fae_supported = true; in cmd_write_cached_remote_supported_capabilities()
554 params.pbr_from_rtt_sounding_seq_supported = false; in cmd_write_cached_remote_supported_capabilities()
555 params.t_ip1_times_supported = BT_HCI_LE_CS_T_IP1_TIME_10US_MASK; in cmd_write_cached_remote_supported_capabilities()
556 params.t_ip2_times_supported = BT_HCI_LE_CS_T_IP2_TIME_10US_MASK; in cmd_write_cached_remote_supported_capabilities()
557 params.t_fcs_times_supported = BT_HCI_LE_CS_T_FCS_TIME_100US_MASK; in cmd_write_cached_remote_supported_capabilities()
558 params.t_sw_time = 0x04; in cmd_write_cached_remote_supported_capabilities()
559 params.tx_snr_capability = BT_HCI_LE_CS_TX_SNR_CAPABILITY_18DB_MASK; in cmd_write_cached_remote_supported_capabilities()
561 err = bt_le_cs_write_cached_remote_supported_capabilities(default_conn, ¶ms); in cmd_write_cached_remote_supported_capabilities()
632 struct bt_le_cs_set_procedure_parameters_param params; in cmd_set_procedure_parameters() local
634 params.config_id = 0; in cmd_set_procedure_parameters()
635 params.max_procedure_len = 1000; in cmd_set_procedure_parameters()
636 params.min_procedure_interval = 5; in cmd_set_procedure_parameters()
637 params.max_procedure_interval = 5000; in cmd_set_procedure_parameters()
638 params.max_procedure_count = 1; in cmd_set_procedure_parameters()
639 params.min_subevent_len = 5000; in cmd_set_procedure_parameters()
640 params.max_subevent_len = 4000000; in cmd_set_procedure_parameters()
641 params.tone_antenna_config_selection = BT_LE_CS_TONE_ANTENNA_CONFIGURATION_INDEX_ONE; in cmd_set_procedure_parameters()
642 params.phy = 0x01; in cmd_set_procedure_parameters()
643 params.tx_power_delta = 0x80; in cmd_set_procedure_parameters()
644 params.preferred_peer_antenna = 1; in cmd_set_procedure_parameters()
645 params.snr_control_initiator = BT_LE_CS_SNR_CONTROL_18dB; in cmd_set_procedure_parameters()
646 params.snr_control_reflector = BT_LE_CS_SNR_CONTROL_18dB; in cmd_set_procedure_parameters()
648 err = bt_le_cs_set_procedure_parameters(default_conn, ¶ms); in cmd_set_procedure_parameters()
667 struct bt_le_cs_procedure_enable_param params; in cmd_procedure_enable() local
669 params.config_id = shell_strtoul(argv[1], 16, &err); in cmd_procedure_enable()
677 params.enable = shell_strtoul(argv[2], 16, &err); in cmd_procedure_enable()
685 err = bt_le_cs_procedure_enable(default_conn, ¶ms); in cmd_procedure_enable()