9 #ifndef SerialDeviceDriverh
10 #define SerialDeviceDriverh
18 #include <ace/DEV_Connector.h>
19 #include <ace/TTY_IO.h>
31 char CommChannel[100];
83 ACE_TTY_IO _serial_dev;
84 ACE_DEV_Connector _serialConnector;
86 char line_terminator_char1;
87 char line_terminator_char2;
103 bool close()
override;
110 bool send(
const Bottle& msg)
override;
111 bool send(
char *msg,
size_t size)
override;
118 bool receive(
Bottle& msg)
override;
124 int receiveChar(
char& chr)
override;
132 int receiveBytes(
unsigned char* bytes,
const int size)
override;
140 int receiveLine(
char* line,
const int MaxLineLength)
override;
147 bool setDTR(
bool value)
override;
153 int flush()
override;
ACE_TTY_IO::Serial_Params SerialParams
serialport: A basic Serial Communications Link (RS232, USB).
Interface implemented by all device drivers.
A generic interface to serial port devices.
A simple collection of objects that can be described and transmitted in a portable way.
A base class for nested structures that can be searched.
An interface to the operating system, including Port based communication.