23 #ifndef __ccxx_SerialPort_hxx 24 #define __ccxx_SerialPort_hxx 42 enum BaudRate { BaudOther = -1, Baud300 = 300, Baud600 = 600,
43 Baud1200 = 1200, Baud1800 = 1800, Baud2400 = 2400,
44 Baud4800 = 4800, Baud9600 = 9600, Baud19200 = 19200,
45 Baud38400 = 38400, Baud57600 = 57600,
46 Baud115200 = 115200, Baud230400 = 230400 };
49 enum Parity { ParityOther = -1, ParityNone, ParityOdd, ParityEven,
50 ParityMark, ParitySpace };
53 enum DataBits { DataBitsOther = -1, DataBits5 = 5, DataBits6 = 6,
54 DataBits7 = 7, DataBits8 = 8 };
57 enum StopBits { StopBitsOther = -1, StopBits1 = 1, StopBits2 = 2,
61 enum FlowControl { FlowOther = -1, FlowOff, FlowHardware, FlowXOnXOff };
124 void setParity(
Parity parity);
201 void sendBreak(
uint_t duration);
224 #endif // __ccxx_SerialPort_hxx
StopBits
Stop bits.
Definition: SerialPort.h++:57
A class representing a serial communications port.
Definition: SerialPort.h++:37
An unbuffered I/O stream.
Definition: Stream.h++:60
BaudRate
Baud rates.
Definition: SerialPort.h++:42
FlowControl
Flow control modes.
Definition: SerialPort.h++:61
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
Parity
Parity types.
Definition: SerialPort.h++:49
DataBits
Data bits per byte.
Definition: SerialPort.h++:53
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
#define CCXX_COPY_DECLS(CLASS)
Inlines declarations of a copy constructor and assignment operator for the class CLASS.
Definition: Common.h++:295
int timespan_ms_t
A timespan expressed in milliseconds.
Definition: Integers.h++:104
String getDevice() const
Get the device for this serial port.
Definition: SerialPort.h++:204
Definition: AllocationMap.c++:25