FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/ccd/tdd_ci.c @ 739:e915a56954ae
rr_dats.c compiles
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> | 
|---|---|
| date | Sun, 05 Oct 2014 19:58:17 +0000 | 
| parents | 970d6199f2c5 | 
| children | 
| rev | line source | 
|---|---|
| 
648
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
1 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
2 +----------------------------------------------------------------------------- | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
3 | Project : CCD | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
4 | Modul : tdd_ci.c | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
5 +----------------------------------------------------------------------------- | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
6 | Copyright 2004 Texas Instruments Deutschland GmbH | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
7 | All rights reserved. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
8 | | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
9 | This file is confidential and a trade secret of Texas | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
10 | Instruments Deutschland GmbH | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
11 | The receipt of or possession of this file does not convey | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
12 | any rights to reproduce or disclose its contents or to | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
13 | manufacture, use, or sell anything it may describe, in | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
14 | whole, or in part, without the specific written consent of | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
15 | Texas Instruments Deutschland GmbH. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
16 +----------------------------------------------------------------------------- | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
17 | Purpose : Definition of encoding and decoding functions for TDD_CI type | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
18 +----------------------------------------------------------------------------- | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
19 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
20 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
21 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
22 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
23 * standard definitions like GLOBAL, UCHAR, ERROR etc. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
24 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
25 #include "typedefs.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
26 #include "header.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
27 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
28 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
29 * Types and functions for bit access and manipulation | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
30 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
31 #include "ccd_globs.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
32 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
33 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
34 * Prototypes of ccd internal functions | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
35 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
36 #include "ccd.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
37 #include "bitfun.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
38 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
39 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
40 * Declaration of coder/decoder tables | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
41 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
42 #include "ccdtable.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
43 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
44 * Function prototypes of CCD-CCDDATA interface | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
45 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
46 #include "ccddata.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
47 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
48 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
49 #if !(defined (CCD_TEST)) | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
50 #include "vsi.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
51 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
52 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
53 #ifndef RUN_INT_RAM | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
54 /* Attention: static data, only used in cdc_tdd_ci_decode */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
55 static const U8 params_bSize[21] = | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
56 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
57 0, | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
58 9, | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
59 17, 25, | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
60 32, 39, 46, 53, | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
61 59, 65, 71, 77, 83, 89, 95, 101, | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
62 106, 111, 116, 121, 126 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
63 }; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
64 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
65 +--------------------------------------------------------------------+ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
66 | PROJECT : CCD MODULE : cdc_tdd_ci_decode | | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
67 +--------------------------------------------------------------------+ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
68 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
69 PURPOSE : Decoding of the TDD_CELL_INFORMATION Field reusing | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
70 RANGE 511 format of frequency lists (with w0=0.). | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
71 This field allows to compute a set of 9-bit-long | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
72 TDD_CELL_INFORMATION aprameters. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
73 The IE is preceded by TDD_Indic0(1 bit) and made of the | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
74 following two IEs: | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
75 1) NR_OF_TDD_CELLS(5 bit field), | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
76 2) TDD_CELL_INFORMATION information parameters | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
77 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
78 TDD_Indic0 indicates if the parameter value '0000000000' | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
79 is a member of the set. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
80 The total number of bits q of this field depends on the | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
81 value of the parameter NR_OF_TDD_CELLS = m | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
82 as follows (with q=0 if m=0): | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
83 m q m q m q m q m q | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
84 0 0 5 39 10 71 15 101 20 126 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
85 1 9 6 46 11 77 16 106 21-31 0 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
86 2 17 7 53 12 83 17 111 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
87 3 25 8 59 13 89 18 116 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
88 4 32 9 65 14 95 19 121 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
89 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
90 The message is sent from net to MS and a MS supporting | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
91 enhanced measurements has to understand it. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
92 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
93 The space this IE takes in the C-structure is made of a | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
94 counter for the number of decoded parameter and an array | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
95 of them. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
96 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
97 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
98 SHORT cdc_tdd_ci_decode (const ULONG c_ref, const ULONG e_ref, T_CCD_Globs *globs) | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
99 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
100 U8 ListSize = 0; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
101 U16 ListBitLen = 0; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
102 ULONG cix_ref, num_prolog_steps, prolog_step_ref; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
103 short *w; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
104 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
105 #ifdef DEBUG_CCD | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
106 TRACE_CCD (globs, "cdc_tdd_ci_decode()"); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
107 #ifdef CCD_SYMBOLS | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
108 TRACE_CCD (globs, "decoding list %s with range 512 format", | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
109 ccddata_get_alias((USHORT) e_ref, 1)); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
110 #else | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
111 TRACE_CCD (globs, "decoding list %d of range 512 format", melem[e_ref].elemRef); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
112 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
113 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
114 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
115 globs->SeekTLVExt = FALSE; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
116 cix_ref = melem[e_ref].calcIdxRef; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
117 num_prolog_steps = calcidx[cix_ref].numPrologSteps; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
118 prolog_step_ref = calcidx[cix_ref].prologStepRef; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
119 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
120 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
121 * if this element have a defined Prolog | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
122 * we have to process it before decoding the bitstream | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
123 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
124 if (num_prolog_steps) | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
125 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
126 ccd_performOperations (num_prolog_steps, prolog_step_ref, globs); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
127 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
128 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
129 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
130 * First read NR_OF_TDD_CELLS (5 bits). | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
131 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
132 globs->pstructOffs = melem[e_ref].structOffs;; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
133 bf_readBits (5, globs); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
134 ListSize = globs->pstruct[globs->pstructOffs++]; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
135 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
136 /* If n=0 there is nothing to do for this IE. */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
137 if (!ListSize) | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
138 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
139 return 1; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
140 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
141 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
142 /* Read the corresponding bit number or suppose the maximum length. */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
143 if (ListSize <= 20) | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
144 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
145 ListBitLen = params_bSize [ListSize]; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
146 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
147 else | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
148 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
149 /* If n>20 there is nothing to do for this IE. */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
150 return 1; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
151 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
152 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
153 * Bit size for params is bigger than the size of unread bits in the | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
154 * message buffer. Danger: buffer overwriting! | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
155 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
156 if ( ListBitLen > globs->maxBitpos - globs->bitpos) | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
157 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
158 ccd_recordFault (globs, ERR_ELEM_LEN, BREAK, (USHORT) e_ref, | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
159 globs->pstruct + globs->pstructOffs); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
160 ListBitLen = (U16)(globs->maxBitpos - globs->bitpos); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
161 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
162 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
163 * Use dynamic memory for calculation instead of global memory or stack. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
164 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
165 MALLOC (w, 257 * sizeof (U16)); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
166 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
167 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
168 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
169 * Decode the W-parameter. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
170 * As a rule for this type w(0) must be 0. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
171 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
172 w[0] = 0; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
173 cdc_decode_param (param_512+1, &w[1], ListBitLen, globs); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
174 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
175 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
176 * Decode and set the remaining channel number according the | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
177 * algorithm described in GSM 4.08. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
178 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
179 cdc_decode_frequencies (511, &w[1], 0, TDD_CI_LIST, globs); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
180 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
181 /* Free the dynamic allocated memory. */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
182 MFREE (w); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
183 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
184 return 1; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
185 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
186 #endif /* !RUN_INT_RAM */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
187 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
188 #ifndef RUN_INT_RAM | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
189 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
190 +--------------------------------------------------------------------+ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
191 | PROJECT : CCD MODULE : cdc_tdd_ci_encode | | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
192 +--------------------------------------------------------------------+ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
193 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
194 PURPOSE : Encoding function is not needed, since this message is | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
195 sent from net to MS. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
196 It could be only useful for testing procedure if there | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
197 were an encoder function at this place. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
198 This will be a future work. | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
199 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
200 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
201 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
202 SHORT cdc_tdd_ci_encode (const ULONG c_ref, const ULONG e_ref, T_CCD_Globs *globs) | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
203 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
204 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
205 #ifdef DEBUG_CCD | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
206 TRACE_CCD (globs, "cdc_tdd_ci_encode()"); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
207 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
208 #ifdef TARGET_WIN32 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
209 /* TBD */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
210 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
211 return 1; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
212 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
213 #endif /* !RUN_INT_RAM */ | 
