comparison cdg-hybrid/sap/dl.pdf @ 9:6da1d56a96a3

cdg-hybrid: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 21:08:11 +0000
parents
children
comparison
equal deleted inserted replaced
8:ed162c9cd29f 9:6da1d56a96a3
1 ;********************************************************************************
2 ;*** File : dl.pdf
3 ;*** Creation : Wed Mar 11 09:57:57 CST 2009
4 ;*** XSLT Processor : Apache Software Foundation / http://xml.apache.org/xalan-j / supports XSLT-Ver: 1
5 ;*** Copyright : (c) Texas Instruments AG, Berlin Germany 2002
6 ;********************************************************************************
7 ;*** Document Type : Service Access Point Specification
8 ;*** Document Name : dl
9 ;*** Document No. : 8010.100.02.010
10 ;*** Document Date : 2004-04-28
11 ;*** Document Status: BEING_PROCESSED
12 ;*** Document Author: MSB
13 ;********************************************************************************
14
15
16
17 PRAGMA SRC_FILE_TIME "Thu Nov 29 09:40:06 2007"
18 PRAGMA LAST_MODIFIED "2004-04-28"
19 PRAGMA ID_AND_VERSION "8010.100.02.010"
20 PRAGMA PREFIX DL ; Prefix for this document
21 PRAGMA ALLWAYS_ENUM_IN_VAL_FILE YES ; Adds enumerations in the .val file.
22 PRAGMA ENABLE_GROUP NO ; Enable h-file grouping
23 PRAGMA COMPATIBILITY_DEFINES NO ; Compatible to the old #defines
24
25
26
27 CONST MAX_SDU_LEN 1 ; Maximum number of bytes in an SDU (dummy value)
28 CONST N201_SACCH_A_B 18 ; Maximum number of octets for the information field for frames of format A and B (SACCH)
29 CONST N201_DCCH_A_B 20 ; Maximum number of octets for the information field for frames of format A and B (SDCCH, FACCH)
30 CONST N201_Bbis 23 ; Maximum number of octets for the information field for frames of format Bbis (BCCH,AGCH,NCH,PCH)
31 CONST N201_SACCH_Bter 21 ; Maximum number of octets for the information field for frames of format Bter (SACCH)
32 CONST N201_DCCH_Bter 23 ; Maximum number of octets for the information field for frames of format Bter (FACCH,SDCCH)
33 EXTERN CONST @p_mphc - MAX_L2_FRAME_SIZE@ MAX_L2_FRAME_SIZE ; Maximum number of octets for layer 2 frames of all formats
34 CONST SPD_PID 16 ; Defines the Primitive number for DL_SHORTUNIT_DATA_REQ/IND
35
36
37
38 VALTAB VAL_l2_channel %!TI_DUAL_MODE%
39 VAL 1 L2_CHANNEL_SACCH "SACCH block"
40 VAL 2 L2_CHANNEL_SDCCH "SDCCH block"
41 VAL 3 L2_CHANNEL_FACCH_H "FACCH halfrate block"
42 VAL 4 L2_CHANNEL_FACCH_F "FACCH fullrate block"
43 VAL 5 L2_CHANNEL_CCCH "CCCH block"
44 VAL 6 L2_CHANNEL_NBCCH "normal BCCH block"
45 VAL 7 L2_CHANNEL_PCH "PCH block"
46 VAL 8 L2_CHANNEL_EPCH "extended PCH block"
47 VAL 9 L2_CHANNEL_CBCH "CBCH block"
48 VAL 10 L2_CHANNEL_EBCCH "extended BCCH"
49
50 VALTAB VAL_sapi
51 VAL 0 SAPI_0 %!TI_DUAL_MODE% "SAPI 0"
52 VAL 3 SAPI_3 %!TI_DUAL_MODE% "SAPI 3"
53
54 VALTAB VAL_indication
55 VAL 0 ALL_DONE "no unacknowledges or unserved data requests"
56 VAL 1 UNSERVED "unserved data requests"
57
58 VALTAB VAL_mode
59 VAL 0 NORMAL_RELEASE "normal release procedure"
60 VAL 1 LOCAL_END_RELEASE "local end release procedure"
61
62 VALTAB VAL_cnf
63 VAL 0 NO_CONFIRMATION "no confimation necessary"
64
65 VALTAB VAL_cs
66 VAL 0 INFO_FIELD_MISMATCH %!TI_DUAL_MODE% "different information fields"
67
68
69
70
71 VAR l2_channel %!TI_DUAL_MODE% "Layer 2 channel-type" B
72
73 VAL @p_mphc - VAL_l2_channel@
74
75 VAR indication "Indication for unserved data requests" B
76
77 VAL @p_dl - VAL_indication@
78
79 VAR mode "release mode" B
80
81 VAL @p_dl - VAL_mode@
82
83 VAR sapi %!TI_DUAL_MODE% "service access point identifier" B
84
85 VAL @p_dl - VAL_sapi@
86
87 VAR cnf "Confimation demand" B
88
89 VAL @p_dl - VAL_cnf@
90
91 VAR l_buf %!TI_DUAL_MODE% "Length in bits" S
92
93
94 VAR o_buf %!TI_DUAL_MODE% "Offset in bits" S
95
96
97 VAR buf %!TI_DUAL_MODE% "Message content" B
98
99
100 VAR cs %!TI_DUAL_MODE% "error cause" B
101
102 VAL @p_dl - VAL_cs@
103
104 VAR error_flag "error cause" B
105
106 VAL @p_mphc - VAL_error_flag@
107
108 VAR pwr_lev "Ordered mobile power level" B
109
110
111 VAR ta "Timing advance" B
112
113
114 VAR signal_data "Pointer to signal data" L
115
116
117 VAR fn "Frame number" L
118
119
120
121
122
123 COMP sdu %!TI_DUAL_MODE% "Container for a message"
124 {
125 l_buf ; Length in bits
126 o_buf ; Offset in bits
127 buf [MAX_SDU_LEN] ; Message content
128 }
129
130
131
132
133
134
135 ; DL_ESTABLISH_REQ 0x80000003
136 ; DL_ESTABLISH_CNF 0x80014003
137 ; DL_ESTABLISH_IND 0x80004003
138 ; DL_RELEASE_REQ 0x80020003
139 ; DL_RELEASE_CNF 0x80034003
140 ; DL_RELEASE_IND 0x80024003
141 ; DL_DATA_REQ 0x80040003
142 ; DL_DATA_CNF 0x80050003
143 ; DL_DATA_IND 0x80044003
144 ; DL_UNITDATA_REQ 0x80060003
145 ; DL_UNITDATA_IND 0x80064003
146 ; DL_SHORT_UNITDATA_REQ 0x80100003
147 ; DL_SHORT_UNITDATA_IND 0x80104003
148 ; DL_SUSPEND_REQ 0x80080003
149 ; DL_RESUME_REQ 0x800A0003
150 ; DL_RECONNECT_REQ 0x800C0003
151 ; DL_TRACE_REQ 0x800E0003
152 ; DL_SIGNAL_ESTABLISH_IND 0x80124003
153 ; DL_SIGNAL_ESTABLISH_CNF 0x80134003
154 ; DL_SIGNAL_DATA_IND 0x80144003
155 ; DL_SIGNAL_DATA_CNF 0x80154003
156 ; DL_SIGNAL_UNITDATA_IND 0x80164003
157 ; DL_SIGNAL_SHORT_UNITDATA_IND 0x80184003
158 ; DL_SIGNAL_RELEASE_IND 0x801A4003
159 ; DL_SIGNAL_RELEASE_CNF 0x801B4003
160 ; DL_SIGNAL_ERROR_IND 0x801C4003
161 ; DL_SIGNAL_FREE_POINTER 0x801D4003
162 ; DL_SIGNAL_CONCATENATE 0x801E4003
163 ; DL_SIGNAL_L2TRACE 0x801F4003
164 ; DL_SIGNAL_L3TRACE 0x80204003
165 ; DL_SIGNAL_EM_IND 0x80214003
166 ; DL_SIGNAL_EM_WRITE 0x80224003
167 ; DL_SIGNAL_EM_READ 0x80234003
168
169
170
171 PRIM DL_ESTABLISH_REQ 0x80000003
172 {
173 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
174 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
175 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
176 sapi %!TI_DUAL_MODE% ; Service access point identifier
177 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
178 sdu %!TI_DUAL_MODE% ; Service data unit
179 }
180
181
182
183
184
185
186 PRIM DL_ESTABLISH_CNF 0x80014003
187 {
188 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
189 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
190 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
191 sapi %!TI_DUAL_MODE% ; Service access point identifier
192 indication ; Indication of outstanding acknowledgements or unserved DL-DATA-REQUEST primitives
193 }
194
195
196
197
198
199
200 PRIM DL_ESTABLISH_IND 0x80004003
201 {
202 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
203 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
204 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
205 sapi %!TI_DUAL_MODE% ; Service access point identifier
206 indication ; Indication of outstanding acknowledgements or unserved DL-DATA-REQUEST primitives
207 }
208
209
210
211
212
213
214 PRIM DL_RELEASE_REQ 0x80020003
215 {
216 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
217 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
218 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
219 sapi %!TI_DUAL_MODE% ; Service access point identifier
220 mode ; Release mode
221 }
222
223
224
225
226
227
228 PRIM DL_RELEASE_CNF 0x80034003
229 {
230 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
231 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
232 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
233 sapi %!TI_DUAL_MODE% ; Service access point identifier
234 indication ; Indication of outstanding acknowledgements or unserved DL-DATA-REQUEST primitives
235 }
236
237
238
239
240
241
242 PRIM DL_RELEASE_IND 0x80024003
243 {
244 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
245 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
246 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
247 sapi %!TI_DUAL_MODE% ; Service access point identifier
248 EXTERN @p_8010_153_cause_include - ps_cause@ ps_cause %TI_DUAL_MODE% ; Error cause
249 cs %!TI_DUAL_MODE% ; Error cause
250 }
251
252
253
254
255
256
257 PRIM DL_DATA_REQ 0x80040003
258 {
259 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
260 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
261 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
262 sapi %!TI_DUAL_MODE% ; Service access point identifier
263 cnf ; confirmation demand
264 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
265 sdu %!TI_DUAL_MODE% ; Service data unit
266 }
267
268
269
270
271
272
273 PRIM DL_DATA_CNF 0x80050003
274 {
275 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
276 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
277 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
278 sapi %!TI_DUAL_MODE% ; Service access point identifier
279 cnf ; confirmation demand
280 }
281
282
283
284
285
286
287 PRIM DL_DATA_IND 0x80044003
288 {
289 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
290 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
291 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
292 sapi %!TI_DUAL_MODE% ; Service access point identifier
293 EXTERN @p_8010_147_l1_include - fn@ fn %TI_DUAL_MODE% ; Frame number
294 fn %!TI_DUAL_MODE% ; Frame number
295 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
296 sdu %!TI_DUAL_MODE% ; Service data unit
297 }
298
299
300
301
302
303
304 PRIM DL_UNITDATA_REQ 0x80060003
305 {
306 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
307 sdu %!TI_DUAL_MODE% ; Service data unit
308 }
309
310
311
312
313
314
315 PRIM DL_UNITDATA_IND 0x80064003
316 {
317 error_flag ; Indicates if l2_frame data is invalid
318 pwr_lev ; Ordered mobile power level
319 ta ; Timing advance
320 EXTERN @p_8010_147_l1_include - fn@ fn %TI_DUAL_MODE% ; Frame number
321 fn %!TI_DUAL_MODE% ; Frame number
322 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
323 sdu %!TI_DUAL_MODE% ; Service data unit
324 }
325
326
327
328
329
330
331 PRIM DL_SHORT_UNITDATA_REQ 0x80100003
332 {
333 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
334 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
335 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
336 sdu %!TI_DUAL_MODE% ; Service data unit
337 }
338
339
340
341
342
343
344 PRIM DL_SHORT_UNITDATA_IND 0x80104003
345 {
346 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
347 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
348 error_flag ; Indicates if l2_frame data is invalid
349 pwr_lev ; Ordered mobile power level
350 ta ; Timing advance
351 EXTERN @p_8010_147_l1_include - fn@ fn %TI_DUAL_MODE% ; Frame number
352 fn %!TI_DUAL_MODE% ; Frame number
353 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
354 sdu %!TI_DUAL_MODE% ; Service data unit
355 }
356
357
358
359
360
361
362 PRIM DL_SUSPEND_REQ 0x80080003
363 {
364 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
365 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
366 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
367 sapi %!TI_DUAL_MODE% ; Service access point identifier
368 }
369
370
371
372
373
374
375 PRIM DL_RESUME_REQ 0x800A0003
376 {
377 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
378 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
379 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
380 sapi %!TI_DUAL_MODE% ; Service access point identifier
381 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
382 sdu %!TI_DUAL_MODE% ; Service data unit
383 }
384
385
386
387
388
389
390 PRIM DL_RECONNECT_REQ 0x800C0003
391 {
392 EXTERN @p_8010_147_l1_include - l2_channel@ l2_channel AS ch_type %TI_DUAL_MODE% ; Channel type
393 l2_channel AS ch_type %!TI_DUAL_MODE% ; Channel type
394 EXTERN @p_8010_152_ps_include - sapi@ sapi %TI_DUAL_MODE% ; Service access point identifier
395 sapi %!TI_DUAL_MODE% ; Service access point identifier
396 EXTERN @p_8010_152_ps_include - sdu@ sdu %TI_DUAL_MODE% ; Service data unit
397 sdu %!TI_DUAL_MODE% ; Service data unit
398 }
399
400
401
402
403
404
405 PRIM DL_TRACE_REQ 0x800E0003
406 {
407 }
408
409
410
411
412
413
414 PRIM DL_SIGNAL_ESTABLISH_IND 0x80124003
415 {
416 signal_data AS signal_data ; Pointer
417 }
418
419
420
421
422
423
424 PRIM DL_SIGNAL_ESTABLISH_CNF 0x80134003
425 {
426 signal_data AS signal_data ; Pointer
427 }
428
429
430
431
432
433
434 PRIM DL_SIGNAL_DATA_IND 0x80144003
435 {
436 signal_data AS signal_data ; Pointer
437 }
438
439
440
441
442
443
444 PRIM DL_SIGNAL_DATA_CNF 0x80154003
445 {
446 signal_data AS signal_data ; Pointer
447 }
448
449
450
451
452
453
454 PRIM DL_SIGNAL_UNITDATA_IND 0x80164003
455 {
456 signal_data AS signal_data ; Pointer
457 }
458
459
460
461
462
463
464 PRIM DL_SIGNAL_SHORT_UNITDATA_IND 0x80184003
465 {
466 signal_data AS signal_data ; Pointer
467 }
468
469
470
471
472
473
474 PRIM DL_SIGNAL_RELEASE_IND 0x801A4003
475 {
476 signal_data AS signal_data ; Pointer
477 }
478
479
480
481
482
483
484 PRIM DL_SIGNAL_RELEASE_CNF 0x801B4003
485 {
486 signal_data AS signal_data ; Pointer
487 }
488
489
490
491
492
493
494 PRIM DL_SIGNAL_ERROR_IND 0x801C4003
495 {
496 signal_data AS signal_data ; Pointer
497 }
498
499
500
501
502
503
504 PRIM DL_SIGNAL_FREE_POINTER 0x801D4003
505 {
506 signal_data AS signal_data ; Pointer
507 }
508
509
510
511
512
513
514 PRIM DL_SIGNAL_CONCATENATE 0x801E4003
515 {
516 signal_data AS signal_data ; Pointer
517 }
518
519
520
521
522
523
524 PRIM DL_SIGNAL_L2TRACE 0x801F4003
525 {
526 signal_data AS signal_data ; Pointer
527 }
528
529
530
531
532
533
534 PRIM DL_SIGNAL_L3TRACE 0x80204003
535 {
536 signal_data AS signal_data ; Pointer
537 }
538
539
540
541
542
543
544 PRIM DL_SIGNAL_EM_IND 0x80214003
545 {
546 }
547
548
549
550
551
552
553 PRIM DL_SIGNAL_EM_WRITE 0x80224003
554 {
555 signal_data AS signal_data ; Pointer
556 }
557
558
559
560
561
562
563 PRIM DL_SIGNAL_EM_READ 0x80234003
564 {
565 }
566
567
568
569
570
571
572
573
574