Wixel SDK
com.h
Go to the documentation of this file.
1 
17 #ifndef _COM_H
18 #define _COM_H
19 
24 #define ACM_SERIAL_STATE_RX_CARRIER (1<<0)
25 
27 #define ACM_SERIAL_STATE_TX_CARRIER (1<<1)
28 
30 #define ACM_SERIAL_STATE_BREAK (1<<2)
31 
33 #define ACM_SERIAL_STATE_RING_SIGNAL (1<<3)
34 
36 #define ACM_SERIAL_STATE_FRAMING (1<<4)
37 
39 #define ACM_SERIAL_STATE_PARITY (1<<5)
40 
42 #define ACM_SERIAL_STATE_OVERRUN (1<<6)
43 
48 #define ACM_IRREGULAR_SIGNAL_MASK (ACM_SERIAL_STATE_BREAK | ACM_SERIAL_STATE_RING_SIGNAL | ACM_SERIAL_STATE_FRAMING | ACM_SERIAL_STATE_PARITY | ACM_SERIAL_STATE_OVERRUN)
49 
54 #define ACM_CONTROL_LINE_DTR 1
55 
59 #define ACM_CONTROL_LINE_RTS 2
60 
66 typedef struct ACM_LINE_CODING
67 {
69  unsigned long dwDTERate;
70 
73  unsigned char bCharFormat;
74 
77  unsigned char bParityType;
78 
81  unsigned char bDataBits;
83 
85 #define PARITY_NONE 0
86 
88 #define PARITY_ODD 1
89 
91 #define PARITY_EVEN 2
92 
94 #define PARITY_MARK 3
95 
97 #define PARITY_SPACE 4
98 
100 #define STOP_BITS_1 0
101 
104 #define STOP_BITS_1_5 1
105 
111 #define STOP_BITS_2 2
112 
113 #endif
unsigned long dwDTERate
Definition: com.h:69
unsigned char bDataBits
Definition: com.h:81
unsigned char bParityType
Definition: com.h:77
struct ACM_LINE_CODING ACM_LINE_CODING
unsigned char bCharFormat
Definition: com.h:73