Robot
The embedded systems for UTRA's autonomous humanoid soccer-playing robot
|
This is the data structure copied into the sensor queue, and read by the thread that sends data to the PC. It includes 2 fields: one that indicates the type of data it encapsulates, and the other pointing to the data. More...
#include <UART_Handler.h>
Public Attributes | |
eTXData_t | eDataType |
void * | pData |
This is the data structure copied into the sensor queue, and read by the thread that sends data to the PC. It includes 2 fields: one that indicates the type of data it encapsulates, and the other pointing to the data.
The fact that the pointer to the data is of type void* allows pointers to different types of data to be sent through the same struct, and then typecasted into the appropriate type (based on eDataType) on the receiving end. Thus, this is flexible as it allows any type of sensor data to be sent through the queue
Definition at line 103 of file UART_Handler.h.
eTXData_t TXData_t::eDataType |
Tells the receiving task what the data is
Definition at line 104 of file UART_Handler.h.
void* TXData_t::pData |
Points to the container for the data
Definition at line 105 of file UART_Handler.h.