12 #ifndef SerialDeviceDriverh
13 #define SerialDeviceDriverh
21 #include <ace/DEV_Connector.h>
22 #include <ace/TTY_IO.h>
34 char CommChannel[100];
87 ACE_TTY_IO _serial_dev;
88 ACE_DEV_Connector _serialConnector;
90 char line_terminator_char1;
91 char line_terminator_char2;
107 bool close()
override;
114 bool send(
const Bottle& msg)
override;
115 bool send(
char *msg,
size_t size)
override;
122 bool receive(
Bottle& msg)
override;
128 int receiveChar(
char& chr)
override;
136 int receiveBytes(
unsigned char* bytes,
const int size)
override;
144 int receiveLine(
char* line,
const int MaxLineLength)
override;
151 bool setDTR(
bool value)
override;
157 int flush()
override;
ACE_TTY_IO::Serial_Params SerialParams
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.