|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
11 #ifndef YARP_DEV_ISERIALDEVICE_H
12 #define YARP_DEV_ISERIALDEVICE_H
38 virtual bool send(
char *msg,
size_t size) = 0;
61 virtual int receiveBytes(
unsigned char* bytes,
const int size) = 0;
70 virtual int receiveLine(
char* line,
const int MaxLineLength) = 0;
76 virtual bool setDTR(
bool enable) = 0;
87 #endif // YARP_DEV_ISERIALDEVICE_H
A simple collection of objects that can be described and transmitted in a portable way.
contains the definition of a Vector type
virtual bool receive(yarp::os::Bottle &msg)=0
Gets the existing chars in the receive queue.
A generic interface to serial port devices.
virtual int receiveBytes(unsigned char *bytes, const int size)=0
Gets an array of bytes (unsigned char) with size <= 'size' parameter.
virtual bool setDTR(bool enable)=0
Enable/Disable DTR protocol.
virtual int receiveChar(char &chr)=0
Gets one single char from the receive queue.
virtual bool send(char *msg, size_t size)=0
The main, catch-all namespace for YARP.
virtual bool send(const yarp::os::Bottle &msg)=0
Sends a string of chars to the serial communications channel.
virtual int receiveLine(char *line, const int MaxLineLength)=0
Gets one line (a sequence of chars with a ending '\n' or '\r') from the receive queue.
virtual int flush()=0
Flushes the internal buffer.