Home
last modified time | relevance | path

Searched refs:syntax (Results 1 – 25 of 66) sorted by relevance

123

/Zephyr-Core-3.4.0/include/zephyr/shell/
Dshell.h173 const char *syntax; /*!< Command syntax strings. */ member
196 #define SHELL_CMD_ARG_REGISTER(syntax, subcmd, help, handler, \ argument
198 static const struct shell_static_entry UTIL_CAT(_shell_, syntax) = \
199 SHELL_CMD_ARG(syntax, subcmd, help, handler, mandatory, optional); \
201 UTIL_CAT(shell_cmd_, syntax), shell_root_cmds, \
202 UTIL_CAT(shell_cmd_, syntax) \
204 .entry = &UTIL_CAT(_shell_, syntax) \
227 #define SHELL_COND_CMD_ARG_REGISTER(flag, syntax, subcmd, help, handler, \ argument
232 SHELL_CMD_ARG_REGISTER(syntax, subcmd, help, handler, \
236 static shell_cmd_handler dummy_##syntax##_handler __unused = \
[all …]
/Zephyr-Core-3.4.0/subsys/shell/
Dshell_help.c162 longest = Z_MAX(longest, z_shell_strlen(entry->syntax)); in z_shell_help_subcmd_print()
178 help_item_print(sh, entry->syntax, longest, entry->help); in z_shell_help_subcmd_print()
188 field_width = z_shell_strlen(cmd->syntax) + z_shell_strlen(cmd_sep); in z_shell_help_cmd_print()
190 z_shell_fprintf(sh, SHELL_NORMAL, "%s%s", cmd->syntax, cmd_sep); in z_shell_help_cmd_print()
Dshell_utils.c270 const struct shell_static_entry *root_cmd_find(const char *syntax) in root_cmd_find() argument
277 if (strcmp(syntax, cmd->entry->syntax) == 0) { in root_cmd_find()
302 if (dloc->syntax != NULL) { in z_shell_cmd_get()
318 if (entry_list[idx].syntax != NULL) { in z_shell_cmd_get()
358 if (strcmp(cmd_str, entry->syntax) == 0) { in z_shell_find_cmd()
Dshell_wildcard.c81 if (fnmatch(pattern, entry->syntax, 0) == 0) { in commands_expand()
84 entry->syntax, pattern); in commands_expand()
Dshell.c84 sh->ctx->active_cmd.syntax); in cmd_precheck()
340 is_candidate = is_completion_candidate(candidate->syntax, in find_completion_candidates()
343 *longest = Z_MAX(strlen(candidate->syntax), *longest); in find_completion_candidates()
368 cmd_len = z_shell_strlen(match->syntax); in autocomplete()
383 match->syntax + arg_len, in autocomplete()
442 if (str && match->syntax && in tab_options_print()
443 !is_completion_candidate(match->syntax, str, str_len)) { in tab_options_print()
447 tab_item_print(sh, match->syntax, longest); in tab_options_print()
469 strncpy(sh->ctx->temp_buff, match->syntax, in common_beginning_find()
472 *str = match->syntax; in common_beginning_find()
[all …]
Dshell_utils.h84 const struct shell_static_entry *root_cmd_find(const char *syntax);
/Zephyr-Core-3.4.0/drivers/sensor/
Dsensor_shell.c473 entry->syntax = NULL; in attribute_name_get()
481 entry->syntax = sensor_attribute_name[i]; in attribute_name_get()
494 entry->syntax = NULL; in channel_name_get()
508 entry->syntax = sensor_channel_name[i]; in channel_name_get()
525 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
536 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get_for_attr()
547 entry->syntax = NULL; in trigger_name_get()
555 entry->syntax = sensor_trigger_table[i].name; in trigger_name_get()
573 entry->syntax = "on"; in trigger_on_off_get()
576 entry->syntax = "off"; in trigger_on_off_get()
[all …]
/Zephyr-Core-3.4.0/samples/modules/nanopb/src/
Dsimple.proto4 syntax = "proto3";
/Zephyr-Core-3.4.0/doc/build/dts/
Dintro.rst18 intro-syntax-structure.rst
Dbindings.rst27 bindings-syntax.rst
Dbindings-intro.rst8 For a detailed syntax reference, see :ref:`dt-bindings-file-syntax`.
/Zephyr-Core-3.4.0/samples/subsys/shell/shell_module/src/
Ddynamic_cmd.c147 entry->syntax = dynamic_cmd_buffer[idx]; in dynamic_cmd_get()
155 entry->syntax = NULL; in dynamic_cmd_get()
/Zephyr-Core-3.4.0/subsys/logging/
Dlog_cmds.c273 entry->syntax = log_source_name_get(Z_LOG_LOCAL_DOMAIN_ID, idx); in module_name_get()
282 entry->syntax = (idx < ARRAY_SIZE(severity_lvls_sorted)) ? in severity_lvl_get()
408 entry->syntax = NULL; in backend_name_get()
417 entry->syntax = backend->name; in backend_name_get()
/Zephyr-Core-3.4.0/subsys/usb/device_next/
Dusbd_shell.c422 entry->syntax = NULL; in class_node_name_lookup()
430 entry->syntax = node->name; in class_node_name_lookup()
443 entry->syntax = NULL; in device_context_lookup()
451 entry->syntax = ctx->name; in device_context_lookup()
/Zephyr-Core-3.4.0/soc/arm/nxp_lpc/lpc54xxx/gcc/
Dstartup_LPC54114_cm4.S16 .syntax unified
/Zephyr-Core-3.4.0/modules/
DKconfig.sysbuild13 # use the following syntax:
/Zephyr-Core-3.4.0/samples/net/syslog_net/
DREADME.rst34 The following syntax is supported for the server address
/Zephyr-Core-3.4.0/doc/build/kconfig/
Dextensions.rst18 The recommended syntax for referencing environment variables is ``$(FOO)``
21 The ``$FOO`` syntax for expanding environment variables is only supported for
/Zephyr-Core-3.4.0/doc/services/shell/
Dindex.rst85 * Static subcommand (level > 0): Number and syntax must be known during compile
87 * Dynamic subcommand (level > 0): Number and syntax does not need to be known
154 The idea is to use the string as a command syntax that can be prompted by the
171 /* data is a value corresponding to called command syntax */
228 entry->syntax = dynamic_cmd_buffer[idx];
234 * syntax must be set to NULL.
236 entry->syntax = NULL;
387 /* If it is a subcommand handler parent command syntax
393 /* Print this command syntax */
394 shell_print(sh, "This command syntax is: %s", argv[0]);
[all …]
/Zephyr-Core-3.4.0/tests/subsys/shell/shell/src/
Dmain.c261 entry->syntax = dynamic_cmd_buffer[idx]; in dynamic_cmd_get()
269 entry->syntax = NULL; in dynamic_cmd_get()
/Zephyr-Core-3.4.0/drivers/bbram/
Dbbram_shell.c180 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
/Zephyr-Core-3.4.0/doc/connectivity/networking/
Darmfvp_user_networking_setup.rst50 * If setup fails, or the parameter syntax is incorrect, there is no error
/Zephyr-Core-3.4.0/subsys/logging/backends/
DKconfig.net23 Following syntax is supported:
/Zephyr-Core-3.4.0/drivers/adc/
Dadc_shell.c415 entry->syntax = adc_list[idx].dev->name; in cmd_adc_dev_get()
420 entry->syntax = NULL; in cmd_adc_dev_get()
/Zephyr-Core-3.4.0/drivers/can/
Dcan_shell.c871 entry->syntax = (dev != NULL) ? dev->name : NULL; in cmd_can_device_name()
886 entry->syntax = can_shell_mode_map[idx].name; in cmd_can_mode()
889 entry->syntax = NULL; in cmd_can_mode()
901 entry->syntax = (dev != NULL) ? dev->name : NULL; in cmd_can_device_name_mode()

123