5 #include <Poco/Timespan.h>
29 SerialPort(
const std::string &devicePath =
"");
32 void setDevicePath(
const std::string &devicePath);
33 std::string devicePath()
const;
35 void setBaudRate(
int baudRate);
36 void setStopBits(StopBits stopBits);
37 void setParity(Parity parity);
38 void setDataBits(DataBits dataBits);
39 void setNonBlocking(
bool nonBlocking);
42 std::string read(
const Poco::Timespan &timeout);
43 size_t write(
const char* buffer,
size_t size);
44 size_t write(
const std::string &data);
51 static std::string readDirect(
int fd);
52 void installNonBlocking();
53 void installBlocking();
58 std::string m_devicePath;
void open()
Definition: SerialPort.cpp:165
Definition: SerialPort.h:9