9 #ifndef _SYSIO_SERIAL_HPP_ 10 #define _SYSIO_SERIAL_HPP_ 12 #include <sysio/serial.h> 34 Data5 = SERIAL_DATABIT_5,
35 Data6 = SERIAL_DATABIT_6,
36 Data7 = SERIAL_DATABIT_7,
37 Data8 = SERIAL_DATABIT_8,
38 UnknownDataBits = SERIAL_DATABIT_UNKNOWN
46 OneStop = SERIAL_STOPBIT_ONE,
47 TwoStop = SERIAL_STOPBIT_TWO,
48 OneAndHalfStop = SERIAL_STOPBIT_ONEHALF,
49 UnknownStopBits = SERIAL_STOPBIT_UNKNOWN
57 NoParity = SERIAL_PARITY_NONE,
58 EvenParity = SERIAL_PARITY_EVEN,
59 OddParity = SERIAL_PARITY_ODD,
60 SpaceParity = SERIAL_PARITY_SPACE,
61 MarkParity = SERIAL_PARITY_MARK,
62 UnknownParity = SERIAL_PARITY_UNKNOWN
98 const char *
port()
const;
102 void setPort (
const char * portname);
132 #if !defined(__DOXYGEN__) 134 inline int getFileno()
const {
137 inline int getBaudrate()
const {
140 inline const char * getPort()
const {
143 inline int getFlowControl()
const {
146 inline const char * getFlowControlName()
const {
153 std::string _portname;
const char * port() const
bool setFlowControlName(const char *newFlowControl)
bool setFlowControl(FlowControl newFlowControl)
FlowControl flowControl() const
void setPort(const char *portname)
const char * flowControlName() const
Serial(const char *portname, int baudrate)
void setBaudrate(int baudrate)