KatanaNativeInterface
$VERSION$
|
Go to the documentation of this file.
45 #endif //WIN32 else LINUX
92 #endif //WIN32 else LINUX
99 static char digit(
const int _val) {
100 return (
char)((int)
'0' + _val);
114 virtual int send(
const void* buf,
int size);
117 virtual int recv(
void* buf,
int size);
int wttc
write total timeout
TCdlCOMDesc _ccd
Stores the attributes of the serial port device.
static char digit(const int _val)
Converts an integer to a char.
int baud
baud rate of port
CCdlCOM(TCdlCOMDesc ccd, const char *dev_name=0)
Construct a CCdlCOM class.
int rttc
read total timeout
This structrue stores the attributes for a serial port device.
virtual int send(const void *_buf, int _sz)=0
Pure function to send data.
int port
serial port number
Abstract base class for devices.
virtual int recv(void *_buf, int _sz)=0
Pure function to receive data.
Encapsulates the serial port device.