FreeCalypso > hg > tcs211-l1-reconst
comparison gpf/CCD/ccdtable.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
| author | Space Falcon <falcon@ivan.Harhan.ORG> | 
|---|---|
| date | Mon, 01 Jun 2015 03:24:05 +0000 | 
| parents | |
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| -1:000000000000 | 0:509db1a7b7b8 | 
|---|---|
| 1 /* | |
| 2 +----------------------------------------------------------------------------- | |
| 3 | Project : | |
| 4 | Modul : ccdtable.h | |
| 5 +----------------------------------------------------------------------------- | |
| 6 | Copyright 2002 Texas Instruments Berlin, AG | |
| 7 | All rights reserved. | |
| 8 | | |
| 9 | This file is confidential and a trade secret of Texas | |
| 10 | Instruments Berlin, AG | |
| 11 | The receipt of or possession of this file does not convey | |
| 12 | any rights to reproduce or disclose its contents or to | |
| 13 | manufacture, use, or sell anything it may describe, in | |
| 14 | whole, or in part, without the specific written consent of | |
| 15 | Texas Instruments Berlin, AG. | |
| 16 +----------------------------------------------------------------------------- | |
| 17 | Purpose : Condat Conder Decoder | |
| 18 | Type definitions for the coding/decoding tables | |
| 19 | The tables are generated by CCDGEN. | |
| 20 +----------------------------------------------------------------------------- | |
| 21 */ | |
| 22 | |
| 23 | |
| 24 #ifndef __CCDTABLE | |
| 25 #define __CCDTABLE | |
| 26 | |
| 27 #define CCDDATA_TABLE_VERSION 1 | |
| 28 | |
| 29 #ifdef WIN32 | |
| 30 #ifndef CCDDATA_U32 | |
| 31 #define CCDDATA_U32 | |
| 32 #endif | |
| 33 #endif | |
| 34 | |
| 35 /* | |
| 36 * Table entry for a variable | |
| 37 */ | |
| 38 typedef struct | |
| 39 { | |
| 40 #ifdef CCD_SYMBOLS | |
| 41 char *name; | |
| 42 USHORT longNameRef; | |
| 43 #endif | |
| 44 USHORT bSize; | |
| 45 USHORT cSize; | |
| 46 char cType; | |
| 47 UBYTE numValueDefs; | |
| 48 USHORT valueDefs; | |
| 49 } T_CCD_VarTabEntry; | |
| 50 | |
| 51 /* | |
| 52 * Table entry for a spare | |
| 53 */ | |
| 54 typedef struct | |
| 55 { | |
| 56 ULONG value; | |
| 57 UBYTE bSize; | |
| 58 } T_CCD_SpareTabEntry; | |
| 59 | |
| 60 /* | |
| 61 * Table entry for an element | |
| 62 */ | |
| 63 typedef struct | |
| 64 { | |
| 65 UBYTE codingType; | |
| 66 BOOL optional; | |
| 67 char extGroup; | |
| 68 char repType; | |
| 69 USHORT calcIdxRef; | |
| 70 USHORT maxRepeat; | |
| 71 #ifdef CCDDATA_U32 | |
| 72 U32 structOffs; | |
| 73 #else /* CCDDATA_U32 */ | |
| 74 USHORT structOffs; | |
| 75 #endif /* CCDDATA_U32 */ | |
| 76 USHORT ident; | |
| 77 char elemType; | |
| 78 USHORT elemRef; | |
| 79 } T_CCD_ElemTabEntry; | |
| 80 | |
| 81 /* | |
| 82 * Table entry for a calculation index | |
| 83 */ | |
| 84 typedef struct | |
| 85 { | |
| 86 UBYTE numCondCalcs; | |
| 87 USHORT condCalcRef; | |
| 88 UBYTE numPrologSteps; | |
| 89 USHORT prologStepRef; | |
| 90 USHORT numRepCalcs; | |
| 91 USHORT repCalcRef; | |
| 92 } T_CCD_CalcIndex; | |
| 93 | |
| 94 | |
| 95 /* | |
| 96 * Definition entry for a composition | |
| 97 */ | |
| 98 typedef struct | |
| 99 { | |
| 100 #ifdef CCD_SYMBOLS | |
| 101 char *name; | |
| 102 USHORT longNameRef; | |
| 103 #endif | |
| 104 #ifdef CCDDATA_U32 | |
| 105 U32 cSize; | |
| 106 U32 bSize; | |
| 107 #else /* CCDDATA_U32 */ | |
| 108 USHORT cSize; | |
| 109 USHORT bSize; | |
| 110 #endif /* CCDDATA_U32 */ | |
| 111 USHORT numOfComponents; | |
| 112 USHORT componentRef; | |
| 113 } T_CCD_CompTabEntry; | |
| 114 | |
| 115 /* | |
| 116 * Definition entry for a calculation | |
| 117 */ | |
| 118 typedef struct | |
| 119 { | |
| 120 char operation; | |
| 121 ULONG operand; | |
| 122 } T_CCD_CalcTabEntry; | |
| 123 | |
| 124 /* | |
| 125 * Definition entry for a value | |
| 126 */ | |
| 127 typedef struct | |
| 128 { | |
| 129 USHORT valStringRef; | |
| 130 UBYTE isDefault; | |
| 131 S32 startValue; | |
| 132 S32 endValue; | |
| 133 } T_CCD_ValTabEntry; | |
| 134 | |
| 135 typedef char * T_CCD_StrTabEntry; | |
| 136 | |
| 137 typedef struct | |
| 138 { | |
| 139 char* as_name; | |
| 140 } T_CCD_ALIASTABLE; | |
| 141 | |
| 142 typedef struct | |
| 143 { | |
| 144 USHORT numitems; | |
| 145 USHORT idx; | |
| 146 } T_CCD_MTXIDX; | |
| 147 | |
| 148 #define NO_REF 0xffff | |
| 149 | |
| 150 #endif | 
