JQI Arduino Libraries
Arduino for the modern scientist.
 All Classes Files Functions Variables Typedefs Macros Pages
Public Attributes | List of all members
SetListArduino::SerialCommandCallback Struct Reference

Data struct containing a map between serial commands and SetList callback functions. More...

Public Attributes

char command [SERIALCOMMAND_MAXCOMMANDLENGTH+1]
 "Short command" to listen for on serial stream. More...
 
int channel
 Integer specifying which device channel should be associated with the given command. More...
 
GenericSetListCallback function
 GenericSetListCallback function. More...
 

Detailed Description

Data struct containing a map between serial commands and SetList callback functions.

Note, there is a maximum length to the serial "short command" set by SERIALCOMMAND_MAXCOMMANDLENGTH. See SetListArduino::readSerial() for details, or the README.

See also
readSerial(), registerCommand(), registerDevice()

Member Data Documentation

int SetListArduino::SerialCommandCallback::channel

Integer specifying which device channel should be associated with the given command.

char SetListArduino::SerialCommandCallback::command[SERIALCOMMAND_MAXCOMMANDLENGTH+1]

"Short command" to listen for on serial stream.

GenericSetListCallback SetListArduino::SerialCommandCallback::function

GenericSetListCallback function.

This is a type-agnostic recast of the SetList callback passed in from SetListArduino::registerCommand().


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