39 #ifndef SERIAL_IMPL_WINDOWS_H 40 #define SERIAL_IMPL_WINDOWS_H 50 using std::invalid_argument;
58 unsigned long baudrate,
85 read (uint8_t *buf,
size_t size = 1);
88 write (
const uint8_t *data,
size_t length);
205 #endif // SERIAL_IMPL_WINDOWS_H 207 #endif // if defined(_WIN32)
void setBytesize(bytesize_t bytesize)
pthread_mutex_t read_mutex
void waitByteTimes(size_t count)
void setStopbits(stopbits_t stopbits)
Timeout getTimeout() const
void setBaudrate(unsigned long baudrate)
size_t read(uint8_t *buf, size_t size=1)
stopbits_t getStopbits() const
pthread_mutex_t write_mutex
flowcontrol_t flowcontrol_
parity_t getParity() const
bytesize_t getBytesize() const
bool waitReadable(uint32_t timeout)
SerialImpl(const string &port, unsigned long baudrate, bytesize_t bytesize, parity_t parity, stopbits_t stopbits, flowcontrol_t flowcontrol)
void setParity(parity_t parity)
void sendBreak(int duration)
unsigned long getBaudrate() const
void setFlowcontrol(flowcontrol_t flowcontrol)
void setTimeout(Timeout &timeout)
flowcontrol_t getFlowcontrol() const
size_t write(const uint8_t *data, size_t length)
void setPort(const string &port)
void setBreak(bool level)