Staging: aten2011: move .h files into the driver
[linux-2.6] / drivers / staging / epl / EplObdMacro.h
1 /****************************************************************************
2
3   (c) SYSTEC electronic GmbH, D-07973 Greiz, August-Bebel-Str. 29
4       www.systec-electronic.com
5
6   Project:      openPOWERLINK
7
8   Description:  include file for macros of EplOBD-Module
9
10   License:
11
12     Redistribution and use in source and binary forms, with or without
13     modification, are permitted provided that the following conditions
14     are met:
15
16     1. Redistributions of source code must retain the above copyright
17        notice, this list of conditions and the following disclaimer.
18
19     2. Redistributions in binary form must reproduce the above copyright
20        notice, this list of conditions and the following disclaimer in the
21        documentation and/or other materials provided with the distribution.
22
23     3. Neither the name of SYSTEC electronic GmbH nor the names of its
24        contributors may be used to endorse or promote products derived
25        from this software without prior written permission. For written
26        permission, please contact info@systec-electronic.com.
27
28     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29     "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
31     FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
32     COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
33     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
34     BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
35     LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
36     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37     LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
38     ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39     POSSIBILITY OF SUCH DAMAGE.
40
41     Severability Clause:
42
43         If a provision of this License is or becomes illegal, invalid or
44         unenforceable in any jurisdiction, that shall not affect:
45         1. the validity or enforceability in that jurisdiction of any other
46            provision of this License; or
47         2. the validity or enforceability in other jurisdictions of that or
48            any other provision of this License.
49
50   -------------------------------------------------------------------------
51
52                 $RCSfile: EplObdMacro.h,v $
53
54                 $Author: D.Krueger $
55
56                 $Revision: 1.4 $  $Date: 2008/04/17 21:36:32 $
57
58                 $State: Exp $
59
60                 Build Environment:
61                     GCC V3.4
62
63   -------------------------------------------------------------------------
64
65   Revision History:
66
67   2006/06/05 k.t.:   start of the implementation
68                     -> based on CANopen ObdMacro.h
69
70 ****************************************************************************/
71
72 //---------------------------------------------------------------------------
73 // const defines
74 //---------------------------------------------------------------------------
75
76 #if defined (EPL_OBD_DEFINE_MACRO)
77
78     //-------------------------------------------------------------------------------------------
79 #if defined (EPL_OBD_CREATE_ROM_DATA)
80
81 //        #pragma message ("EPL_OBD_CREATE_ROM_DATA")
82
83 #define EPL_OBD_BEGIN()                                                         static  DWORD  dwObd_OBK_g = 0x0000;
84 #define EPL_OBD_END()
85
86         //---------------------------------------------------------------------------------------
87 #define EPL_OBD_BEGIN_PART_GENERIC()
88 #define EPL_OBD_BEGIN_PART_MANUFACTURER()
89 #define EPL_OBD_BEGIN_PART_DEVICE()
90 #define EPL_OBD_END_PART()
91
92         //---------------------------------------------------------------------------------------
93 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call)
94 #define EPL_OBD_END_INDEX(ind)
95 #define EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def)         static  tEplObdUnsigned8    xDef##ind##_0x00_g = (cnt); \
96                                                                                         static  dtyp  xDef##ind##_0x01_g = (def);
97 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def)      static  tEplObdUnsigned8    xDef##ind##_0x00_g = (cnt); \
98                                                                                         static  dtyp  xDef##ind##_0x01_g = (def);
99 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name)   static  tEplObdUnsigned8    xDef##ind##_0x00_g = (cnt);
100
101         //---------------------------------------------------------------------------------------
102 #define EPL_OBD_SUBINDEX_RAM_VAR(ind,sub,typ,acc,dtyp,name,val)                 static  dtyp  xDef##ind##_##sub##_g        = val;
103 #define EPL_OBD_SUBINDEX_RAM_VAR_RG(ind,sub,typ,acc,dtyp,name,val,low,high)     static  dtyp  xDef##ind##_##sub##_g[3]     = {val,low,high};
104 #define EPL_OBD_SUBINDEX_RAM_VAR_NOINIT(ind,sub,typ,acc,dtyp,name)
105 #define EPL_OBD_SUBINDEX_RAM_VSTRING(ind,sub,acc,name,size,val)                 static char  MEM szCur##ind##_##sub##_g[size+1]; \
106                                                                                         static  tEplObdVStringDef  xDef##ind##_##sub##_g = {size, val, szCur##ind##_##sub##_g};
107
108 #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size)                     static  BYTE  MEM bCur##ind##_##sub##_g[size]; \
109                                                                                         static  tEplObdOStringDef  xDef##ind##_##sub##_g = {size, ((BYTE*)""), bCur##ind##_##sub##_g};
110 #define EPL_OBD_SUBINDEX_RAM_DOMAIN(ind,sub,acc,name)
111 #define EPL_OBD_SUBINDEX_RAM_USERDEF(ind,sub,typ,acc,dtyp,name,val)             static  dtyp  xDef##ind##_##sub##_g        = val;
112 #define EPL_OBD_SUBINDEX_RAM_USERDEF_RG(ind,sub,typ,acc,dtyp,name,val,low,high) static  dtyp  xDef##ind##_##sub##_g[3]     = {val,low,high};
113 #define EPL_OBD_SUBINDEX_RAM_USERDEF_NOINIT(ind,sub,typ,acc,dtyp,name)
114
115 //-------------------------------------------------------------------------------------------
116 #elif defined (EPL_OBD_CREATE_RAM_DATA)
117
118 //        #pragma message ("EPL_OBD_CREATE_RAM_DATA")
119
120 #define EPL_OBD_BEGIN()
121 #define EPL_OBD_END()
122
123         //---------------------------------------------------------------------------------------
124 #define EPL_OBD_BEGIN_PART_GENERIC()
125 #define EPL_OBD_BEGIN_PART_MANUFACTURER()
126 #define EPL_OBD_BEGIN_PART_DEVICE()
127 #define EPL_OBD_END_PART()
128
129         //---------------------------------------------------------------------------------------
130 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call)
131 #define EPL_OBD_END_INDEX(ind)
132 #define EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def)         static dtyp         MEM axCur##ind##_g[cnt];
133 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def)      static tEplObdVarEntry MEM aVarEntry##ind##_g[cnt];
134 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name)   static tEplObdVarEntry MEM aVarEntry##ind##_g[cnt];
135
136         //---------------------------------------------------------------------------------------
137 #define EPL_OBD_SUBINDEX_RAM_VAR(ind,sub,typ,acc,dtyp,name,val)                 static dtyp         MEM xCur##ind##_##sub##_g;
138 #define EPL_OBD_SUBINDEX_RAM_VAR_RG(ind,sub,typ,acc,dtyp,name,val,low,high)     static dtyp         MEM xCur##ind##_##sub##_g;
139 #define EPL_OBD_SUBINDEX_RAM_VSTRING(ind,sub,acc,name,size,val)                 static tEplObdVString  MEM xCur##ind##_##sub##_g;
140 #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size)                     static tEplObdOString  MEM xCur##ind##_##sub##_g;
141 #define EPL_OBD_SUBINDEX_RAM_VAR_NOINIT(ind,sub,typ,acc,dtyp,name)              static dtyp         MEM xCur##ind##_##sub##_g;
142 #define EPL_OBD_SUBINDEX_RAM_DOMAIN(ind,sub,acc,name)                           static tEplObdVarEntry MEM VarEntry##ind##_##sub##_g;
143 #define EPL_OBD_SUBINDEX_RAM_USERDEF(ind,sub,typ,acc,dtyp,name,val)             static tEplObdVarEntry MEM VarEntry##ind##_##sub##_g;
144 #define EPL_OBD_SUBINDEX_RAM_USERDEF_RG(ind,sub,typ,acc,dtyp,name,val,low,high) static tEplObdVarEntry MEM VarEntry##ind##_##sub##_g;
145 #define EPL_OBD_SUBINDEX_RAM_USERDEF_NOINIT(ind,sub,typ,acc,dtyp,name)          static tEplObdVarEntry MEM VarEntry##ind##_##sub##_g;
146
147     //-------------------------------------------------------------------------------------------
148 #elif defined (EPL_OBD_CREATE_SUBINDEX_TAB)
149
150 //        #pragma message ("EPL_OBD_CREATE_SUBINDEX_TAB")
151
152 #define EPL_OBD_BEGIN()
153 #define EPL_OBD_END()
154
155         //---------------------------------------------------------------------------------------
156 #define EPL_OBD_BEGIN_PART_GENERIC()
157 #define EPL_OBD_BEGIN_PART_MANUFACTURER()
158 #define EPL_OBD_BEGIN_PART_DEVICE()
159 #define EPL_OBD_END_PART()
160
161         //---------------------------------------------------------------------------------------
162 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call)                                   static tEplObdSubEntry MEM aObdSubEntry##ind##Ram_g[cnt]= {
163 #define EPL_OBD_END_INDEX(ind)                                                  EPL_OBD_END_SUBINDEX()};
164 #define EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def)         static tEplObdSubEntry MEM aObdSubEntry##ind##Ram_g[]= { \
165                                                                                         {0, kEplObdTypUInt8, kEplObdAccCR,          &xDef##ind##_0x00_g,   NULL}, \
166                                                                                         {1, typ,          (acc)|kEplObdAccArray, &xDef##ind##_0x01_g,   &axCur##ind##_g[0]}, \
167                                                                                         EPL_OBD_END_SUBINDEX()};
168 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def)      static tEplObdSubEntry MEM aObdSubEntry##ind##Ram_g[]= { \
169                                                                                         {0, kEplObdTypUInt8, kEplObdAccCR,                     &xDef##ind##_0x00_g,   NULL}, \
170                                                                                         {1, typ,          (acc)|kEplObdAccArray|kEplObdAccVar, &xDef##ind##_0x01_g,   &aVarEntry##ind##_g[0]}, \
171                                                                                         EPL_OBD_END_SUBINDEX()};
172 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name)   static tEplObdSubEntry MEM aObdSubEntry##ind##Ram_g[]= { \
173                                                                                         {0, kEplObdTypUInt8, kEplObdAccCR,                     &xDef##ind##_0x00_g,   NULL}, \
174                                                                                         {1, typ,          (acc)|kEplObdAccArray|kEplObdAccVar, NULL,                  &aVarEntry##ind##_g[0]}, \
175                                                                                         EPL_OBD_END_SUBINDEX()};
176
177         //---------------------------------------------------------------------------------------
178 #define EPL_OBD_SUBINDEX_RAM_VAR(ind,sub,typ,acc,dtyp,name,val)                 {sub,typ,            (acc),                        &xDef##ind##_##sub##_g,   &xCur##ind##_##sub##_g},
179 #define EPL_OBD_SUBINDEX_RAM_VAR_RG(ind,sub,typ,acc,dtyp,name,val,low,high)     {sub,typ,            (acc)|kEplObdAccRange,           &xDef##ind##_##sub##_g[0],&xCur##ind##_##sub##_g},
180 #define EPL_OBD_SUBINDEX_RAM_VAR_NOINIT(ind,sub,typ,acc,dtyp,name)              {sub,typ,            (acc),                        NULL,   &xCur##ind##_##sub##_g},
181 #define EPL_OBD_SUBINDEX_RAM_VSTRING(ind,sub,acc,name,size,val)                 {sub,kEplObdTypVString,(acc)/*|kEplObdAccVar*/,         &xDef##ind##_##sub##_g,   &xCur##ind##_##sub##_g},
182 #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size)                     {sub,kEplObdTypOString,(acc)/*|kEplObdAccVar*/,         &xDef##ind##_##sub##_g,   &xCur##ind##_##sub##_g},
183 #define EPL_OBD_SUBINDEX_RAM_DOMAIN(ind,sub,acc,name)                           {sub,kEplObdTypDomain, (acc)|kEplObdAccVar,             NULL,                     &VarEntry##ind##_##sub##_g},
184 #define EPL_OBD_SUBINDEX_RAM_USERDEF(ind,sub,typ,acc,dtyp,name,val)             {sub,typ,           (acc)|kEplObdAccVar,             &xDef##ind##_##sub##_g,   &VarEntry##ind##_##sub##_g},
185 #define EPL_OBD_SUBINDEX_RAM_USERDEF_RG(ind,sub,typ,acc,dtyp,name,val,low,high) {sub,typ,           (acc)|kEplObdAccVar|kEplObdAccRange,&xDef##ind##_##sub##_g[0],&VarEntry##ind##_##sub##_g},
186 #define EPL_OBD_SUBINDEX_RAM_USERDEF_NOINIT(ind,sub,typ,acc,dtyp,name)          {sub,typ,           (acc)|kEplObdAccVar,             NULL,    &VarEntry##ind##_##sub##_g},
187
188     //-------------------------------------------------------------------------------------------
189 #elif defined (EPL_OBD_CREATE_INDEX_TAB)
190
191 //        #pragma message ("EPL_OBD_CREATE_INDEX_TAB")
192
193 #define EPL_OBD_BEGIN()
194 #define EPL_OBD_END()
195
196         //---------------------------------------------------------------------------------------
197 #define EPL_OBD_BEGIN_PART_GENERIC()                                                   static  tEplObdEntry  aObdTab_g[]      = {
198 #define EPL_OBD_BEGIN_PART_MANUFACTURER()                                       static  tEplObdEntry  aObdTabManufacturer_g[] = {
199 #define EPL_OBD_BEGIN_PART_DEVICE()                                             static  tEplObdEntry  aObdTabDevice_g[]       = {
200 #define EPL_OBD_END_PART()                                                      {EPL_OBD_TABLE_INDEX_END,(tEplObdSubEntryPtr)&dwObd_OBK_g,0,NULL}};
201
202         //---------------------------------------------------------------------------------------
203 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call)                                   {ind,(tEplObdSubEntryPtr)&aObdSubEntry##ind##Ram_g[0],cnt,(tEplObdCallback)call},
204 #define EPL_OBD_END_INDEX(ind)
205 #define EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def)         {ind,(tEplObdSubEntryPtr)&aObdSubEntry##ind##Ram_g[0],(cnt)+1,(tEplObdCallback)call},
206 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def)      {ind,(tEplObdSubEntryPtr)&aObdSubEntry##ind##Ram_g[0],(cnt)+1,(tEplObdCallback)call},
207 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name)   {ind,(tEplObdSubEntryPtr)&aObdSubEntry##ind##Ram_g[0],(cnt)+1,(tEplObdCallback)call},
208
209         //---------------------------------------------------------------------------------------
210 #define EPL_OBD_SUBINDEX_RAM_VAR(ind,sub,typ,acc,dtyp,name,val)
211 #define EPL_OBD_SUBINDEX_RAM_VAR_RG(ind,sub,typ,acc,dtyp,name,val,low,high)
212 #define EPL_OBD_SUBINDEX_RAM_VSTRING(ind,sub,acc,name,size,val)
213 #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size)
214 #define EPL_OBD_SUBINDEX_RAM_VAR_NOINIT(ind,sub,typ,acc,dtyp,name)
215 #define EPL_OBD_SUBINDEX_RAM_DOMAIN(ind,sub,acc,name)
216 #define EPL_OBD_SUBINDEX_RAM_USERDEF(ind,sub,typ,acc,dtyp,name,val)
217 #define EPL_OBD_SUBINDEX_RAM_USERDEF_RG(ind,sub,typ,acc,dtyp,name,val,low,high)
218 #define EPL_OBD_SUBINDEX_RAM_USERDEF_NOINIT(ind,sub,typ,acc,dtyp,name)
219
220             //-------------------------------------------------------------------------------------------
221 #elif defined (EPL_OBD_CREATE_INIT_FUNCTION)
222
223 //        #pragma message ("EPL_OBD_CREATE_INIT_FUNCTION")
224
225 #define EPL_OBD_BEGIN()
226 #define EPL_OBD_END()
227
228         //---------------------------------------------------------------------------------------
229 #define EPL_OBD_BEGIN_PART_GENERIC()                                                   pInitParam->m_pPart      = (tEplObdEntryPtr) &aObdTab_g[0];
230 #define EPL_OBD_BEGIN_PART_MANUFACTURER()                                       pInitParam->m_pManufacturerPart = (tEplObdEntryPtr) &aObdTabManufacturer_g[0];
231 #define EPL_OBD_BEGIN_PART_DEVICE()                                             pInitParam->m_pDevicePart       = (tEplObdEntryPtr) &aObdTabDevice_g[0];
232 #define EPL_OBD_END_PART()
233
234         //---------------------------------------------------------------------------------------
235 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call)
236 #define EPL_OBD_END_INDEX(ind)
237 #define EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def)
238 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def)
239 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name)
240
241         //---------------------------------------------------------------------------------------
242 #define EPL_OBD_SUBINDEX_RAM_VAR(ind,sub,typ,acc,dtyp,name,val)
243 #define EPL_OBD_SUBINDEX_RAM_VAR_RG(ind,sub,typ,acc,dtyp,name,val,low,high)
244 #define EPL_OBD_SUBINDEX_RAM_VSTRING(ind,sub,acc,name,size,val)
245 #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size)
246 #define EPL_OBD_SUBINDEX_RAM_VAR_NOINIT(ind,sub,typ,acc,dtyp,name)
247 #define EPL_OBD_SUBINDEX_RAM_DOMAIN(ind,sub,acc,name)
248 #define EPL_OBD_SUBINDEX_RAM_USERDEF(ind,sub,typ,acc,dtyp,name,val)
249 #define EPL_OBD_SUBINDEX_RAM_USERDEF_RG(ind,sub,typ,acc,dtyp,name,val,low,high)
250 #define EPL_OBD_SUBINDEX_RAM_USERDEF_NOINIT(ind,sub,typ,acc,dtyp,name)
251
252     //-------------------------------------------------------------------------------------------
253 #elif defined (EPL_OBD_CREATE_INIT_SUBINDEX)
254
255 //        #pragma message ("EPL_OBD_CREATE_INIT_SUBINDEX")
256
257 #define EPL_OBD_BEGIN()
258 #define EPL_OBD_END()
259
260         //---------------------------------------------------------------------------------------
261 #define EPL_OBD_BEGIN_PART_GENERIC()
262 #define EPL_OBD_BEGIN_PART_MANUFACTURER()
263 #define EPL_OBD_BEGIN_PART_DEVICE()
264 #define EPL_OBD_END_PART()
265
266         //---------------------------------------------------------------------------------------
267 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call)   //CCM_SUBINDEX_RAM_ONLY (EPL_MEMCPY (&aObdSubEntry##ind##Ram_g[0],&aObdSubEntry##ind##Rom_g[0],sizeof(aObdSubEntry##ind##Ram_g)));
268 #define EPL_OBD_END_INDEX(ind)
269 #define EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def) //EPL_MEMCPY (&aObdSubEntry##ind##Ram_g[0],&aObdSubEntry##ind##Rom_g[0],sizeof(aObdSubEntry##ind##Ram_g));
270 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def)      //EPL_MEMCPY (&aObdSubEntry##ind##Ram_g[0],&aObdSubEntry##ind##Rom_g[0],sizeof(aObdSubEntry##ind##Ram_g));
271 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name)   //EPL_MEMCPY (&aObdSubEntry##ind##Ram_g[0],&aObdSubEntry##ind##Rom_g[0],sizeof(aObdSubEntry##ind##Ram_g));
272
273         //---------------------------------------------------------------------------------------
274 #define EPL_OBD_SUBINDEX_RAM_VAR(ind,sub,typ,acc,dtyp,name,val)
275 #define EPL_OBD_SUBINDEX_RAM_VAR_RG(ind,sub,typ,acc,dtyp,name,val,low,high)
276 #define EPL_OBD_SUBINDEX_RAM_VSTRING(ind,sub,acc,name,size,val)
277 #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size)
278 #define EPL_OBD_SUBINDEX_RAM_VAR_NOINIT(ind,sub,typ,acc,dtyp,name)
279 #define EPL_OBD_SUBINDEX_RAM_DOMAIN(ind,sub,acc,name)
280 #define EPL_OBD_SUBINDEX_RAM_USERDEF(ind,sub,typ,acc,dtyp,name,val)
281 #define EPL_OBD_SUBINDEX_RAM_USERDEF_RG(ind,sub,typ,acc,dtyp,name,val,low,high)
282 #define EPL_OBD_SUBINDEX_RAM_USERDEF_NOINIT(ind,sub,typ,acc,dtyp,name)
283
284     //-------------------------------------------------------------------------------------------
285 #else
286
287 //        #pragma message ("ELSE OF DEFINE")
288
289 #define EPL_OBD_BEGIN()
290 #define EPL_OBD_END()
291
292         //---------------------------------------------------------------------------------------
293 #define EPL_OBD_BEGIN_PART_GENERIC()
294 #define EPL_OBD_BEGIN_PART_MANUFACTURER()
295 #define EPL_OBD_BEGIN_PART_DEVICE()
296 #define EPL_OBD_END_PART()
297
298         //---------------------------------------------------------------------------------------
299 #define EPL_OBD_BEGIN_INDEX_RAM(ind,cnt,call)
300 #define EPL_OBD_END_INDEX(ind)
301 #define EPL_OBD_RAM_INDEX_RAM_ARRAY(ind,cnt,call,typ,acc,dtyp,name,def)
302 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY(ind,cnt,call,typ,acc,dtyp,name,def)
303 #define EPL_OBD_RAM_INDEX_RAM_VARARRAY_NOINIT(ind,cnt,call,typ,acc,dtyp,name)
304
305         //---------------------------------------------------------------------------------------
306 #define EPL_OBD_SUBINDEX_RAM_VAR(ind,sub,typ,acc,dtyp,name,val)
307 #define EPL_OBD_SUBINDEX_RAM_VAR_RG(ind,sub,typ,acc,dtyp,name,val,low,high)
308 #define EPL_OBD_SUBINDEX_RAM_VSTRING(ind,sub,acc,name,sizes,val)
309 #define EPL_OBD_SUBINDEX_RAM_OSTRING(ind,sub,acc,name,size)
310 #define EPL_OBD_SUBINDEX_RAM_VAR_NOINIT(ind,sub,typ,acc,dtyp,name)
311 #define EPL_OBD_SUBINDEX_RAM_DOMAIN(ind,sub,acc,name)
312 #define EPL_OBD_SUBINDEX_RAM_USERDEF(ind,sub,typ,acc,dtyp,name,val)
313 #define EPL_OBD_SUBINDEX_RAM_USERDEF_RG(ind,sub,typ,acc,dtyp,name,val,low,high)
314 #define EPL_OBD_SUBINDEX_RAM_USERDEF_NOINIT(ind,sub,typ,acc,dtyp,name)
315
316 #endif
317
318     //-------------------------------------------------------------------------------------------
319 #elif defined (EPL_OBD_UNDEFINE_MACRO)
320
321 //    #pragma message ("EPL_OBD_UNDEFINE_MACRO")
322
323 #undef EPL_OBD_BEGIN
324 #undef EPL_OBD_END
325
326     //---------------------------------------------------------------------------------------
327 #undef EPL_OBD_BEGIN_PART_GENERIC
328 #undef EPL_OBD_BEGIN_PART_MANUFACTURER
329 #undef EPL_OBD_BEGIN_PART_DEVICE
330 #undef EPL_OBD_END_PART
331
332     //---------------------------------------------------------------------------------------
333 #undef EPL_OBD_BEGIN_INDEX_RAM
334 #undef EPL_OBD_END_INDEX
335 #undef EPL_OBD_RAM_INDEX_RAM_ARRAY
336 #undef EPL_OBD_RAM_INDEX_RAM_VARARRAY
337 #undef EPL_OBD_RAM_INDEX_RAM_VARARRAY_NOINIT
338
339     //---------------------------------------------------------------------------------------
340 #undef EPL_OBD_SUBINDEX_RAM_VAR
341 #undef EPL_OBD_SUBINDEX_RAM_VAR_RG
342 #undef EPL_OBD_SUBINDEX_RAM_VSTRING
343 #undef EPL_OBD_SUBINDEX_RAM_OSTRING
344 #undef EPL_OBD_SUBINDEX_RAM_VAR_NOINIT
345 #undef EPL_OBD_SUBINDEX_RAM_DOMAIN
346 #undef EPL_OBD_SUBINDEX_RAM_USERDEF
347 #undef EPL_OBD_SUBINDEX_RAM_USERDEF_RG
348 #undef EPL_OBD_SUBINDEX_RAM_USERDEF_NOINIT
349
350 #else
351
352 #error "nothing defined"
353
354 #endif