68 virtual ssize_t
Write(
const void *buf,
size_t nbyte) = 0;
78 virtual ssize_t
Read(
void *buf,
size_t nbyte) = 0;
89 #endif // SERIALPORT_H
Base class for all Framework's classes.
Definition: Object.h:83
virtual ssize_t Write(const void *buf, size_t nbyte)=0
Write datas.
namespace of the flair Framework
Definition: Ahrs.h:19
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
SerialPort(const Object *parent, std::string name)
Constructor.
Definition: SerialPort.h:35
virtual void SetRxTimeout(Time timeout_ns)=0
Set RX timeout.
Base class for serial port.
Definition: SerialPort.h:25
Base class for all Framework's classes.
~SerialPort()
Destructor.
Definition: SerialPort.h:41
virtual void FlushInput(void)=0
Flush input datas.
virtual void SetBaudrate(int baudrate)=0
Set baudrate.
virtual ssize_t Read(void *buf, size_t nbyte)=0
Read datas.