13 #ifndef UNIX_SERIALPORT_H
14 #define UNIX_SERIALPORT_H
73 ssize_t
Write(
const void *buf,
size_t nbyte);
83 ssize_t
Read(
void *buf,
size_t nbyte);
93 struct termios options;
98 #endif // UNIX_SERIALPORT_H
void SetRxTimeout(Time timeout_ns)
Set RX timeout.
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
void SetBaudrate(int baudrate)
Set baudrate.
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
Definition: Unix_SerialPort.h:26
Base class for serial port.
Definition: SerialPort.h:25
void FlushInput(void)
Flush input datas.
ssize_t Write(const void *buf, size_t nbyte)
Write datas.
Unix_SerialPort(const Object *parent, std::string port_name, std::string device)
Constructor.
ssize_t Read(void *buf, size_t nbyte)
Read datas.
~Unix_SerialPort()
Destructor.
Base class for serial port.