Go to the documentation of this file.
120 #define USA_DATABITS_5 0x00
121 #define USA_DATABITS_6 0x01
122 #define USA_DATABITS_7 0x02
123 #define USA_DATABITS_8 0x03
124 #define STOPBITS_5678_1 0x00 // 1 stop bit for all byte sizes
125 #define STOPBITS_5_1p5 0x04 // 1.5 stop bits for 5-bit byte
126 #define STOPBITS_678_2 0x04 // 2 stop bits for 6-8 bit byte
127 #define USA_PARITY_NONE 0x00
128 #define USA_PARITY_ODD 0x08
129 #define USA_PARITY_EVEN 0x18
130 #define PARITY_MARK_1 0x28 // force parity MARK
131 #define PARITY_SPACE_0 0x38 // force parity SPACE
133 #define TXFLOW_CTS 0x04
134 #define TXFLOW_DSR 0x08
135 #define TXFLOW_XOFF 0x01
136 #define TXFLOW_XOFF_ANY 0x02
137 #define TXFLOW_XOFF_BITS (TXFLOW_XOFF | TXFLOW_XOFF_ANY)
139 #define RXFLOW_XOFF 0x10
140 #define RXFLOW_RTS 0x20
141 #define RXFLOW_DTR 0x40
142 #define RXFLOW_DSR_SENSITIVITY 0x80
144 #define RXMODE_BYHAND 0x00
145 #define RXMODE_DMA 0x02
147 #define TXMODE_BYHAND 0x00
148 #define TXMODE_DMA 0x02
173 #define RXERROR_OVERRUN 0x02
174 #define RXERROR_PARITY 0x04
175 #define RXERROR_FRAMING 0x08
176 #define RXERROR_BREAK 0x10
178 #define PORTSTATE_ENABLED 0x80
179 #define PORTSTATE_TXFLUSH 0x01
180 #define PORTSTATE_TXBREAK 0x02
181 #define PORTSTATE_LOOPBACK 0x04
185 #define USA_MSR_dCTS 0x01 // CTS has changed since last report
186 #define USA_MSR_dDSR 0x02
187 #define USA_MSR_dRI 0x04
188 #define USA_MSR_dDCD 0x08
190 #define USA_MSR_CTS 0x10 // current state of CTS
191 #define USA_MSR_DSR 0x20
192 #define USA_USA_MSR_RI 0x40
196 #define MAX_DATA_LEN 64