/Zephyr-latest/subsys/shell/ |
D | shell_ops.h | 53 static inline bool z_flag_insert_mode_get(const struct shell *sh) in z_flag_insert_mode_get() 58 static inline bool z_flag_insert_mode_set(const struct shell *sh, bool val) in z_flag_insert_mode_set() 66 static inline bool z_flag_use_colors_get(const struct shell *sh) in z_flag_use_colors_get() 71 static inline bool z_flag_use_colors_set(const struct shell *sh, bool val) in z_flag_use_colors_set() 79 static inline bool z_flag_use_vt100_get(const struct shell *sh) in z_flag_use_vt100_get() 84 static inline bool z_flag_use_vt100_set(const struct shell *sh, bool val) in z_flag_use_vt100_set() 92 static inline bool z_flag_echo_get(const struct shell *sh) in z_flag_echo_get() 97 static inline bool z_flag_echo_set(const struct shell *sh, bool val) in z_flag_echo_set() 105 static inline bool z_flag_obscure_get(const struct shell *sh) in z_flag_obscure_get() 110 static inline bool z_flag_obscure_set(const struct shell *sh, bool val) in z_flag_obscure_set() [all …]
|
D | Kconfig | 18 source "subsys/shell/backends/Kconfig.backends" 24 and memory requirements of the shell. Enabling it will choose Kconfig 34 bool "Override default shell thread priority" 36 Option to change the default value of shell thread priority. 43 Set thread priority of the shell 61 this option is set shell will expect 0x7F for backspace key. 67 Allow for the modification of the shell prompt at runtime. 109 int "Maximum arguments in shell command" 116 bool "The Tab button support in shell" 119 Enable using the Tab button in the shell. The button [all …]
|
D | shell_ops.c | 11 void z_shell_op_cursor_vert_move(const struct shell *sh, int32_t delta) in z_shell_op_cursor_vert_move() 26 void z_shell_op_cursor_horiz_move(const struct shell *sh, int32_t delta) in z_shell_op_cursor_horiz_move() 44 static inline bool full_line_cmd(const struct shell *sh) in full_line_cmd() 56 bool z_shell_cursor_in_empty_line(const struct shell *sh) in z_shell_cursor_in_empty_line() 64 void z_shell_op_cond_next_line(const struct shell *sh) in z_shell_op_cond_next_line() 71 void z_shell_op_cursor_position_synchronize(const struct shell *sh) in z_shell_op_cursor_position_synchronize() 97 void z_shell_op_cursor_move(const struct shell *sh, int16_t val) in z_shell_op_cursor_move() 147 void z_shell_op_cursor_word_move(const struct shell *sh, int16_t val) in z_shell_op_cursor_word_move() 167 void z_shell_op_word_remove(const struct shell *sh) in z_shell_op_word_remove() 207 void z_shell_op_cursor_home_move(const struct shell *sh) in z_shell_op_cursor_home_move() [all …]
|
D | shell_cmds.c | 73 static int cursor_position_get(const struct shell *sh, uint16_t *x, uint16_t *y) in cursor_position_get() 178 static int terminal_size_get(const struct shell *sh) in terminal_size_get() 203 static int cmd_comment(const struct shell *sh, size_t argc, char **argv) in cmd_comment() 212 static int cmd_clear(const struct shell *sh, size_t argc, char **argv) in cmd_clear() 222 static int cmd_backends(const struct shell *sh, size_t argc, char **argv) in cmd_backends() 230 STRUCT_SECTION_FOREACH(shell, obj) { in cmd_backends() 237 static int cmd_bacskpace_mode_backspace(const struct shell *sh, size_t argc, in cmd_bacskpace_mode_backspace() 248 static int cmd_bacskpace_mode_delete(const struct shell *sh, size_t argc, in cmd_bacskpace_mode_delete() 259 static int cmd_colors_off(const struct shell *sh, size_t argc, char **argv) in cmd_colors_off() 269 static int cmd_colors_on(const struct shell *sh, size_t argc, char **argv) in cmd_colors_on() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/ |
D | test_bootstrap.py | 39 def test_LightweightM2M_1_1_int_1(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint_bootst… 42 verify_LightweightM2M_1_1_int_101(shell, dut, leshan, endpoint_bootstrap) 43 verify_LightweightM2M_1_1_int_401(shell, leshan, endpoint_bootstrap) 45 def test_LightweightM2M_1_1_int_4(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: Endpo… 47 shell.exec_command('lwm2m create 1/2') 48 shell.exec_command('lwm2m read 1/2/0') 49 retval = int(shell.get_filtered_output(shell.exec_command('retval'))[0]) 53 shell.exec_command('lwm2m read 1/2/0') 54 retval = int(shell.get_filtered_output(shell.exec_command('retval'))[0]) 65 def test_LightweightM2M_1_1_int_6(shell: Shell, dut: DeviceAdapter, endpoint: Endpoint): [all …]
|
D | conftest.py | 37 def __init__(self, name: str, shell: Shell, registered: bool = False, bootstrap: bool = False): 41 self.shell = shell 48 self.shell.exec_command('lwm2m update') 97 def endpoint_nosec(request, shell: Shell, dut: DeviceAdapter, leshan: Leshan) -> str: 109 shell.exec_command(f'lwm2m write 0/0/0 -s coap://{addr}:{COAP_PORT}') 110 shell.exec_command('lwm2m write 0/0/1 -b 0') 111 shell.exec_command('lwm2m write 0/0/2 -u8 3') 112 shell.exec_command(f'lwm2m write 0/0/3 -s {ep}') 113 shell.exec_command('lwm2m create 1/0') 114 shell.exec_command('lwm2m write 0/0/10 -u16 1') [all …]
|
D | test_lwm2m.py | 33 def test_LightweightM2M_1_1_int_102(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… 35 lines = shell.get_filtered_output(shell.exec_command('lwm2m read 1/0/1 -u32')) 45 shell.exec_command('lwm2m write 1/0/1 -u32 86400') 47 def test_LightweightM2M_1_1_int_103(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… 53 shell.exec_command('lwm2m stop') 55 shell.exec_command(f'lwm2m start {endpoint}') 58 def test_LightweightM2M_1_1_int_104(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… 60 shell.exec_command('lwm2m update') 66 def test_LightweightM2M_1_1_int_107(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… 70 lines = shell.get_filtered_output(shell.exec_command('lwm2m read 1/0/1 -u32')) [all …]
|
D | test_blockwise.py | 25 def test_blockwise_1(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str): 46 def test_blockwise_2(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str): 59 shell.exec_command('lwm2m update') 77 def test_blockwise_3(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str): 80 shell.exec_command('lwm2m create /19/0') 94 lines = shell.get_filtered_output(shell.exec_command('lwm2m read /19/0/0/0 -crc32')) 107 shell.exec_command('lwm2m delete /19/0') 109 def test_blockwise_4(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str): 112 shell.exec_command('lwm2m create /19/0') 127 shell.exec_command('lwm2m send /19/0') [all …]
|
/Zephyr-latest/tests/ztest/ztest_param/pytest/ |
D | test_parameters.py | 7 def test_run_all_shuffled(shell: Shell): 8 lines = shell.exec_command('ztest shuffle -c 1 -s 1') 15 def test_run_testcase_once(shell: Shell): 16 lines = shell.exec_command('ztest run-testcase ztest_params::test_dummy') 22 lines = shell.exec_command('ztest run-testcase ztest_params::test_dummy -r 2') 28 def test_run_testsuite_twice(shell: Shell): 29 lines = shell.exec_command('ztest run-testsuite ztest_params -r 2') 35 def test_run_testsuite_once(shell: Shell): 36 lines = shell.exec_command('ztest run-testsuite ztest_params') 41 def test_run_testcase_with_int_parameter(shell: Shell): [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | Kconfig | 1 # Bluetooth Mesh shell configuration options 7 bool "Bluetooth Mesh shell" 10 Activate shell module that provides Bluetooth Mesh commands to 16 bool "Support for provisioning shell commands" 20 This options enables support for provisioning shell commands. 23 bool "Support for shell provisioning context instance" 27 Bluetooth Mesh shell module together with several provisioning 33 bool "Support for CDB shell commands" 37 This options enables support for CDB shell commands. 40 bool "Support for Low Power node shell commands" [all …]
|
D | utils.h | 11 static int cmd_##cmd_set_name##_get_all(const struct shell *sh, size_t argc, char *argv[]) \ 16 static int cmd_##cmd_set_name##_set(const struct shell *sh, size_t argc, \ 39 int bt_mesh_shell_mdl_instance_set(const struct shell *sh, const struct bt_mesh_model **mod, 42 int bt_mesh_shell_mdl_print_all(const struct shell *sh, uint16_t mod_id); 44 int bt_mesh_shell_mdl_cmds_help(const struct shell *sh, size_t argc, char **argv);
|
/Zephyr-latest/samples/sensor/sensor_shell/pytest/ |
D | test_sensor_shell.py | 11 def test_sensor_shell_info(shell: Shell): 14 lines = shell.exec_command('sensor info') 21 def test_sensor_shell_get(shell: Shell): 24 lines = shell.exec_command('sensor get sensor@0 voltage') 27 lines = shell.exec_command('sensor get sensor@1 53') 32 lines = shell.exec_command('sensor get sensor@0 gauge_desired_charging_current') 38 def test_sensor_shell_attr_get(shell: Shell): 41 lines = shell.exec_command('sensor attr_get sensor@0 co2 sampling_frequency') 44 lines = shell.exec_command('sensor attr_get sensor@1 53 3') 50 def test_sensor_shell_attr_set(shell: Shell): [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | mpl.c | 33 int cmd_mpl_test_set_media_state(const struct shell *sh, size_t argc, in cmd_mpl_test_set_media_state() 58 int cmd_mpl_test_unset_parent_group(const struct shell *sh, size_t argc, in cmd_mpl_test_unset_parent_group() 69 int cmd_mpl_debug_dump_state(const struct shell *sh, size_t argc, in cmd_mpl_debug_dump_state() 78 int cmd_media_proxy_pl_init(const struct shell *sh, size_t argc, char *argv[]) in cmd_media_proxy_pl_init() 93 int cmd_mpl_test_player_name_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_name_cb() 101 int cmd_mpl_test_player_icon_url_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_icon_url_cb() 109 int cmd_mpl_test_track_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_track_changed_cb() 116 int cmd_mpl_test_title_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_title_changed_cb() 123 int cmd_mpl_test_duration_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_duration_changed_cb() 130 int cmd_mpl_test_position_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_position_changed_cb() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/shell/ |
D | ll.h | 16 int cmd_ll_addr_read(const struct shell *sh, size_t argc, char *argv[]); 18 int cmd_advx(const struct shell *sh, size_t argc, char *argv[]); 19 int cmd_scanx(const struct shell *sh, size_t argc, char *argv[]); 21 int cmd_test_tx(const struct shell *sh, size_t argc, char *argv[]); 22 int cmd_test_rx(const struct shell *sh, size_t argc, char *argv[]); 23 int cmd_test_end(const struct shell *sh, size_t argc, char *argv[]);
|
/Zephyr-latest/include/zephyr/shell/ |
D | shell_backend.h | 25 static inline const struct shell *shell_backend_get(uint32_t idx) in shell_backend_get() 27 const struct shell *backend; in shell_backend_get() 29 STRUCT_SECTION_GET(shell, idx, &backend); in shell_backend_get() 43 STRUCT_SECTION_COUNT(shell, &cnt); in shell_backend_count_get() 55 const struct shell *shell_backend_get_by_name(const char *backend_name);
|
D | shell.h | 109 struct shell; 196 typedef int (*shell_cmd_handler)(const struct shell *sh, 212 typedef int (*shell_dict_cmd_handler)(const struct shell *sh, size_t argc, 565 const struct shell *sh, size_t argc, char **argv) \ 650 typedef void (*shell_uninit_cb_t)(const struct shell *sh, int res); 658 typedef void (*shell_bypass_cb_t)(const struct shell *sh, 912 struct shell { struct 951 static const struct shell _name; \ 956 LOG_INSTANCE_REGISTER(shell, _name, CONFIG_SHELL_LOG_LEVEL); \ 960 static const STRUCT_SECTION_ITERABLE(shell, _name) = { \ [all …]
|
/Zephyr-latest/samples/net/wifi/shell/ |
D | README.rst | 1 .. zephyr:code-sample:: wifi-shell 2 :name: Wi-Fi shell 5 Test Wi-Fi functionality using the Wi-Fi shell module. 11 enabling the Wi-Fi shell module that provides a set of commands: 23 :zephyr-app: samples/net/wifi/shell 33 shell> wifi scan 35 shell> 44 shell> wifi connect "gksu" 4 SecretStuff 46 shell> 48 shell>
|
/Zephyr-latest/doc/connectivity/bluetooth/ |
D | bluetooth-shell.rst | 9 For specific Bluetooth functionality see also the following shell documentation 14 shell/audio/bap.rst 15 shell/audio/bap_broadcast_assistant.rst 16 shell/audio/bap_scan_delegator.rst 17 shell/audio/cap.rst 18 shell/audio/ccp.rst 19 shell/audio/csip.rst 20 shell/audio/gmap.rst 21 shell/audio/mcp.rst 22 shell/audio/tmap.rst [all …]
|
/Zephyr-latest/tests/drivers/stepper/shell/src/ |
D | main.c | 32 const struct shell *sh = shell_backend_dummy_get_ptr(); in stepper_shell_setup() 45 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 60 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 69 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 78 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 88 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 96 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 104 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 114 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 122 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/helpers/ |
D | shell_test.py | 6 from twister_harness.helpers.shell import Shell 11 shell = Shell(shell_simulator_adapter, timeout=5.0) 12 assert shell.wait_for_prompt() 13 lines = shell.exec_command('zen')
|
/Zephyr-latest/subsys/shell/modules/ |
D | Kconfig | 7 bool "Device shell" 10 This shell provides access to basic device data. 13 bool "Date shell" 17 This shell provides access to date and time based on Unix time. 20 bool "Devmem shell" 24 This shell command provides read/write access to physical memory.
|
/Zephyr-latest/scripts/tests/twister_blackbox/test_data/samples/pytest/shell/pytest/ |
D | test_shell.py | 12 def test_shell_print_help(shell: Shell): 14 lines = shell.exec_command('help') 19 def test_shell_print_version(shell: Shell): 21 lines = shell.exec_command('kernel version')
|
/Zephyr-latest/samples/subsys/testsuite/pytest/shell/pytest/ |
D | test_shell.py | 12 def test_shell_print_help(shell: Shell): 14 lines = shell.exec_command('help') 19 def test_shell_print_version(shell: Shell): 21 lines = shell.exec_command('kernel version')
|
/Zephyr-latest/tests/bluetooth/shell/ |
D | run-bsim.sh | 23 default_image=${ZEPHYR_BASE}/tests/bluetooth/shell/build/zephyr/zephyr.exe 33 ./bs_device_handbrake -s=shell-sim -r=10 -d=0 & 38 $image -s=shell-sim -d=$dev_id -RealEncryption=1 -rs=$dev_id -attach_uart -wait_uart & 43 $BSIM_OUT_PATH/bin/bs_2G4_phy_v1 -s=shell-sim -D=$((num_devices+=1))
|
/Zephyr-latest/samples/subsys/shell/shell_module/src/ |
D | main.c | 36 static int cmd_log_test_start(const struct shell *sh, size_t argc, in cmd_log_test_start() 47 static int cmd_log_test_start_demo(const struct shell *sh, size_t argc, in cmd_log_test_start_demo() 53 static int cmd_log_test_start_flood(const struct shell *sh, size_t argc, in cmd_log_test_start_flood() 59 static int cmd_log_test_stop(const struct shell *sh, size_t argc, in cmd_log_test_stop() 88 static int cmd_demo_ping(const struct shell *sh, size_t argc, char **argv) in cmd_demo_ping() 98 static int cmd_demo_board(const struct shell *sh, size_t argc, char **argv) in cmd_demo_board() 110 static int cmd_demo_getopt_ts(const struct shell *sh, size_t argc, in cmd_demo_getopt_ts() 162 static int cmd_demo_getopt(const struct shell *sh, size_t argc, in cmd_demo_getopt() 212 static int cmd_demo_params(const struct shell *sh, size_t argc, char **argv) in cmd_demo_params() 222 static int cmd_demo_hexdump(const struct shell *sh, size_t argc, char **argv) in cmd_demo_hexdump() [all …]
|