We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e89206 commit 0f20ebdCopy full SHA for 0f20ebd
include/uart.h
@@ -43,6 +43,28 @@ extern "C" {
43
#define LINE_CTRL_DTR (1 << 2)
44
#define LINE_CTRL_DCD (1 << 3)
45
#define LINE_CTRL_DSR (1 << 4)
46
+#define LINE_CTRL_PARITY (1 << 5)
47
+#define LINE_CTRL_STOPBITS (1 << 6)
48
+#define LINE_CTRL_DATABITS (1 << 7)
49
+
50
+/* Avaliable params for LINE_CTRL_{PARITY, STOPBITS, DATABITS} */
51
+enum {
52
+ LINE_CTRL_PARITY_NONE = 0,
53
+ LINE_CTRL_PARITY_EVEN,
54
+ LINE_CTRL_PARITY_ODD,
55
+};
56
57
58
+ LINE_CTRL_STOPBITS_1 = 0,
59
+ LINE_CTRL_STOPBITS_2,
60
+ LINE_CTRL_STOPBITS_1_5,
61
62
63
64
+ LINE_CTRL_DATABITS_8 = 0,
65
+ LINE_CTRL_DATABITS_7,
66
+ LINE_CTRL_DATABITS_9,
67
68
69
/* Common communication errors for UART.*/
70
0 commit comments