roneos
Operating System for the r-one robot
 All Data Structures Files Functions Variables Typedefs Groups
serialCommand.h File Reference

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...
 

Detailed Description

Serial UART communication functions.

Since
July 21, 2010
Author
MRSL

Function Documentation

void serialCommandAdd ( SerialCmd serialCmdPtr,
char *  name,
void(*)(char *message)  funcPtr 
)

Add serial command to linked list.

Parameters
serialCmdPtrpointer to serial command to be added
namename of serial command
funcPtrfunction pointer to function that will be executed when command is sent to serial port
Returns
void
uint32 serialCommandGetTimestamp ( SerialCmd serialCmdPtr)

Get the time this command was last called.

Parameters
serialCmdPtrpointer to serial command to be added
Returns
tick time of last call
void serialCommandInit ( void  )

Initializes serial command processing.

Returns
void