#include <mrpt/hwdrivers/CInterfaceFTDIMessages.h>
Public Member Functions | |
CInterfaceFTDIMessages () | |
Constructor. | |
virtual | ~CInterfaceFTDIMessages () |
Destructor. | |
void | sendMessage (const utils::CMRPTMessage &msg) |
Send a message to the device. | |
bool | receiveMessage (utils::CMRPTMessage &msg) |
Tries to receive a message from the device. |
The limit for the body size is 255 bytes. The frame format is an array of bytes, in this order:
<START_FLAG> <HEADER> <LENGTH> <BODY> <END_FLAG> <START_FLAG> = 0x69 <HEADER> = A header byte <LENGHT> = Number of bytes of BODY <BODY> = N x bytes <END_FLAG> = 0X96 Total length = <LENGTH> + 4
Definition at line 54 of file CInterfaceFTDIMessages.h.
mrpt::hwdrivers::CInterfaceFTDIMessages::CInterfaceFTDIMessages | ( | ) |
Constructor.
virtual mrpt::hwdrivers::CInterfaceFTDIMessages::~CInterfaceFTDIMessages | ( | ) | [virtual] |
Destructor.
bool mrpt::hwdrivers::CInterfaceFTDIMessages::receiveMessage | ( | utils::CMRPTMessage & | msg | ) |
Tries to receive a message from the device.
std::exception | On communication errors |
void mrpt::hwdrivers::CInterfaceFTDIMessages::sendMessage | ( | const utils::CMRPTMessage & | msg | ) |
Send a message to the device.
Note that only the low byte from the "type" field will be used.
std::exception | On communication errors |
Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:18:33 EST 2009 |