FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/ccd/gsm1_tv.c @ 914:de0505be800d
fc-fsio: create-std-dirs implemented
| author | Space Falcon <falcon@ivan.Harhan.ORG> | 
|---|---|
| date | Tue, 08 Sep 2015 18:08:03 +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 : | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
4 | Modul : gsm1_tv.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 2002 Texas Instruments Berlin, AG | 
| 
 
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 Berlin, AG | 
| 
 
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 Berlin, AG. | 
| 
 
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 GSM1_TV elements | 
| 
 
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 * Prototypes of ccd (USE_DRIVER EQ undef) for prototypes only | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
30 * look at ccdapi.h | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
31 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
32 #undef USE_DRIVER | 
| 
 
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 #include "ccdapi.h" | 
| 
 
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 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
37 * 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
 | 
38 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
39 #include "ccd_globs.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
40 #include "bitfun.h" | 
| 
 
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 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
43 * 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
 | 
44 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
45 #include "ccd.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
46 | 
| 
 
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 * 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
 | 
49 */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
50 #include "ccdtable.h" | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
51 #include "ccddata.h" | 
| 
 
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 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
54 #ifndef RUN_INT_RAM | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
55 /* | 
| 
 
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 | PROJECT : CCD (6144) MODULE : CDC_GSM | | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
58 | STATE : code ROUTINE : cdc_gsm1tv_decode | | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
59 +--------------------------------------------------------------------+ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
60 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
61 PURPOSE : Decoding of the GSM Type TV element. This element | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
62 consists of a 4 Bit T component and a V component with | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
63 max. 4 Bit length. | 
| 
 
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 SHORT cdc_gsm1tv_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
 | 
67 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
68 T_TLV_SORT tlv_inf; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
69 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
70 tlv_inf.gotTag = TRUE; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
71 tlv_inf.gotLen = FALSE; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
72 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
73 #ifdef DEBUG_CCD | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
74 #ifndef CCD_SYMBOLS | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
75 TRACE_CCD (globs, "cdc_gsm1tv_decode()"); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
76 #else | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
77 TRACE_CCD (globs, "cdc_gsm1tv_decode() %s", 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
 | 
78 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
79 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
80 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
81 return cdc_tlv_decode (c_ref, e_ref, &tlv_inf, globs); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
82 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
83 #endif /* !RUN_INT_RAM */ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
84 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
85 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
86 #ifndef RUN_INT_RAM | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
87 /* | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
88 +--------------------------------------------------------------------+ | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
89 | PROJECT : CCD (6144) MODULE : CDC_GSM | | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
90 | STATE : code ROUTINE : cdc_gsm1tv_encode | | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
91 +--------------------------------------------------------------------+ | 
| 
 
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 PURPOSE : Encoding of the GSM Type TV element. This element | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
94 consists of a 4 Bit T component and a V component with | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
95 max. 4 Bit length. | 
| 
 
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_gsm1tv_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
 | 
99 { | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
100 #ifdef DEBUG_CCD | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
101 #ifndef CCD_SYMBOLS | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
102 TRACE_CCD (globs, "cdc_gsm1tv_encode()"); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
103 #else | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
104 TRACE_CCD (globs, "cdc_gsm1tv_encode() %s", 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
 | 
105 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
106 #endif | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
107 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
108 cdc_tlv_encode (e_ref, 4, 0, globs); | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
109 | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
110 return 1; | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
111 } | 
| 
 
970d6199f2c5
gsm-fw/ccd/*.[ch]: initial import from the LoCosto source
 
Michael Spacefalcon <msokolov@ivan.Harhan.ORG> 
parents:  
diff
changeset
 | 
112 #endif /* !RUN_INT_RAM */ | 
