39 #ifndef SERIAL_IMPL_WINDOWS_H 40 #define SERIAL_IMPL_WINDOWS_H 50 using std::invalid_argument;
55 class serial::Serial::SerialImpl {
57 SerialImpl(
const string &port,
58 unsigned long baudrate,
64 virtual ~SerialImpl();
71 size_t read(uint8_t *buf,
size_t size = 1);
72 size_t write(
const uint8_t *data,
size_t length);
85 void setPort(
const string &port);
105 void reconfigurePort();
115 unsigned long baudrate_;
130 #endif // SERIAL_IMPL_WINDOWS_H 132 #endif // if defined(_WIN32)
void sendBreak(int duration)
flowcontrol_t getFlowcontrol() const
void waitByteTimes(size_t count)
void setTimeout(Timeout &timeout)
bytesize_t getBytesize() const
void setBaudrate(uint32_t baudrate)
void setBreak(bool level=true)
stopbits_t getStopbits() const
void setRTS(bool level=true)
void setStopbits(stopbits_t stopbits)
void setBytesize(bytesize_t bytesize)
void setPort(const std::string &port)
size_t read(uint8_t *buffer, size_t size)
uint32_t getBaudrate() const
std::string getPort() const
void setDTR(bool level=true)
Timeout getTimeout() const
void setParity(parity_t parity)
parity_t getParity() const
size_t write(const uint8_t *data, size_t size)
void setFlowcontrol(flowcontrol_t flowcontrol)