Go to the documentation of this file.
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)
bool waitReadable(uint32_t timeout)
void sendBreak(int duration)
SerialImpl(const string &port, unsigned long baudrate, bytesize_t bytesize, parity_t parity, stopbits_t stopbits, flowcontrol_t flowcontrol)
parity_t getParity() const
stopbits_t getStopbits() const
void setTimeout(Timeout &timeout)
void setBreak(bool level)
void setParity(parity_t parity)
size_t write(const uint8_t *data, size_t length)
flowcontrol_t getFlowcontrol() const
void setFlowcontrol(flowcontrol_t flowcontrol)
void waitByteTimes(size_t count)
void setPort(const string &port)
void setStopbits(stopbits_t stopbits)
void setBaudrate(unsigned long baudrate)
void setBytesize(bytesize_t bytesize)
pthread_mutex_t read_mutex
size_t read(uint8_t *buf, size_t size=1)
pthread_mutex_t write_mutex
flowcontrol_t flowcontrol_
Timeout getTimeout() const
bytesize_t getBytesize() const
unsigned long getBaudrate() const