FreeCalypso > hg > leo2moko-debug
comparison gpf/CCD/ccddata.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 : ccddata.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 : Exports of the Ccddata Lib/Dll. | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef CCDDATA_H | |
22 #define CCDDATA_H | |
23 | |
24 /*==== INCLUDES =============================================================*/ | |
25 #include "pdi.h" | |
26 | |
27 /*==== CONSTS ===============================================================*/ | |
28 #define CCDDATA_CCDENT_INVALID -1 | |
29 #define CCDDATA_MCONST_ERROR -1 | |
30 #define CCDDATA_PCONST_ERROR -1 | |
31 | |
32 #define CCDDATA_DLL_OK 0 | |
33 #define CCDDATA_DLL_ALREADY -10 | |
34 #define CCDDATA_DLL_LOADLIB -11 | |
35 #define CCDDATA_DLL_LOADFUN -12 | |
36 #define CCDDATA_DLL_REGISTER -13 | |
37 | |
38 /*==== TYPES =================================================================*/ | |
39 #if defined __CCD_GLOBS_H | |
40 typedef SHORT (*T_FUNC_POINTER)(const ULONG cref, const ULONG eref, T_CCD_Globs *globs); | |
41 typedef struct | |
42 { | |
43 T_FUNC_POINTER enc; | |
44 T_FUNC_POINTER dec; | |
45 } T_FUNC_STRUCT; | |
46 #endif | |
47 | |
48 typedef struct | |
49 { | |
50 int p1; | |
51 int p2; | |
52 } T_COMENDPOINTS; | |
53 /*==== EXPORTS ===============================================================*/ | |
54 | |
55 /* Use CCDDATA_DLL_FUNC only for optmizations. The extern declarations | |
56 * also work if the function are in a dll. | |
57 */ | |
58 #ifndef CCDDATA_DLL_FUNC | |
59 #define CCDDATA_IMPORT_FUNC extern | |
60 #else /* CCDDATA_DLL_FUNC */ | |
61 #define CCDDATA_IMPORT_FUNC extern __declspec(dllimport) | |
62 #endif /* CCDDATA_DLL_FUNC */ | |
63 | |
64 /* ccddata_load.c */ | |
65 extern int ccddata_init (const char* dllname, | |
66 int reload, | |
67 void (*ccddata_init_notify)(void), | |
68 void (*ccddata_exit_notify)(void)); | |
69 extern int ccddata_exit (void); | |
70 extern char* ccddata_dllname (void); | |
71 | |
72 /* ccd_config.c */ | |
73 #if defined(CCD_C) || defined(PDI_C) | |
74 UBYTE* ccddata_get_mi_length (void); | |
75 #endif | |
76 #ifdef CCD_C | |
77 UBYTE cdc_init (T_FUNC_POINTER codec[][2]); | |
78 UBYTE* ccddata_get_decmsgbuffer (void); | |
79 #endif | |
80 | |
81 /* ccddata_pdi.c */ | |
82 CCDDATA_IMPORT_FUNC int ccddata_get_pdi_dinfo (const T_PDI_DECODEINFO* (*dinfo) ); | |
83 /* ccddata_mconst.c */ | |
84 CCDDATA_IMPORT_FUNC int ccddata_get_num_of_entities(void); | |
85 CCDDATA_IMPORT_FUNC int ccddata_get_max_message_id(void); | |
86 CCDDATA_IMPORT_FUNC int ccddata_get_max_bitstream_len(void); | |
87 CCDDATA_IMPORT_FUNC int ccddata_get_max_mstruct_len(void); | |
88 CCDDATA_IMPORT_FUNC int ccddata_mccd_symbols(void); | |
89 /* ccddata_pconst.c */ | |
90 CCDDATA_IMPORT_FUNC int ccddata_get_max_sap_num(void); | |
91 CCDDATA_IMPORT_FUNC int ccddata_get_max_primitive_id(void); | |
92 CCDDATA_IMPORT_FUNC int ccddata_get_max_pstruct_len(void); | |
93 /* ccddata_ccdmtab.c */ | |
94 CCDDATA_IMPORT_FUNC const T_CCD_VarTabEntry* ccddata_get_mvar (USHORT idx); | |
95 CCDDATA_IMPORT_FUNC const T_CCD_SpareTabEntry* ccddata_get_spare (USHORT idx); | |
96 CCDDATA_IMPORT_FUNC const T_CCD_CalcTabEntry* ccddata_get_calc (USHORT idx); | |
97 CCDDATA_IMPORT_FUNC const T_CCD_CompTabEntry* ccddata_get_mcomp (USHORT idx); | |
98 CCDDATA_IMPORT_FUNC const T_CCD_ElemTabEntry* ccddata_get_melem (USHORT idx); | |
99 CCDDATA_IMPORT_FUNC const T_CCD_CalcIndex* ccddata_get_calcidx (USHORT idx); | |
100 CCDDATA_IMPORT_FUNC USHORT ccddata_get_mmtx (USHORT entity, | |
101 USHORT msgid, | |
102 USHORT index); | |
103 /* ccddata_ccdptab.c */ | |
104 CCDDATA_IMPORT_FUNC const T_CCD_VarTabEntry* ccddata_get_pvar (USHORT idx); | |
105 CCDDATA_IMPORT_FUNC const T_CCD_CompTabEntry* ccddata_get_pcomp (USHORT idx); | |
106 CCDDATA_IMPORT_FUNC const T_CCD_ElemTabEntry* ccddata_get_pelem (USHORT idx); | |
107 CCDDATA_IMPORT_FUNC USHORT ccddata_get_pmtx (USHORT sap, | |
108 USHORT primid, | |
109 USHORT index); | |
110 /* ccddata_cdemval.c */ | |
111 CCDDATA_IMPORT_FUNC const T_CCD_ValTabEntry* ccddata_get_mval (USHORT idx); | |
112 CCDDATA_IMPORT_FUNC const T_CCD_StrTabEntry* ccddata_get_mstr (USHORT idx); | |
113 /* ccddata_cdepval.c */ | |
114 CCDDATA_IMPORT_FUNC const T_CCD_ValTabEntry* ccddata_get_pval (USHORT idx); | |
115 CCDDATA_IMPORT_FUNC const T_CCD_StrTabEntry* ccddata_get_pstr (USHORT idx); | |
116 | |
117 /* ccddata_ccdent.c */ | |
118 #ifndef CCDDATA_CCDENT_C | |
119 CCDDATA_IMPORT_FUNC short ccddata_get_ccdent (char* entname); | |
120 CCDDATA_IMPORT_FUNC const char * ccddata_get_entname (short ccdent); | |
121 #endif /* !CCDDATA_CCDENT_C*/ | |
122 | |
123 /* ccddata_alias.c */ | |
124 CCDDATA_IMPORT_FUNC char* ccddata_get_alias (USHORT idx, int from_msg); | |
125 | |
126 /* ccddata_version.c */ | |
127 CCDDATA_IMPORT_FUNC char* ccddata_get_version (); | |
128 CCDDATA_IMPORT_FUNC int ccddata_get_table_version (); | |
129 | |
130 /* ccddata_eg.c */ | |
131 #ifndef CCDDATA_EG_C | |
132 CCDDATA_IMPORT_FUNC int ccddata_eg_nodes (void); | |
133 CCDDATA_IMPORT_FUNC char** ccddata_eg_nodenames (void); | |
134 CCDDATA_IMPORT_FUNC char* ccddata_eg_adjacent (int idx); | |
135 CCDDATA_IMPORT_FUNC int ccddata_eg_saps (void); | |
136 CCDDATA_IMPORT_FUNC char** ccddata_eg_sapnames (void); | |
137 CCDDATA_IMPORT_FUNC T_COMENDPOINTS* ccddata_eg_comendpoints (int idx); | |
138 #endif /* !CCDDATA_EG_C */ | |
139 | |
140 #endif /* !CCDDATA_H */ |