6#ifndef YARP_DEV_SERIALPORT_NWC_H
7#define YARP_DEV_SERIALPORT_NWC_H
50 m_receivePort.
close();
64 bool send(
const char *msg,
size_t size)
override;
67 int flush ()
override;
69 int receiveBytes(
unsigned char* bytes,
const int size)
override;
70 bool setDTR(
bool enable)
override;
71 bool close()
override;
This class is the parameters parser for class SerialPort_nwc_yarp.
serialPort_nwc_yarp: a client for a serialPort_nws_yarp device
int receiveLine(char *line, const int MaxLineLength) override
Gets one line (a sequence of chars with a ending '\n' or '\r') from the receive queue.
bool send(const Bottle &msg) override
Sends a string of chars to the serial communications channel.
SerialPort_nwc_yarp(SerialPort_nwc_yarp &&)=delete
SerialPort_nwc_yarp & operator=(SerialPort_nwc_yarp &&)=delete
SerialPort_nwc_yarp(const SerialPort_nwc_yarp &)=delete
SerialPort_nwc_yarp & operator=(const SerialPort_nwc_yarp &)=delete
~SerialPort_nwc_yarp() override
bool close() override
Close the DeviceDriver.
int receiveChar(char &c) override
Gets one single char from the receive queue.
int flush() override
Flushes the internal buffer.
int receiveBytes(unsigned char *bytes, const int size) override
Gets an array of bytes (unsigned char) with size <= 'size' parameter.
bool receive(Bottle &msg) override
Gets the existing chars in the receive queue.
bool open(Searchable &prop) override
Open the DeviceDriver.
bool setDTR(bool enable) override
Enable/Disable DTR protocol.
SerialPort_nwc_yarp()=default
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 mini-server for performing network communication in the background.
A mini-server for network communication.
void close() override
Stop port activity.
A base class for nested structures that can be searched.
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.