An implementation of message passing over a FTDI USB link. More...
#include <mrpt/hwdrivers/CInterfaceFTDIMessages.h>


Public Member Functions | |
| CInterfaceFTDIMessages () | |
| Constructor. | |
| virtual | ~CInterfaceFTDIMessages () |
| Destructor. | |
| void | sendMessage (const utils::CMessage &msg) |
| Send a message to the device. | |
| bool | receiveMessage (utils::CMessage &msg) |
| Tries to receive a message from the device. | |
An implementation of message passing over a FTDI USB link.
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::CMessage & | msg | ) |
Tries to receive a message from the device.
| std::exception | On communication errors |
| void mrpt::hwdrivers::CInterfaceFTDIMessages::sendMessage | ( | const utils::CMessage & | 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.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |