1 /****************************************************************************
3 (c) SYSTEC electronic GmbH, D-07973 Greiz, August-Bebel-Str. 29
4 www.systec-electronic.com
8 Description: include file for macros of EplOBD-Module
12 Redistribution and use in source and binary forms, with or without
13 modification, are permitted provided that the following conditions
16 1. Redistributions of source code must retain the above copyright
17 notice, this list of conditions and the following disclaimer.
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.
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.
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.
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.
50 -------------------------------------------------------------------------
52 $RCSfile: EplObdMacro.h,v $
56 $Revision: 1.4 $ $Date: 2008/04/17 21:36:32 $
63 -------------------------------------------------------------------------
67 2006/06/05 k.t.: start of the implementation
68 -> based on CANopen ObdMacro.h
70 ****************************************************************************/
72 //---------------------------------------------------------------------------
74 //---------------------------------------------------------------------------
76 #if defined (EPL_OBD_DEFINE_MACRO)
78 //-------------------------------------------------------------------------------------------
79 #if defined (EPL_OBD_CREATE_ROM_DATA)
81 // #pragma message ("EPL_OBD_CREATE_ROM_DATA")
83 #define EPL_OBD_BEGIN() static DWORD dwObd_OBK_g = 0x0000;
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()
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);
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};
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)
115 //-------------------------------------------------------------------------------------------
116 #elif defined (EPL_OBD_CREATE_RAM_DATA)
118 // #pragma message ("EPL_OBD_CREATE_RAM_DATA")
120 #define EPL_OBD_BEGIN()
121 #define EPL_OBD_END()
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()
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];
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;
147 //-------------------------------------------------------------------------------------------
148 #elif defined (EPL_OBD_CREATE_SUBINDEX_TAB)
150 // #pragma message ("EPL_OBD_CREATE_SUBINDEX_TAB")
152 #define EPL_OBD_BEGIN()
153 #define EPL_OBD_END()
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()
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()};
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},
188 //-------------------------------------------------------------------------------------------
189 #elif defined (EPL_OBD_CREATE_INDEX_TAB)
191 // #pragma message ("EPL_OBD_CREATE_INDEX_TAB")
193 #define EPL_OBD_BEGIN()
194 #define EPL_OBD_END()
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}};
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},
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)
220 //-------------------------------------------------------------------------------------------
221 #elif defined (EPL_OBD_CREATE_INIT_FUNCTION)
223 // #pragma message ("EPL_OBD_CREATE_INIT_FUNCTION")
225 #define EPL_OBD_BEGIN()
226 #define EPL_OBD_END()
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()
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)
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)
252 //-------------------------------------------------------------------------------------------
253 #elif defined (EPL_OBD_CREATE_INIT_SUBINDEX)
255 // #pragma message ("EPL_OBD_CREATE_INIT_SUBINDEX")
257 #define EPL_OBD_BEGIN()
258 #define EPL_OBD_END()
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()
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));
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)
284 //-------------------------------------------------------------------------------------------
287 // #pragma message ("ELSE OF DEFINE")
289 #define EPL_OBD_BEGIN()
290 #define EPL_OBD_END()
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()
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)
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)
318 //-------------------------------------------------------------------------------------------
319 #elif defined (EPL_OBD_UNDEFINE_MACRO)
321 // #pragma message ("EPL_OBD_UNDEFINE_MACRO")
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
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
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
352 #error "nothing defined"