40 #ifndef SERIAL_IMPL_UNIX_H 41 #define SERIAL_IMPL_UNIX_H 51 using std::invalid_argument;
69 unsigned long baudrate,
90 waitReadable (uint32_t
timeout);
93 waitByteTimes (
size_t count);
96 read (uint8_t *buf,
size_t size = 1);
99 write (
const uint8_t *data,
size_t length);
111 sendBreak (
int duration);
114 setBreak (
bool level);
138 setPort (
const string &port);
150 setBaudrate (
unsigned long baudrate);
153 getBaudrate ()
const;
159 getBytesize ()
const;
171 getStopbits ()
const;
177 getFlowcontrol ()
const;
192 void reconfigurePort ();
219 #endif // SERIAL_IMPL_UNIX_H 221 #endif // !defined(_WIN32)
pthread_mutex_t read_mutex
static timespec timespec_now()
pthread_mutex_t write_mutex
flowcontrol_t flowcontrol_
MillisecondTimer(const uint32_t millis)