![]() |
roneos
Operating System for the r-one robot
|
Serial UART communication functions. More...
Go to the source code of this file.
Data Structures | |
| struct | SerialCmd |
| Serial commands are a linked list of commands containing the message and name. More... | |
Typedefs | |
| typedef struct SerialCmd | SerialCmd |
| Serial commands are a linked list of commands containing the message and name. | |
Functions | |
| void | serialCommandAdd (SerialCmd *serialCmdPtr, char *name, void(*funcPtr)(char *message)) |
| Add serial command to linked list. More... | |
| uint32 | serialCommandGetTimestamp (SerialCmd *serialCmdPtr) |
| Get the time this command was last called. More... | |
| void | serialCommandInit (void) |
| Initializes serial command processing. More... | |
Serial UART communication functions.
| void serialCommandAdd | ( | SerialCmd * | serialCmdPtr, |
| char * | name, | ||
| void(*)(char *message) | funcPtr | ||
| ) |
Add serial command to linked list.
| serialCmdPtr | pointer to serial command to be added |
| name | name of serial command |
| funcPtr | function pointer to function that will be executed when command is sent to serial port |
| uint32 serialCommandGetTimestamp | ( | SerialCmd * | serialCmdPtr) |
Get the time this command was last called.
| serialCmdPtr | pointer to serial command to be added |
| void serialCommandInit | ( | void | ) |
Initializes serial command processing.