Lines Matching +full:num +full:- +full:cs

2  *  @brief Bluetooth Channel Sounding (CS) shell
9 * SPDX-License-Identifier: Apache-2.0
24 #include <zephyr/bluetooth/cs.h>
38 return -EINVAL; in check_cs_sync_antenna_selection_input()
50 return -ENOEXEC; in cmd_read_remote_supported_capabilities()
57 return -ENOEXEC; in cmd_read_remote_supported_capabilities()
72 return -ENOEXEC; in cmd_set_default_settings()
116 return -ENOEXEC; in cmd_set_default_settings()
128 return -ENOEXEC; in cmd_read_remote_fae_table()
134 return -ENOEXEC; in cmd_read_remote_fae_table()
143 bt_shell_print("- Step mode %d\n" in process_step_data()
144 "- Step channel %d\n" in process_step_data()
145 "- Step data hexdump:", in process_step_data()
146 step->mode, in process_step_data()
147 step->channel); in process_step_data()
148 bt_shell_hexdump(step->data, step->data_len); in process_step_data()
157 "- Procedure Counter: %d\n" in cs_test_subevent_data_cb()
158 "- Frequency Compensation: 0x%04x\n" in cs_test_subevent_data_cb()
159 "- Reference Power Level: %d\n" in cs_test_subevent_data_cb()
160 "- Procedure Done Status: 0x%02x\n" in cs_test_subevent_data_cb()
161 "- Subevent Done Status: 0x%02x\n" in cs_test_subevent_data_cb()
162 "- Procedure Abort Reason: 0x%02x\n" in cs_test_subevent_data_cb()
163 "- Subevent Abort Reason: 0x%02x\n" in cs_test_subevent_data_cb()
164 "- Number of Antenna Paths: %d\n" in cs_test_subevent_data_cb()
165 "- Number of Steps Reported: %d", in cs_test_subevent_data_cb()
166 result->header.procedure_counter, in cs_test_subevent_data_cb()
167 result->header.frequency_compensation, in cs_test_subevent_data_cb()
168 result->header.reference_power_level, in cs_test_subevent_data_cb()
169 result->header.procedure_done_status, in cs_test_subevent_data_cb()
170 result->header.subevent_done_status, in cs_test_subevent_data_cb()
171 result->header.procedure_abort_reason, in cs_test_subevent_data_cb()
172 result->header.subevent_abort_reason, in cs_test_subevent_data_cb()
173 result->header.num_antenna_paths, in cs_test_subevent_data_cb()
174 result->header.num_steps_reported); in cs_test_subevent_data_cb()
176 if (result->step_data_buf) { in cs_test_subevent_data_cb()
177 bt_le_cs_step_data_parse(result->step_data_buf, process_step_data, NULL); in cs_test_subevent_data_cb()
183 bt_shell_print("CS Test End Complete."); in cs_test_end_complete_cb()
246 return -ENOEXEC; in cmd_cs_test_simple()
252 return -ENOEXEC; in cmd_cs_test_simple()
264 return -ENOEXEC; in cmd_remove_config()
272 return -ENOEXEC; in cmd_remove_config()
286 return -ENOEXEC; in cmd_create_config()
290 if (!strcmp(argv[2], "local-only")) { in cmd_create_config()
292 } else if (!strcmp(argv[2], "local-only")) { in cmd_create_config()
327 if (!strcmp(argv[j], "rtt-none")) { in cmd_create_config()
330 } else if (!strcmp(argv[j], "pbr-none")) { in cmd_create_config()
333 } else if (!strcmp(argv[j], "both-none")) { in cmd_create_config()
336 } else if (!strcmp(argv[j], "pbr-rtt")) { in cmd_create_config()
339 } else if (!strcmp(argv[j], "pbr-both")) { in cmd_create_config()
342 } else if (!strcmp(argv[j], "both-pbr")) { in cmd_create_config()
364 } else if (!strcmp(argv[j], "aa-only")) { in cmd_create_config()
366 } else if (!strcmp(argv[j], "32b-sound")) { in cmd_create_config()
368 } else if (!strcmp(argv[j], "96b-sound")) { in cmd_create_config()
370 } else if (!strcmp(argv[j], "32b-rand")) { in cmd_create_config()
372 } else if (!strcmp(argv[j], "64b-rand")) { in cmd_create_config()
374 } else if (!strcmp(argv[j], "96b-rand")) { in cmd_create_config()
376 } else if (!strcmp(argv[j], "128b-rand")) { in cmd_create_config()
378 } else if (!strcmp(argv[j], "phy-1m")) { in cmd_create_config()
380 } else if (!strcmp(argv[j], "phy-2m")) { in cmd_create_config()
382 } else if (!strcmp(argv[j], "phy-2m-2b")) { in cmd_create_config()
384 } else if (!strcmp(argv[j], "chmap-rep")) { in cmd_create_config()
391 } else if (!strcmp(argv[j], "hat-shape")) { in cmd_create_config()
393 } else if (!strcmp(argv[j], "x-shape")) { in cmd_create_config()
395 } else if (!strcmp(argv[j], "chsel-3b")) { in cmd_create_config()
397 } else if (!strcmp(argv[j], "chsel-3c")) { in cmd_create_config()
399 } else if (!strcmp(argv[j], "ch3c-jump")) { in cmd_create_config()
414 return -ENOEXEC; in cmd_create_config()
427 return -ENOEXEC; in cmd_create_config()
440 return -ENOEXEC; in cmd_cs_stop_test()
458 return -ENOEXEC; in cmd_read_local_supported_capabilities()
464 "- Num CS configurations: %d\n" in cmd_read_local_supported_capabilities()
465 "- Max consecutive CS procedures: %d\n" in cmd_read_local_supported_capabilities()
466 "- Num antennas supported: %d\n" in cmd_read_local_supported_capabilities()
467 "- Max antenna paths supported: %d\n" in cmd_read_local_supported_capabilities()
468 "- Initiator role supported: %s\n" in cmd_read_local_supported_capabilities()
469 "- Reflector role supported: %s\n" in cmd_read_local_supported_capabilities()
470 "- Mode 3 supported: %s\n" in cmd_read_local_supported_capabilities()
471 "- RTT AA only supported: %s\n" in cmd_read_local_supported_capabilities()
472 "- RTT AA only is 10ns precise: %s\n" in cmd_read_local_supported_capabilities()
473 "- RTT AA only N: %d\n" in cmd_read_local_supported_capabilities()
474 "- RTT sounding supported: %s\n" in cmd_read_local_supported_capabilities()
475 "- RTT sounding is 10ns precise: %s\n" in cmd_read_local_supported_capabilities()
476 "- RTT sounding N: %d\n" in cmd_read_local_supported_capabilities()
477 "- RTT random payload supported: %s\n" in cmd_read_local_supported_capabilities()
478 "- RTT random payload is 10ns precise: %s\n" in cmd_read_local_supported_capabilities()
479 "- RTT random payload N: %d\n" in cmd_read_local_supported_capabilities()
480 "- Phase-based NADM with sounding sequences supported: %s\n" in cmd_read_local_supported_capabilities()
481 "- Phase-based NADM with random sequences supported: %s\n" in cmd_read_local_supported_capabilities()
482 "- CS Sync 2M PHY supported: %s\n" in cmd_read_local_supported_capabilities()
483 "- CS Sync 2M 2BT PHY supported: %s\n" in cmd_read_local_supported_capabilities()
484 "- CS without transmitter FAE supported: %s\n" in cmd_read_local_supported_capabilities()
485 "- Channel selection algorithm #3c supported: %s\n" in cmd_read_local_supported_capabilities()
486 "- Phase-based ranging from RTT sounding sequence supported: %s\n" in cmd_read_local_supported_capabilities()
487 "- T_IP1 times supported: 0x%04x\n" in cmd_read_local_supported_capabilities()
488 "- T_IP2 times supported: 0x%04x\n" in cmd_read_local_supported_capabilities()
489 "- T_FCS times supported: 0x%04x\n" in cmd_read_local_supported_capabilities()
490 "- T_PM times supported: 0x%04x\n" in cmd_read_local_supported_capabilities()
491 "- T_SW time supported: %d us\n" in cmd_read_local_supported_capabilities()
492 "- TX SNR capability: 0x%02x", in cmd_read_local_supported_capabilities()
530 return -ENOEXEC; in cmd_write_cached_remote_supported_capabilities()
565 return -ENOEXEC; in cmd_write_cached_remote_supported_capabilities()
577 return -ENOEXEC; in cmd_security_enable()
584 return -ENOEXEC; in cmd_security_enable()
596 return -ENOEXEC; in cmd_set_channel_classification()
617 return -ENOEXEC; in cmd_set_channel_classification()
629 return -ENOEXEC; in cmd_set_procedure_parameters()
652 return -ENOEXEC; in cmd_set_procedure_parameters()
664 return -ENOEXEC; in cmd_procedure_enable()
689 return -ENOEXEC; in cmd_procedure_enable()
702 " <CS_SYNC antenna selection: 0x01 - 0x04, 0xFE, 0xFF> <Max TX power: -127 - 20>",
710 "<id> <context: local-only, local-remote> <role: initiator, reflector> "
711 "[rtt-none, pbr-none, both-none, pbr-rtt, pbr-both, both-pbr] [steps <min> "
712 "<max> <mode-0>] [aa-only, 32b-sound, 96b-sound, 32b-rand, 64b-rand, 96b-rand, "
713 "128b-rand] [phy-1m, phy-2m, phy-2m-2b] [chmap-rep <rep>] [hat-shape, x-shape] "
714 "[ch3c-jump <jump>] [chmap <XXXXXXXXXXXXXXXX>] (78-0) [chsel-3b, chsel-3c]",
741 return -EINVAL; in cmd_cs()
744 SHELL_CMD_ARG_REGISTER(cs, &cs_cmds, "Bluetooth CS shell commands", cmd_cs, 1, 1);