Embedded TCP/IP stack
4.7.0
|
Shell command control structure. More...
Data Fields | |
const fnet_char_t * | name |
Command name (null-terminated string). More... | |
fnet_index_t | min_args |
Minimum number of arguments the command accepts. More... | |
fnet_index_t | max_args |
Maximum number of arguments the command accepts. More... | |
fnet_shell_cmd_function_t | cmd_ptr |
Pointer to the actual command function defined by the fnet_shell_cmd_function_t type. More... | |
fnet_char_t * | description |
Brief description of the command (null-terminated string). This field is used by the fnet_shell_help() function. . More... | |
fnet_char_t * | syntax |
Syntax of the command (null-terminated string). This field is used by the fnet_shell_help() function. The standard command line syntax information which will be helpful to describe the possible command line parameters in a help display is: More... | |
Shell command control structure.
This structure is used to define properties of a command that will be supported by the shell.
An application should define the command table and pass it to the fnet_shell_t
structure.
The last table element must have all fields set to zero as the end-of-table mark. The good example of fnet_shell_command_t usage is in the FNET Shell application.
Definition at line 187 of file fnet_shell.h.