#include <cdlCOM.h>
Inheritance diagram for CCdlCOM:
Public Member Functions | |
CCdlCOM (TCdlCOMDesc ccd, const char *dev_name=0) | |
Construct a CCdlCOM class. | |
virtual | ~CCdlCOM () |
Destructs the class. | |
virtual int | send (const void *buf, int size) |
Sends data to the device. | |
virtual int | recv (void *buf, int size) |
Receives data from the device. | |
Static Protected Member Functions | |
static char | digit (const int _val) |
Converts an integer to a char. | |
Protected Attributes | |
TCdlCOMDesc | _ccd |
Stores the attributes of the serial port device. | |
int | _prtHdl |
port handle | |
termios | _oto |
old timeouts | |
Private Attributes | |
std::string | _deviceName |
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.
Definition at line 73 of file cdlCOM.h.
CCdlCOM::CCdlCOM | ( | TCdlCOMDesc | ccd, | |
const char * | dev_name = 0 | |||
) |
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.
virtual CCdlCOM::~CCdlCOM | ( | ) | [virtual] |
Destructs the class.
static char CCdlCOM::digit | ( | const int | _val | ) | [inline, static, protected] |
virtual int CCdlCOM::recv | ( | void * | buf, | |
int | size | |||
) | [virtual] |
virtual int CCdlCOM::send | ( | const void * | buf, | |
int | size | |||
) | [virtual] |
TCdlCOMDesc CCdlCOM::_ccd [protected] |
std::string CCdlCOM::_deviceName [private] |
struct termios CCdlCOM::_oto [protected] |
int CCdlCOM::_prtHdl [protected] |