|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
11 #ifndef YARP_DEV_SERVERSERIAL_H
12 #define YARP_DEV_SERVERSERIAL_H
56 void onRead(
Bottle& b)
override;
109 bool send(
const Bottle& msg)
override;
110 bool send(
char *msg,
size_t size)
override;
111 bool receive(
Bottle& msg)
override;
112 int receiveChar(
char& c)
override;
113 int flush ()
override;
114 int receiveLine(
char* line,
const int MaxLineLength)
override;
115 int receiveBytes(
unsigned char* bytes,
const int size)
override;
116 bool setDTR(
bool enable)
override;
128 bool close()
override;
148 #endif // YARP_DEV_SERVERSERIAL_H
void close() override
Stop port activity.
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.
Interface implemented by all device drivers.
ImplementCallbackHelper2()
Constructor.
A callback for typed data from a port.
An abstraction for a thread of execution.
A generic interface to serial port devices.
An interface for the device drivers.
A mini-server for network communication.
bool isRunning()
Returns true if the thread is running (Thread::start has been called successfully and the thread has ...
ServerSerial(const ServerSerial &)=delete
A container for a device driver.
bool close() override
Close the DeviceDriver.
serial: Export a serial sensor.
ServerSerial(ServerSerial &&)=delete
Callback implementation after buffered input.
ServerSerial & operator=(ServerSerial &&)=delete
An interface to the operating system, including Port based communication.
ServerSerial & operator=(const ServerSerial &)=delete
bool stop()
Stop the thread.