|
SmartSnippets DA1459x SDK
|
MCIF-ASCII command description structure. More...
#include <mcif.h>
Data Fields | |
| const char * | name |
| void(* | fn )(xQueueHandle txq, void *arg1, void *arg2) |
| const char * | help_str |
| uint8_t | flags |
MCIF-ASCII command description structure.
This structure is used to describe to MCIF-ASCII framework a terminal command. The function called (fn) receives the MCIF-ASCII transmit queue (that can be used to send messages to the terminal, if needed), and pointers to the two parsed arguments. The arguments are already parsed, according to the type defined by the command flags, so all that is needed in the command implementation is to cast them to the proper type (e.g. int v = *(int *)arg1;). It is the responsibility of the user function to make sure it does valid casting of the arguements, and it doesn't attempt to use not defined arguments.
| uint8_t mcif_ascii_parse_element_s::flags |
Command flags as defined by the MCIF_ASCII_FLAGS_* macros
| void(* mcif_ascii_parse_element_s::fn) (xQueueHandle txq, void *arg1, void *arg2) |
Pointer to the command user function
| const char* mcif_ascii_parse_element_s::help_str |
The string displayed for command usage
| const char* mcif_ascii_parse_element_s::name |
The command name. This is used to enter the command
1.8.16