comparison gsm-fw/cdg/cdginc-conservative/p_dio.h @ 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_dio.h |
5 | SOURCE : "sap\dio.pdf" |
6 | LastModified : "2004-03-19" |
7 | IdAndVersion : "..." |
8 | SrcFileTime : "Thu Nov 29 09:39:48 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_DIO_H
24 #define P_DIO_H
25
26
27 #define CDG_ENTER__P_DIO_H
28
29 #define CDG_ENTER__FILENAME _P_DIO_H
30 #define CDG_ENTER__P_DIO_H__FILE_TYPE CDGINC
31 #define CDG_ENTER__P_DIO_H__LAST_MODIFIED _2004_03_19
32 #define CDG_ENTER__P_DIO_H__ID_AND_VERSION _
33
34 #define CDG_ENTER__P_DIO_H__SRC_FILE_TIME _Thu_Nov_29_09_39_48_2007
35
36 #include "CDG_ENTER.h"
37
38 #undef CDG_ENTER__P_DIO_H
39
40 #undef CDG_ENTER__FILENAME
41
42
43 #include "p_dio.val"
44
45 #ifndef __T_DIO_DCB_SER__
46 #define __T_DIO_DCB_SER__
47 /*
48 * Structured Element
49 * CCDGEN:WriteStruct_Count==1225
50 */
51 typedef struct
52 {
53 U32 device_type; /*< 0: 4> device identifier with general capability information */
54 U8 sleep_mode; /*< 4: 1> enter sleep mode is possible or not */
55 U8 _align0; /*< 5: 1> alignment */
56 U8 _align1; /*< 6: 1> alignment */
57 U8 _align2; /*< 7: 1> alignment */
58 U32 baudrate; /*< 8: 4> user set baudrate */
59 U32 char_frame; /*< 12: 4> supported character framing */
60 U32 flow_control; /*< 16: 4> supported modes of flow control */
61 U8 xon; /*< 20: 1> set/reset XON for flow control */
62 U8 xoff; /*< 21: 1> set/reset XOFF for flow control */
63 U8 esc_char; /*< 22: 1> ASCII character which is used in an escape sequence */
64 U8 _align3; /*< 23: 1> alignment */
65 U16 guard_period; /*< 24: 2> duration value for escape sequence */
66 U8 _align4; /*< 26: 1> alignment */
67 U8 _align5; /*< 27: 1> alignment */
68 } T_DIO_DCB_SER;
69 #endif
70
71 #ifndef __T_DIO_DCB_SER_MUX__
72 #define __T_DIO_DCB_SER_MUX__
73 /*
74 * Structured Element
75 * CCDGEN:WriteStruct_Count==1226
76 */
77 typedef struct
78 {
79 U32 device_type; /*< 0: 4> device identifier with general capability information */
80 U8 sleep_mode; /*< 4: 1> enter sleep mode is possible or not */
81 U8 _align0; /*< 5: 1> alignment */
82 U8 _align1; /*< 6: 1> alignment */
83 U8 _align2; /*< 7: 1> alignment */
84 U32 baudrate; /*< 8: 4> user set baudrate */
85 U32 char_frame; /*< 12: 4> supported character framing */
86 U32 flow_control; /*< 16: 4> supported modes of flow control */
87 U8 xon; /*< 20: 1> set/reset XON for flow control */
88 U8 xoff; /*< 21: 1> set/reset XOFF for flow control */
89 U8 esc_char; /*< 22: 1> ASCII character which is used in an escape sequence */
90 U8 _align3; /*< 23: 1> alignment */
91 U16 guard_period; /*< 24: 2> duration value for escape sequence */
92 U8 _align4; /*< 26: 1> alignment */
93 U8 _align5; /*< 27: 1> alignment */
94 U32 device_mode; /*< 28: 4> work mode of device */
95 U32 mux_mode; /*< 32: 4> supported multiplexer modes */
96 U16 n1; /*< 36: 2> max frame size of mux frame */
97 U8 n2; /*< 38: 1> max number of retransmissions */
98 U8 t1; /*< 39: 1> acknowledgement timer */
99 U8 t2; /*< 40: 1> response timer */
100 U8 t3; /*< 41: 1> wake up response timer */
101 U8 k; /*< 42: 1> windows size */
102 U8 _align6; /*< 43: 1> alignment */
103 } T_DIO_DCB_SER_MUX;
104 #endif
105
106 #ifndef __T_DIO_DCB_PKT__
107 #define __T_DIO_DCB_PKT__
108 /*
109 * Structured Element
110 * CCDGEN:WriteStruct_Count==1227
111 */
112 typedef struct
113 {
114 U32 device_type; /*< 0: 4> device identifier with general capability information */
115 U8 sleep_mode; /*< 4: 1> enter sleep mode is possible or not */
116 U8 _align0; /*< 5: 1> alignment */
117 U8 _align1; /*< 6: 1> alignment */
118 U8 _align2; /*< 7: 1> alignment */
119 } T_DIO_DCB_PKT;
120 #endif
121
122 #ifndef __T_DIO_CAP_SER__
123 #define __T_DIO_CAP_SER__
124 /*
125 * serial device capabiliity structures
126 * CCDGEN:WriteStruct_Count==1228
127 */
128 typedef struct
129 {
130 U32 device_type; /*< 0: 4> device identifier with general capability information */
131 U32 device_flags; /*< 4: 4> driver features like power saving state */
132 U16 mtu_control; /*< 8: 2> max length of copied control information bytes by the driver */
133 U16 mtu_data; /*< 10: 2> max size of packet data which the driver can transfer */
134 U32 driver_name; /*< 12: 4> pointer to driver name */
135 U32 baudrate_auto; /*< 16: 4> automatically detected driver baudrates */
136 U32 baudrate_fixed; /*< 20: 4> driver baudrates which cannot be detected automatically */
137 U32 char_frame; /*< 24: 4> supported character framing */
138 U32 flow_control; /*< 28: 4> supported modes of flow control */
139 U32 ser_flags; /*< 32: 4> additional supported features of serial/mux devices */
140 } T_DIO_CAP_SER;
141 #endif
142
143 #ifndef __T_DIO_CAP_SER_MUX__
144 #define __T_DIO_CAP_SER_MUX__
145 /*
146 * Structured Element
147 * CCDGEN:WriteStruct_Count==1229
148 */
149 typedef struct
150 {
151 U32 device_type; /*< 0: 4> device identifier with general capability information */
152 U32 device_flags; /*< 4: 4> driver features like power saving state */
153 U16 mtu_control; /*< 8: 2> max length of copied control information bytes by the driver */
154 U16 mtu_data; /*< 10: 2> max size of packet data which the driver can transfer */
155 U32 driver_name; /*< 12: 4> pointer to driver name */
156 U32 baudrate_auto; /*< 16: 4> automatically detected driver baudrates */
157 U32 baudrate_fixed; /*< 20: 4> driver baudrates which cannot be detected automatically */
158 U32 char_frame; /*< 24: 4> supported character framing */
159 U32 flow_control; /*< 28: 4> supported modes of flow control */
160 U32 ser_flags; /*< 32: 4> additional supported features of serial/mux devices */
161 U32 mux_mode; /*< 36: 4> supported multiplexer modes */
162 } T_DIO_CAP_SER_MUX;
163 #endif
164
165 #ifndef __T_DIO_CAP_PKT__
166 #define __T_DIO_CAP_PKT__
167 /*
168 * Structured Element
169 * CCDGEN:WriteStruct_Count==1230
170 */
171 typedef struct
172 {
173 U32 device_type; /*< 0: 4> device identifier with general capability information */
174 U32 device_flags; /*< 4: 4> driver features like power saving state */
175 U16 mtu_control; /*< 8: 2> max length of copied control information bytes by the driver */
176 U16 mtu_data; /*< 10: 2> max size of packet data which the driver can transfer */
177 U32 driver_name; /*< 12: 4> pointer to driver name */
178 } T_DIO_CAP_PKT;
179 #endif
180
181 #ifndef __T_DIO_CAP__
182 #define __T_DIO_CAP__
183 /*
184 * device capabiliity structures
185 * CCDGEN:WriteStruct_Count==1231
186 */
187 typedef struct
188 {
189 U32 device_type; /*< 0: 4> device identifier with general capability information */
190 U32 device_flags; /*< 4: 4> driver features like power saving state */
191 U16 mtu_control; /*< 8: 2> max length of copied control information bytes by the driver */
192 U16 mtu_data; /*< 10: 2> max size of packet data which the driver can transfer */
193 U32 driver_name; /*< 12: 4> pointer to driver name */
194 } T_DIO_CAP;
195 #endif
196
197 #ifndef __T_DIO_DCB__
198 #define __T_DIO_DCB__
199 /*
200 * all elements of driver configuration parameter
201 * CCDGEN:WriteStruct_Count==1232
202 */
203 typedef struct
204 {
205 U32 device_type; /*< 0: 4> device identifier with general capability information */
206 U8 sleep_mode; /*< 4: 1> enter sleep mode is possible or not */
207 U8 _align0; /*< 5: 1> alignment */
208 U8 _align1; /*< 6: 1> alignment */
209 U8 _align2; /*< 7: 1> alignment */
210 } T_DIO_DCB;
211 #endif
212
213 #ifndef __T_dio_segment__
214 #define __T_dio_segment__
215 /*
216 * Structured Element
217 * CCDGEN:WriteStruct_Count==1233
218 */
219 typedef struct
220 {
221 U8 _align0; /*< 0: 1> alignment */
222 U8 _align1; /*< 1: 1> alignment */
223 U16 c_data; /*< 2: 2> counter */
224 U8 *ptr_data; /*< 4: 4> pointer to pointer to the first byte of the data buffer segment */
225 } T_dio_segment;
226 #endif
227
228 #ifndef __T_dio_buffer__
229 #define __T_dio_buffer__
230 /*
231 * data buffer
232 * CCDGEN:WriteStruct_Count==1234
233 */
234 typedef struct
235 {
236 U16 length; /*< 0: 2> len of dio_ctrl */
237 U8 _align0; /*< 2: 1> alignment */
238 U8 c_dio_segment; /*< 3: 1> counter */
239 T_dio_segment *ptr_dio_segment; /*< 4: 4> pointer to Structured Element */
240 } T_dio_buffer;
241 #endif
242
243 #ifndef __T_DIO_CTRL__
244 #define __T_DIO_CTRL__
245 /*
246 * Structured Element
247 * CCDGEN:WriteStruct_Count==1235
248 */
249 typedef struct
250 {
251 U16 control_type; /*< 0: 2> data types */
252 U16 length; /*< 2: 2> len of dio_ctrl */
253 } T_DIO_CTRL;
254 #endif
255
256 #ifndef __T_DIO_CTRL_LINES__
257 #define __T_DIO_CTRL_LINES__
258 /*
259 * Structured Element
260 * CCDGEN:WriteStruct_Count==1236
261 */
262 typedef struct
263 {
264 U16 control_type; /*< 0: 2> data types */
265 U16 length; /*< 2: 2> len of dio_ctrl */
266 U32 state; /*< 4: 4> line states */
267 } T_DIO_CTRL_LINES;
268 #endif
269
270 #ifndef __T_DIO_CTRL_MUX__
271 #define __T_DIO_CTRL_MUX__
272 /*
273 * Structured Element
274 * CCDGEN:WriteStruct_Count==1237
275 */
276 typedef struct
277 {
278 U16 control_type; /*< 0: 2> data types */
279 U16 length; /*< 2: 2> len of dio_ctrl */
280 U32 state; /*< 4: 4> line states */
281 } T_DIO_CTRL_MUX;
282 #endif
283
284
285 /*
286 * End of substructure section, begin of primitive definition section
287 */
288
289
290 #include "CDG_LEAVE.h"
291
292
293 #endif