comparison cdg-hybrid/cdginc/p_rr.h @ 14:35f7a1dc9f7d

cdg-hybrid: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 07:15:38 +0000
parents
children
comparison
equal deleted inserted replaced
13:83146a4ae927 14:35f7a1dc9f7d
1 /*
2 +--------------------------------------------------------------------------+
3 | PROJECT : PROTOCOL STACK |
4 | FILE : p_rr.h |
5 | SOURCE : "sap\rr.pdf" |
6 | LastModified : "2003-02-04" |
7 | IdAndVersion : "6147.107.97.108" |
8 | SrcFileTime : "Tue Jun 3 11:14:30 2008" |
9 | Generated by CCDGEN_2.5.5A on Fri Oct 14 21:41:52 2016 |
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_RR_H
24 #define P_RR_H
25
26
27 #define CDG_ENTER__P_RR_H
28
29 #define CDG_ENTER__FILENAME _P_RR_H
30 #define CDG_ENTER__P_RR_H__FILE_TYPE CDGINC
31 #define CDG_ENTER__P_RR_H__LAST_MODIFIED _2003_02_04
32 #define CDG_ENTER__P_RR_H__ID_AND_VERSION _6147_107_97_108
33
34 #define CDG_ENTER__P_RR_H__SRC_FILE_TIME _Tue_Jun_3_11_14_30_2008
35
36 #include "CDG_ENTER.h"
37
38 #undef CDG_ENTER__P_RR_H
39
40 #undef CDG_ENTER__FILENAME
41
42
43 #include "p_rr.val"
44
45 #ifndef __T_kcv__
46 #define __T_kcv__
47 /*
48 * kc - Value
49 * CCDGEN:WriteStruct_Count==2883
50 */
51 typedef struct
52 {
53 U8 v_kc; /*< 0: 1> valid flag */
54 U8 kc[KC_STRING_SIZE]; /*< 1: 16> Kc value */
55 U8 _align0; /*< 17: 1> alignment */
56 U8 _align1; /*< 18: 1> alignment */
57 U8 _align2; /*< 19: 1> alignment */
58 } T_kcv;
59 #endif
60
61 #ifndef __T_bcch_info__
62 #define __T_bcch_info__
63 /*
64 * BCCH information
65 * CCDGEN:WriteStruct_Count==2884
66 */
67 typedef struct
68 {
69 U8 v_bcch; /*< 0: 1> valid flag */
70 U8 bcch[BA_BITMAP_SIZE]; /*< 1: 16> BCCH carrier list */
71 U8 _align0; /*< 17: 1> alignment */
72 U8 _align1; /*< 18: 1> alignment */
73 U8 _align2; /*< 19: 1> alignment */
74 } T_bcch_info;
75 #endif
76
77 #ifndef __T_chm__
78 #define __T_chm__
79 /*
80 * Channel using mode
81 * CCDGEN:WriteStruct_Count==2885
82 */
83 typedef struct
84 {
85 U8 ch_type; /*< 0: 1> Channel Type */
86 U8 ch_mode; /*< 1: 1> Channel Mode */
87 U8 _align0; /*< 2: 1> alignment */
88 U8 _align1; /*< 3: 1> alignment */
89 } T_chm;
90 #endif
91
92 #ifndef __T_mm_info__
93 #define __T_mm_info__
94 /*
95 * MM information
96 * CCDGEN:WriteStruct_Count==2886
97 */
98 typedef struct
99 {
100 U8 valid; /*< 0: 1> valid information */
101 U8 la; /*< 1: 1> Location area indication */
102 U8 att; /*< 2: 1> attach / detach flag */
103 U8 re; /*< 3: 1> re-establishment flag */
104 U8 band; /*< 4: 1> band (dummy) */
105 U8 ncc; /*< 5: 1> national colour code */
106 U8 bcc; /*< 6: 1> base station colour code */
107 U8 t3212; /*< 7: 1> periodic updating timer period */
108 } T_mm_info;
109 #endif
110
111 #ifndef __T_imsi_struct__
112 #define __T_imsi_struct__
113 /*
114 * mobile identity
115 * CCDGEN:WriteStruct_Count==2887
116 */
117 typedef struct
118 {
119 U8 v_mid; /*< 0: 1> valid flag */
120 U8 id_type; /*< 1: 1> type of identity */
121 U8 id[MAX_DIGITS]; /*< 2: 16> IMSI digits */
122 U8 _align0; /*< 18: 1> alignment */
123 U8 _align1; /*< 19: 1> alignment */
124 U32 tmsi_dig; /*< 20: 4> TMSI digits */
125 } T_imsi_struct;
126 #endif
127
128 /*
129 * mobile identity
130 * CCDGEN:WriteStruct_Count==2888
131 */
132 #ifndef __T_tmsi_struct__
133 #define __T_tmsi_struct__
134 typedef T_imsi_struct T_tmsi_struct;
135 #endif
136 #ifndef __T_op__
137 #define __T_op__
138 /*
139 * operation mode
140 * CCDGEN:WriteStruct_Count==2889
141 */
142 typedef struct
143 {
144 U8 v_op; /*< 0: 1> valid flag */
145 U8 ts; /*< 1: 1> test SIM card */
146 U8 m; /*< 2: 1> registration mode */
147 U8 sim_ins; /*< 3: 1> SIM card */
148 U8 func; /*< 4: 1> Operation Mode */
149 U8 service; /*< 5: 1> RR Service */
150 U8 _align0; /*< 6: 1> alignment */
151 U8 _align1; /*< 7: 1> alignment */
152 } T_op;
153 #endif
154
155 #ifndef __T_plmn__
156 #define __T_plmn__
157 /*
158 * PLMN identification
159 * CCDGEN:WriteStruct_Count==2890
160 */
161 typedef struct
162 {
163 U8 v_plmn; /*< 0: 1> valid flag */
164 U8 mcc[SIZE_MCC]; /*< 1: 3> Mobile country code. */
165 U8 mnc[SIZE_MNC]; /*< 4: 3> Mobile network code. */
166 U8 _align0; /*< 7: 1> alignment */
167 } T_plmn;
168 #endif
169
170 #ifndef __T_eq_plmn_list__
171 #define __T_eq_plmn_list__
172 /*
173 * Equivalent plmn List
174 * CCDGEN:WriteStruct_Count==2892
175 */
176 typedef struct
177 {
178 U8 eq_plmn[SIZE_EPLMN]; /*< 0: 18> Basic Element */
179 U8 v_eq_plmn; /*< 18: 1> Validity of equivalent plmn list */
180 U8 _align0; /*< 19: 1> alignment */
181 } T_eq_plmn_list;
182 #endif
183
184
185 /*
186 * End of substructure section, begin of primitive definition section
187 */
188
189 #ifndef __T_RR_ABORT_REQ__
190 #define __T_RR_ABORT_REQ__
191 /*
192 *
193 * CCDGEN:WriteStruct_Count==2896
194 */
195 typedef struct
196 {
197 U8 abcs; /*< 0: 1> abort cause */
198 U8 _align0; /*< 1: 1> alignment */
199 U8 _align1; /*< 2: 1> alignment */
200 U8 _align2; /*< 3: 1> alignment */
201 } T_RR_ABORT_REQ;
202 #endif
203
204 #ifndef __T_RR_ABORT_IND__
205 #define __T_RR_ABORT_IND__
206 /*
207 *
208 * CCDGEN:WriteStruct_Count==2897
209 */
210 typedef struct
211 {
212 T_op op; /*< 0: 8> operation mode */
213 U16 cause; /*< 8: 2> RR cause */
214 U8 plmn_avail; /*< 10: 1> PLMN available */
215 U8 _align0; /*< 11: 1> alignment */
216 T_plmn plmn[MAX_PLMN]; /*< 12: 96> PLMN identification */
217 U16 lac_list[MAX_PLMN]; /*<108: 24> LACs of found PLMNs */
218 U8 rxlevel[MAX_PLMN]; /*<132: 12> Fieldstrength */
219 U8 power; /*<144: 1> Power class */
220 U8 _align1; /*<145: 1> alignment */
221 U8 _align2; /*<146: 1> alignment */
222 U8 _align3; /*<147: 1> alignment */
223 } T_RR_ABORT_IND;
224 #endif
225
226 #ifndef __T_RR_ACTIVATE_REQ__
227 #define __T_RR_ACTIVATE_REQ__
228 /*
229 *
230 * CCDGEN:WriteStruct_Count==2898
231 */
232 typedef struct
233 {
234 T_plmn plmn; /*< 0: 8> PLMN identification */
235 T_op op; /*< 8: 8> operation mode */
236 U8 cksn; /*< 16: 1> ciphering key sequence number */
237 U8 _align0; /*< 17: 1> alignment */
238 U8 _align1; /*< 18: 1> alignment */
239 U8 _align2; /*< 19: 1> alignment */
240 T_kcv kcv; /*< 20: 20> kc - Value */
241 U16 accc; /*< 40: 2> access control classes */
242 U8 _align3; /*< 42: 1> alignment */
243 U8 _align4; /*< 43: 1> alignment */
244 T_imsi_struct imsi_struct; /*< 44: 24> mobile identity */
245 T_tmsi_struct tmsi_struct; /*< 68: 24> mobile identity */
246 U8 thplmn; /*< 92: 1> HPLN time */
247 U8 _align5; /*< 93: 1> alignment */
248 U8 _align6; /*< 94: 1> alignment */
249 U8 _align7; /*< 95: 1> alignment */
250 T_bcch_info bcch_info; /*< 96: 20> BCCH information */
251 U8 cell_test; /*<116: 1> cell test operation */
252 U8 gprs_indication; /*<117: 1> GPRS indicator */
253 U8 _align8; /*<118: 1> alignment */
254 U8 _align9; /*<119: 1> alignment */
255 T_eq_plmn_list eq_plmn_list; /*<120: 20> Equivalent plmn List */
256 U8 check_hplmn; /*<140: 1> Flag for HPLMN */
257 U8 _align10; /*<141: 1> alignment */
258 U8 _align11; /*<142: 1> alignment */
259 U8 _align12; /*<143: 1> alignment */
260 } T_RR_ACTIVATE_REQ;
261 #endif
262
263 #ifndef __T_RR_ACTIVATE_CNF__
264 #define __T_RR_ACTIVATE_CNF__
265 /*
266 *
267 * CCDGEN:WriteStruct_Count==2899
268 */
269 typedef struct
270 {
271 T_op op; /*< 0: 8> operation mode */
272 T_mm_info mm_info; /*< 8: 8> MM information */
273 U16 cid; /*< 16: 2> cell identity */
274 U8 _align0; /*< 18: 1> alignment */
275 U8 _align1; /*< 19: 1> alignment */
276 T_plmn plmn; /*< 20: 8> PLMN identification */
277 U16 lac; /*< 28: 2> location area code */
278 U8 power; /*< 30: 1> Power class */
279 U8 gprs_indication; /*< 31: 1> GPRS indicator */
280 } T_RR_ACTIVATE_CNF;
281 #endif
282
283 #ifndef __T_RR_ACTIVATE_IND__
284 #define __T_RR_ACTIVATE_IND__
285 /*
286 *
287 * CCDGEN:WriteStruct_Count==2900
288 */
289 typedef struct
290 {
291 T_op op; /*< 0: 8> operation mode */
292 T_mm_info mm_info; /*< 8: 8> MM information */
293 U16 cid; /*< 16: 2> cell identity */
294 U8 _align0; /*< 18: 1> alignment */
295 U8 _align1; /*< 19: 1> alignment */
296 T_plmn plmn; /*< 20: 8> PLMN identification */
297 U16 lac; /*< 28: 2> location area code */
298 U8 power; /*< 30: 1> Power class */
299 U8 gprs_indication; /*< 31: 1> GPRS indicator */
300 } T_RR_ACTIVATE_IND;
301 #endif
302
303 #ifndef __T_RR_DATA_REQ__
304 #define __T_RR_DATA_REQ__
305 /*
306 *
307 * CCDGEN:WriteStruct_Count==2901
308 */
309 typedef struct
310 {
311 U8 d1; /*< 0: 1> dummy, not used */
312 U8 d2; /*< 1: 1> dummy, not used */
313 U8 _align0; /*< 2: 1> alignment */
314 U8 _align1; /*< 3: 1> alignment */
315 T_sdu sdu; /*< 4: ? > Service Data Unit */
316 } T_RR_DATA_REQ;
317 #endif
318
319 #ifndef __T_RR_DATA_IND__
320 #define __T_RR_DATA_IND__
321 /*
322 *
323 * CCDGEN:WriteStruct_Count==2902
324 */
325 typedef struct
326 {
327 U8 d1; /*< 0: 1> dummy, not used */
328 U8 d2; /*< 1: 1> dummy, not used */
329 U8 _align0; /*< 2: 1> alignment */
330 U8 _align1; /*< 3: 1> alignment */
331 T_sdu sdu; /*< 4: ? > Service Data Unit */
332 } T_RR_DATA_IND;
333 #endif
334
335 #ifndef __T_RR_DEACTIVATE_REQ__
336 #define __T_RR_DEACTIVATE_REQ__
337 /*
338 *
339 * CCDGEN:WriteStruct_Count==2903
340 */
341 typedef struct
342 {
343 U8 param; /*< 0: 1> dummy parameter */
344 U8 _align0; /*< 1: 1> alignment */
345 U8 _align1; /*< 2: 1> alignment */
346 U8 _align2; /*< 3: 1> alignment */
347 } T_RR_DEACTIVATE_REQ;
348 #endif
349
350 #ifndef __T_RR_ESTABLISH_REQ__
351 #define __T_RR_ESTABLISH_REQ__
352 /*
353 *
354 * CCDGEN:WriteStruct_Count==2904
355 */
356 typedef struct
357 {
358 U16 estcs; /*< 0: 2> establishment cause */
359 U8 _align0; /*< 2: 1> alignment */
360 U8 _align1; /*< 3: 1> alignment */
361 T_sdu sdu; /*< 4: ? > Service Data Unit */
362 } T_RR_ESTABLISH_REQ;
363 #endif
364
365 #ifndef __T_RR_ESTABLISH_CNF__
366 #define __T_RR_ESTABLISH_CNF__
367 /*
368 *
369 * CCDGEN:WriteStruct_Count==2905
370 */
371 typedef struct
372 {
373 U8 param; /*< 0: 1> dummy parameter */
374 U8 _align0; /*< 1: 1> alignment */
375 U8 _align1; /*< 2: 1> alignment */
376 U8 _align2; /*< 3: 1> alignment */
377 } T_RR_ESTABLISH_CNF;
378 #endif
379
380 #ifndef __T_RR_ESTABLISH_IND__
381 #define __T_RR_ESTABLISH_IND__
382 /*
383 *
384 * CCDGEN:WriteStruct_Count==2906
385 */
386 typedef struct
387 {
388 U8 param; /*< 0: 1> dummy parameter */
389 U8 _align0; /*< 1: 1> alignment */
390 U8 _align1; /*< 2: 1> alignment */
391 U8 _align2; /*< 3: 1> alignment */
392 } T_RR_ESTABLISH_IND;
393 #endif
394
395 #ifndef __T_RR_RELEASE_IND__
396 #define __T_RR_RELEASE_IND__
397 /*
398 *
399 * CCDGEN:WriteStruct_Count==2907
400 */
401 typedef struct
402 {
403 U16 cause; /*< 0: 2> RR cause */
404 U8 sapi; /*< 2: 1> service access point identifier */
405 U8 gprs_resumption; /*< 3: 1> GPRS resumption information */
406 } T_RR_RELEASE_IND;
407 #endif
408
409 #ifndef __T_RR_SYNC_REQ__
410 #define __T_RR_SYNC_REQ__
411 /*
412 *
413 * CCDGEN:WriteStruct_Count==2908
414 */
415 typedef struct
416 {
417 T_op op; /*< 0: 8> operation mode */
418 U8 cksn; /*< 8: 1> ciphering key sequence number */
419 U8 _align0; /*< 9: 1> alignment */
420 U8 _align1; /*< 10: 1> alignment */
421 U8 _align2; /*< 11: 1> alignment */
422 T_kcv kcv; /*< 12: 20> kc - Value */
423 T_tmsi_struct tmsi_struct; /*< 32: 24> mobile identity */
424 T_plmn plmn; /*< 56: 8> PLMN identification */
425 U16 lac; /*< 64: 2> location area code */
426 U16 synccs; /*< 66: 2> synchronisation cause */
427 U16 accc; /*< 68: 2> access control classes */
428 U8 thplmn; /*< 70: 1> HPLN time */
429 U8 _align3; /*< 71: 1> alignment */
430 T_eq_plmn_list eq_plmn_list; /*< 72: 20> Equivalent plmn List */
431 } T_RR_SYNC_REQ;
432 #endif
433
434 #ifndef __T_RR_SYNC_IND__
435 #define __T_RR_SYNC_IND__
436 /*
437 *
438 * CCDGEN:WriteStruct_Count==2909
439 */
440 typedef struct
441 {
442 U8 ciph; /*< 0: 1> cipher mode */
443 U8 _align0; /*< 1: 1> alignment */
444 U8 _align1; /*< 2: 1> alignment */
445 U8 _align2; /*< 3: 1> alignment */
446 T_mm_info mm_info; /*< 4: 8> MM information */
447 T_bcch_info bcch_info; /*< 12: 20> BCCH information */
448 U16 synccs; /*< 32: 2> synchronisation cause */
449 U8 _align3; /*< 34: 1> alignment */
450 U8 _align4; /*< 35: 1> alignment */
451 T_chm chm; /*< 36: 4> Channel using mode */
452 } T_RR_SYNC_IND;
453 #endif
454
455
456 // PRIM-FF: REL99
457 // #ifndef __T_RR_RRLP_START_IND__
458 // #define __T_RR_RRLP_START_IND__
459 //
460 //
461 // CCDGEN:WriteStruct_Count==2910
462 //
463 // typedef struct
464 // {
465 // U8 param; /*< 0: 1> dummy parameter */
466 // U8 _align0; /*< 1: 1> alignment */
467 // U8 _align1; /*< 2: 1> alignment */
468 // U8 _align2; /*< 3: 1> alignment */
469 // } T_RR_RRLP_START_IND;
470 // #endif
471 //
472
473 // PRIM-FF: REL99
474 // #ifndef __T_RR_RRLP_STOP_IND__
475 // #define __T_RR_RRLP_STOP_IND__
476 //
477 //
478 // CCDGEN:WriteStruct_Count==2911
479 //
480 // typedef struct
481 // {
482 // U8 param; /*< 0: 1> dummy parameter */
483 // U8 _align0; /*< 1: 1> alignment */
484 // U8 _align1; /*< 2: 1> alignment */
485 // U8 _align2; /*< 3: 1> alignment */
486 // } T_RR_RRLP_STOP_IND;
487 // #endif
488 //
489 #ifndef __T_RR_SYNC_HPLMN_REQ__
490 #define __T_RR_SYNC_HPLMN_REQ__
491 /*
492 *
493 * CCDGEN:WriteStruct_Count==2912
494 */
495 typedef struct
496 {
497 T_plmn plmn; /*< 0: 8> PLMN identification */
498 } T_RR_SYNC_HPLMN_REQ;
499 #endif
500
501
502 #include "CDG_LEAVE.h"
503
504
505 #endif