Encapsulates the serial port device. More...
#include <cdlCOM.h>
Public Member Functions | |
CCdlCOM (TCdlCOMDesc ccd) | |
Construct a CCdlCOM class. More... | |
virtual int | recv (void *buf, int size) |
Receives data from the device. More... | |
virtual int | send (const void *buf, int size) |
Sends data to the device. More... | |
virtual | ~CCdlCOM () |
Destructs the class. More... | |
Public Member Functions inherited from CCdlBase | |
virtual | ~CCdlBase () |
destructor More... | |
Static Protected Member Functions | |
static char | digit (const int _val) |
Converts an integer to a char. More... | |
Protected Attributes | |
TCdlCOMDesc | _ccd |
Stores the attributes of the serial port device. More... | |
struct termios | _oto |
old timeouts More... | |
int | _prtHdl |
port handle More... | |
Private Attributes | |
std::string | _deviceName |
Encapsulates the serial port device.
This class is responsible for direct communication with the serial port device. It builds the lowest layer for communication and uses the system API functions to get access the to the device.
CCdlCOM::CCdlCOM | ( | TCdlCOMDesc | ccd | ) |
Construct a CCdlCOM class.
To this constructor a 'TCdlCOMDesc' parameter has to be given, which describes the desired serial port. An attempt to open a connection to the desired device will be tried.
Definition at line 163 of file cdlCOM.cpp.
|
virtual |
Destructs the class.
Definition at line 298 of file cdlCOM.cpp.
|
inlinestaticprotected |
|
virtual |
|
virtual |
|
protected |