#include <TransportLayer.h>
Public Member Functions | |
crc | calcChecksum (uint8_t const message[], int nBytes) |
TransportLayer (std::string port, unsigned int baudrate) | |
bool | tryToRead (byte *buff, byte buffLength) |
void | write (byte buff[], byte buffLength) |
~TransportLayer () | |
Private Member Functions | |
void | crcInit () |
bool | read (byte buff[], byte buffLength) |
Private Attributes | |
crc | _crcTable [MAX_TABLE] |
boost::asio::io_service | _ioService |
boost::asio::serial_port | _serial |
Definition at line 21 of file TransportLayer.h.
TransportLayer::TransportLayer | ( | std::string | port, |
unsigned int | baudrate | ||
) |
Definition at line 7 of file TransportLayer.cpp.
Definition at line 125 of file TransportLayer.cpp.
crc TransportLayer::calcChecksum | ( | uint8_t const | message[], |
int | nBytes | ||
) |
Definition at line 106 of file TransportLayer.cpp.
void TransportLayer::crcInit | ( | ) | [private] |
Definition at line 35 of file TransportLayer.cpp.
bool TransportLayer::read | ( | byte | buff[], |
byte | buffLength | ||
) | [private] |
Definition at line 17 of file TransportLayer.cpp.
bool TransportLayer::tryToRead | ( | byte * | buff, |
byte | buffLength | ||
) |
Definition at line 74 of file TransportLayer.cpp.
void TransportLayer::write | ( | byte | buff[], |
byte | buffLength | ||
) |
Definition at line 91 of file TransportLayer.cpp.
crc TransportLayer::_crcTable[MAX_TABLE] [private] |
Definition at line 23 of file TransportLayer.h.
boost::asio::io_service TransportLayer::_ioService [private] |
Definition at line 24 of file TransportLayer.h.
boost::asio::serial_port TransportLayer::_serial [private] |
Definition at line 25 of file TransportLayer.h.