FreeCalypso > hg > tcs211-fcmodem
comparison chipsetsw/drivers/drv_app/uart/faxdata.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /******************************************************************************* | |
2 * | |
3 * FAXDATA.H | |
4 * | |
5 * This module defines constants used by UART and USART fax/data drivers. | |
6 * | |
7 * (C) Texas Instruments 1999 | |
8 * | |
9 ******************************************************************************/ | |
10 | |
11 #ifndef __FAXDATA_H__ | |
12 #define __FAXDATA_H__ | |
13 | |
14 /* | |
15 * Returned values. | |
16 */ | |
17 | |
18 #define FD_OK ( 0) | |
19 #define FD_SUSPENDED (-1) | |
20 #define FD_NOT_SUPPORTED (-2) | |
21 #define FD_NOT_READY (-3) | |
22 #define FD_INTERNAL_ERR (-9) | |
23 | |
24 /* | |
25 * Line status. | |
26 */ | |
27 | |
28 #define FD_LINE_ON (1) | |
29 #define FD_LINE_OFF (0) | |
30 | |
31 /* | |
32 * Signals used in UAF_xxx_GetLineState and UAF_xxx_SetLineState. | |
33 */ | |
34 | |
35 #define CTS ( 0) /* set */ | |
36 #define RTS ( 1) /* get */ | |
37 #define DSR ( 2) /* set */ | |
38 #define DTR ( 3) /* get */ | |
39 #define DCD ( 4) /* set */ | |
40 #define BRK ( 5) /* set/get */ | |
41 #define ESC ( 6) /* get */ | |
42 #define TXSTP ( 7) /* get */ | |
43 #define RXSTP ( 8) /* get */ | |
44 #define BRKLEN ( 9) /* set/get (8 bits) */ | |
45 #define RXBLEV (17) /* get (12 bits) */ | |
46 #define SA (29) /* set/get */ | |
47 #define SB (30) /* set/get */ | |
48 #define X (31) /* set/get */ | |
49 | |
50 #define RI (1) | |
51 | |
52 /* | |
53 * Size of the circular buffers used in the driver. | |
54 */ | |
55 | |
56 #define FD_MAX_BUFFER_SIZE (512) /* In bytes. */ | |
57 | |
58 /* | |
59 * Type of the returned value for each function. | |
60 */ | |
61 | |
62 typedef short T_FDRET; | |
63 | |
64 /* | |
65 * Baud rates. | |
66 */ | |
67 | |
68 typedef enum { | |
69 FD_BAUD_AUTO, | |
70 FD_BAUD_75, | |
71 FD_BAUD_150, | |
72 FD_BAUD_300, | |
73 FD_BAUD_600, | |
74 FD_BAUD_1200, | |
75 FD_BAUD_2400, | |
76 FD_BAUD_4800, | |
77 FD_BAUD_7200, | |
78 FD_BAUD_9600, | |
79 FD_BAUD_14400, | |
80 FD_BAUD_19200, | |
81 FD_BAUD_28800, | |
82 FD_BAUD_33900, | |
83 FD_BAUD_38400, | |
84 FD_BAUD_57600, | |
85 FD_BAUD_115200, | |
86 FD_BAUD_203125, | |
87 FD_BAUD_406250, | |
88 FD_BAUD_812500 | |
89 } T_baudrate; | |
90 | |
91 /* | |
92 * Bits per character. | |
93 */ | |
94 | |
95 typedef enum { | |
96 bpc_7, | |
97 bpc_8 | |
98 } T_bitsPerCharacter; | |
99 | |
100 /* | |
101 * Stop bits. | |
102 */ | |
103 | |
104 typedef enum { | |
105 sb_1, | |
106 sb_2 | |
107 } T_stopBits; | |
108 | |
109 /* | |
110 * Parity. | |
111 */ | |
112 | |
113 typedef enum { | |
114 pa_none, | |
115 pa_even, | |
116 pa_odd, | |
117 pa_space | |
118 } T_parity; | |
119 | |
120 /* | |
121 * Flow control mode. | |
122 */ | |
123 | |
124 typedef enum { | |
125 fc_none, | |
126 fc_rts, | |
127 fc_dtr, | |
128 fc_xoff | |
129 } T_flowCtrlMode; | |
130 | |
131 /* | |
132 * Suspend parameter used in UAF_xxx_ReadData and UAF_xxx_WriteData. | |
133 */ | |
134 | |
135 typedef enum { | |
136 sm_noSuspend, | |
137 sm_suspend | |
138 } T_suspendMode; | |
139 | |
140 /* | |
141 * Install mode parameter used in UAF_xxx_ReadData and UAF_xxx_WriteData. | |
142 */ | |
143 | |
144 typedef enum { | |
145 rm_notDefined, | |
146 rm_reInstall, | |
147 rm_noInstall | |
148 } T_reInstMode; | |
149 | |
150 #endif /* __FAXDATA_H__ */ |