Public Member Functions | Private Member Functions | Private Attributes
TransportLayer Class Reference

#include <TransportLayer.h>

List of all members.

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

Detailed Description

Definition at line 21 of file TransportLayer.h.


Constructor & Destructor Documentation

TransportLayer::TransportLayer ( std::string  port,
unsigned int  baudrate 
)

Definition at line 7 of file TransportLayer.cpp.

Definition at line 125 of file TransportLayer.cpp.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:


robotican_hardware_interface
Author(s):
autogenerated on Fri Oct 27 2017 03:02:48