comparison gsm-fw/cdg/cdginc-conservative/p_uart.val @ 656:9ba088a875bd

gsm-fw/cdg: "conservative" version created
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 25 Sep 2014 10:00:35 +0000
parents
children
comparison
equal deleted inserted replaced
655:6c363c453db2 656:9ba088a875bd
1 /*
2 +--------------------------------------------------------------------------+
3 | PROJECT : PROTOCOL STACK |
4 | FILE : p_uart.val |
5 | SOURCE : "sap\uart.pdf" |
6 | LastModified : "2002-03-11" |
7 | IdAndVersion : "8441.117.99.014" |
8 | SrcFileTime : "Thu Nov 29 09:56:02 2007" |
9 | Generated by CCDGEN_2.5.5A on Thu Sep 25 09:52:55 2014 |
10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! |
11 +--------------------------------------------------------------------------+
12 */
13
14 /* PRAGMAS
15 * PREFIX : NONE
16 * COMPATIBILITY_DEFINES : NO (require PREFIX)
17 * ALWAYS_ENUM_IN_VAL_FILE: NO
18 * ENABLE_GROUP: NO
19 * CAPITALIZE_TYPENAME: NO
20 */
21
22
23 #ifndef P_UART_VAL
24 #define P_UART_VAL
25
26
27 #define CDG_ENTER__P_UART_VAL
28
29 #define CDG_ENTER__FILENAME _P_UART_VAL
30 #define CDG_ENTER__P_UART_VAL__FILE_TYPE CDGINC
31 #define CDG_ENTER__P_UART_VAL__LAST_MODIFIED _2002_03_11
32 #define CDG_ENTER__P_UART_VAL__ID_AND_VERSION _8441_117_99_014
33
34 #define CDG_ENTER__P_UART_VAL__SRC_FILE_TIME _Thu_Nov_29_09_56_02_2007
35
36 #include "CDG_ENTER.h"
37
38 #undef CDG_ENTER__P_UART_VAL
39
40 #undef CDG_ENTER__FILENAME
41
42
43 /*
44 * Value constants for VAL_esc_valid
45 */
46 #define UART_IO_ESC_UNDEF (0x0) /* values for escape sequence detection remain unchanged */
47 #define UART_IO_ESC_VALID (0x1) /* values for escape sequence detection are valid */
48
49 /*
50 * Value constants for VAL_xoff
51 */
52 #define UART_IO_XOFF_DEFAULT (0x13) /* default value for XOff character */
53
54 /*
55 * Value constants for VAL_xon
56 */
57 #define UART_IO_XON_DEFAULT (0x11) /* default value for XOn character */
58
59 /*
60 * Value constants for VAL_parity
61 */
62 #define UART_IO_PA_UNDEF (0xff) /* parity remain unchanged */
63 #define UART_IO_PA_NONE (0x0) /* no parity and no space */
64 #define UART_IO_PA_EVEN (0x1) /* even parity */
65 #define UART_IO_PA_ODD (0x2) /* odd parity */
66 #define UART_IO_PA_SPACE (0x3) /* no parity but space */
67
68 /*
69 * Value constants for VAL_flow_tx
70 */
71 #define UART_IO_FC_TX_UNDEF (0xff) /* TX flow control mode remain unchanged */
72 #define UART_IO_FC_TX_NONE (0x0) /* no TX flow control */
73 #define UART_IO_FC_TX_RTS (0x1) /* RTS/CTS flow control */
74 #define UART_IO_FC_TX_XOFF (0x2) /* XON/XOFF flow control */
75
76 /*
77 * Value constants for VAL_esc_char
78 */
79 #define UART_IO_ESC_CHAR_DEFAULT (0x2b) /* default value for escape character ('+') */
80
81 /*
82 * Value constants for VAL_flow_rx
83 */
84 #define UART_IO_FC_RX_UNDEF (0xff) /* RX flow control mode remain unchanged */
85 #define UART_IO_FC_RX_NONE (0x0) /* no RX flow control */
86 #define UART_IO_FC_RX_RTS (0x1) /* RTS/CTS flow control */
87 #define UART_IO_FC_RX_XOFF (0x2) /* XON/XOFF flow control */
88
89 /*
90 * Value constants for VAL_nsb
91 */
92 #define UART_IO_SB_UNDEF (0xff) /* stop bits remain unchanged */
93 #define UART_IO_SB_1 (0x1) /* one stop bit */
94 #define UART_IO_SB_2 (0x2) /* two stop bits */
95
96 /*
97 * Value constants for VAL_speed
98 */
99 #define UART_IO_SPEED_UNDEF (0xff) /* baud rate remain unchanged */
100 #define UART_IO_SPEED_AUTO (0x0) /* auto detection of baud rate */
101 #define UART_IO_SPEED_75 (0x1) /* baud rate of 75 bits per second */
102 #define UART_IO_SPEED_150 (0x2) /* baud rate of 150 bits per second */
103 #define UART_IO_SPEED_300 (0x3) /* baud rate of 300 bits per second */
104 #define UART_IO_SPEED_600 (0x4) /* baud rate of 600 bits per second */
105 #define UART_IO_SPEED_1200 (0x5) /* baud rate of 1200 bits per second */
106 #define UART_IO_SPEED_2400 (0x6) /* baud rate of 2400 bits per second */
107 #define UART_IO_SPEED_4800 (0x7) /* baud rate of 4800 bits per second */
108 #define UART_IO_SPEED_7200 (0x8) /* baud rate of 7200 bits per second */
109 #define UART_IO_SPEED_9600 (0x9) /* baud rate of 9600 bits per second */
110 #define UART_IO_SPEED_14400 (0xa) /* baud rate of 14400 bits per second */
111 #define UART_IO_SPEED_19200 (0xb) /* baud rate of 19200 bits per second */
112 #define UART_IO_SPEED_28800 (0xc) /* baud rate of 28800 bits per second */
113 #define UART_IO_SPEED_33900 (0xd) /* baud rate of 33900 bits per second */
114 #define UART_IO_SPEED_38400 (0xe) /* baud rate of 38400 bits per second */
115 #define UART_IO_SPEED_57600 (0xf) /* baud rate of 57600 bits per second */
116 #define UART_IO_SPEED_115200 (0x10) /* baud rate of 115200 bits per second */
117 #define UART_IO_SPEED_203125 (0x11) /* baud rate of 203125 bits per second */
118 #define UART_IO_SPEED_406250 (0x12) /* baud rate of 406250 bits per second */
119 #define UART_IO_SPEED_812500 (0x13) /* baud rate of 812500 bits per second */
120
121 /*
122 * Value constants for VAL_esc_gp
123 */
124 #define UART_IO_ESC_GP_DEFAULT (0x3e8) /* default value for guard period (1000 ms) */
125 #define UART_IO_ESC_OFF (0x0) /* no escape sequence detection */
126
127 /*
128 * Value constants for VAL_xoff_valid
129 */
130 #define UART_IO_XOFF_UNDEF (0x0) /* XOff character remain unchanged */
131 #define UART_IO_XOFF_VALID (0x1) /* XOff character valid */
132
133 /*
134 * Value constants for VAL_xon_valid
135 */
136 #define UART_IO_XON_UNDEF (0x0) /* XOn character remain unchanged */
137 #define UART_IO_XON_VALID (0x1) /* XOn character valid */
138
139 /*
140 * Value constants for VAL_bpc
141 */
142 #define UART_IO_BPC_UNDEF (0xff) /* bits per character remain unchanged */
143 #define UART_IO_BPC_7 (0x7) /* 7 bits per character */
144 #define UART_IO_BPC_8 (0x8) /* 8 bits per character */
145
146 /*
147 * Value constants for VAL_dti_conn
148 */
149 #define UART_CONNECT_DTI (0x0) /* Connect DTI to UART */
150 #define UART_DISCONNECT_DTI (0x1) /* Disconnect DTI from UART */
151
152 /*
153 * Value constants for VAL_line_state
154 */
155 #define UART_LINE_ON (0x0) /* activate line */
156 #define UART_LINE_OFF (0x1) /* deactivate line */
157
158 /*
159 * Value constants for VAL_detection
160 */
161 #define UART_ESC_DETECTION_OFF (0x0) /* turn off escape sequence detection */
162 #define UART_ESC_DETECTION_ON (0x1) /* turn on escape sequence detection */
163
164 /*
165 * Value constants for VAL_cause
166 */
167 #define UART_DETECT_ESC (0x1) /* escape sequence detected */
168 #define UART_DETECT_DTR (0x2) /* DTR line of serial link drops */
169
170 /*
171 * Value constants for VAL_error
172 */
173 #define UART_ERROR_NO_CHANNEL (0x8) /* can not open VSI communication channel */
174 #define UART_ERROR_MUX_ESTABLISH_FAIL (0x9) /* establishment of multiplexer operation fails */
175 #define UART_ERROR_MUX_NO_RESPONSE (0xa) /* no response from TE multiplexer */
176
177 /*
178 * Value constants for VAL_mode
179 */
180 #define UART_MUX_MODE_BASIC (0x0) /* basic option */
181 #define UART_MUX_MODE_ADVANCED (0x1) /* advanced option */
182
183 /*
184 * Value constants for VAL_frame_type
185 */
186 #define UART_MUX_FRAME_UIH (0x0) /* UIH frames used only */
187 #define UART_MUX_FRAME_UI (0x1) /* UI frames used only */
188 #define UART_MUX_FRAME_I (0x2) /* I frames used only */
189 #define UART_MUX_FRAME_DEFAULT (0x0) /* default value */
190
191 /*
192 * Value constants for VAL_n1
193 */
194 #define UART_MUX_N1_BASIC_DEFAULT (0x1f) /* default value for the basic option */
195 #define UART_MUX_N1_ADVANCED_DEFAULT (0x40) /* default value for the advanced option */
196
197 /*
198 * Value constants for VAL_t1
199 */
200 #define UART_MUX_T1_DEFAULT (0xa) /* default value (100 ms) */
201
202 /*
203 * Value constants for VAL_n2
204 */
205 #define UART_MUX_N2_DEFAULT (0x3) /* default value */
206
207 /*
208 * Value constants for VAL_t2
209 */
210 #define UART_MUX_T2_DEFAULT (0x1e) /* default value (300 ms) */
211
212 /*
213 * Value constants for VAL_t3
214 */
215 #define UART_MUX_T3_DEFAULT (0xa) /* default value (10 seconds) */
216
217 /*
218 * Value constants for VAL_convergence
219 */
220 #define UART_MUX_CONVERGENCE_UOS (0x1) /* unstructed octet stream */
221 #define UART_MUX_CONVERGENCE_UOSV24 (0x2) /* unstructed octet stream with transmission of V.24 signal states */
222 #define UART_MUX_CONVERGENCE_UFD (0x3) /* uninterruptible framed data */
223 #define UART_MUX_CONVERGENCE_IFD (0x4) /* interruptible framed data */
224 #define UART_MUX_CONVERGENCE_DEFAULT (0x1) /* default value */
225
226 /*
227 * Value constants for VAL_service
228 */
229 #define UART_MUX_SERVICE_AT (0x0) /* AT command mode */
230 #define UART_MUX_SERVICE_DATA (0x1) /* data service */
231 #define UART_MUX_SERVICE_VOICE_0621 (0x2) /* voice service (coded - GSM 06.21) */
232 #define UART_MUX_SERVICE_VOICE_PCM64U (0x3) /* voice service (coded - PCM 64 kbits/s U-law) */
233 #define UART_MUX_SERVICE_VOICE_ADPCM (0x4) /* voice service (coded - ADPCM 32 kbits/s) */
234 #define UART_MUX_SERVICE_VOICE_PCM64A (0x5) /* voice service (coded - PCM 64 kbits/s A-law) */
235 #define UART_MUX_SERVICE_VOICE_PCM128 (0x6) /* voice service (coded - PCM 128 kbits/s) */
236 #define UART_MUX_SERVICE_GPRS (0x7) /* GPRS data */
237 #define UART_MUX_SERVICE_CS (0x8) /* Circuit-Switched data */
238 #define UART_MUX_SERVICE_TRACE (0x9) /* Trace / Debug output */
239 #define UART_MUX_SERVICE_DEFAULT (0x0) /* default value */
240
241 /*
242 * user defined constants
243 */
244 #define UART_DLCI_NOT_MULTIPLEXED (0x0)
245
246 #include "CDG_LEAVE.h"
247
248
249 #endif