BeRTOS
Data Fields
CmdTemplate Struct Reference

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.

Detailed Description

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)

Note:
To create and fill an instance for this function, it is strongly advised to use DECLARE_CMD_HUNK (cmd_hunk.h).

Definition at line 150 of file parser.h.


The documentation for this struct was generated from the following file: