BeRTOS
|
Define a command that can be tokenized by the parser. More...
#include <parser.h>
Data Fields | |
const char * | name |
Name of command. | |
const char * | arg_fmt |
Format string for the input. | |
const char * | result_fmt |
Format string for the output. | |
CmdFuncPtr | func |
Pointer to the handler function. | |
uint16_t | flags |
Currently unused. |
Define a command that can be tokenized by the parser.
The format strings are sequences of characters, one for each parameter/result. Valid characters are:
d - a long integer, in decimal format s - a var string (in RAM)
DECLARE_CMD_HUNK
(cmd_hunk.h).