Embedded TCP/IP stack
4.1.0
|
fnet_shell.h
173 typedef void(*fnet_shell_cmd_function_t)( fnet_shell_desc_t desc, fnet_index_t argc, fnet_char_t **argv );
415 fnet_return_t fnet_shell_block( fnet_shell_desc_t desc, void (*on_ctrlc)(fnet_shell_desc_t shl_desc, void *cookie), void *cookie);
599 fnet_return_t fnet_shell_switch( fnet_shell_desc_t desc, const struct fnet_shell *switch_shell);
fnet_bool_t echo
Enable/disable terminal echo flag. When set to FNET_TRUE the echo is enabled, characters received by ...
Definition: fnet_shell.h:246
The Shell service is accepting user commnads.
Definition: fnet_shell.h:146
fnet_shell_desc_t fnet_shell_init(struct fnet_shell_params *params)
Initializes the Shell service.
fnet_return_t fnet_shell_script(fnet_shell_desc_t desc, fnet_char_t *script)
Executes the command line script.
The Shell service is blocked and ignores user commnads.
Definition: fnet_shell.h:148
fnet_return_t fnet_shell_block(fnet_shell_desc_t desc, void(*on_ctrlc)(fnet_shell_desc_t shl_desc, void *cookie), void *cookie)
Blocks the shell to ignore user commands.
void fnet_shell_script_stop(fnet_shell_desc_t desc)
Stops execution of the shell command line.
fnet_char_t * description
Brief description of the command (null-terminated string). This field is used by the fnet_shell_help...
Definition: fnet_shell.h:196
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
void fnet_shell_unblock(fnet_shell_desc_t desc)
Unblocks the shell to accept user commands.
fnet_char_t * syntax
Syntax of the command (null-terminated string). This field is used by the fnet_shell_help() function...
Definition: fnet_shell.h:198
fnet_size_t cmd_line_buffer_size
Size of the command-line buffer. It defines the maximum length of the entered input-command line...
Definition: fnet_shell.h:242
fnet_size_t fnet_shell_println(fnet_shell_desc_t desc, const fnet_char_t *format,...)
Prints formatted text to the shell stream and terminates the printed text by the line separator strin...
void(* fnet_shell_cmd_function_t)(fnet_shell_desc_t desc, fnet_index_t argc, fnet_char_t **argv)
Command callback function prototype.
Definition: fnet_shell.h:173
fnet_return_t fnet_shell_switch(fnet_shell_desc_t desc, const struct fnet_shell *switch_shell)
Switch to other command line set.
fnet_int32_t fnet_shell_getchar(fnet_shell_desc_t desc)
Reads character from the shell stream.
fnet_size_t fnet_shell_printf(fnet_shell_desc_t desc, const fnet_char_t *format,...)
Prints formatted text to the shell stream.
void fnet_shell_putchar(fnet_shell_desc_t desc, fnet_char_t character)
Writes character to the shell stream.
fnet_bool_t fnet_shell_is_ctrlc(fnet_shell_desc_t desc)
Detects if the [Ctrl]+[c] is received.
fnet_shell_cmd_function_t cmd_ptr
Pointer to the actual command function defined by the fnet_shell_cmd_function_t type.
Definition: fnet_shell.h:194
const struct fnet_shell_command * cmd_table
The pointer to the command table. The last table element must have all fields set to zero as the end...
Definition: fnet_shell.h:222
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net