Out-of-office display, GFX
 All Classes Files Functions Variables Enumerations Enumerator Groups
Public Attributes | List of all members
command Struct Reference

Command that will execute a callback function when recongised. More...

#include <uartDriver.h>

Public Attributes

const char * command
 Command string.
void(* callback )(const char *arg)
 Function that will be called if command is recongised.

Detailed Description

Command that will execute a callback function when recongised.

Member Data Documentation

void( * command::callback)(const char *arg)

Function that will be called if command is recongised.

If there is a string of characters between the recognised string and newline, preceded by whitepace, it will be given as an argument to the callback function. If the argument is longer than UART_CMD_ARG_LEN, the callback will not be executed.

Parameters
argargument
const char* command::command

Command string.

Must not include newline or whitespace.


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