]> rtime.felk.cvut.cz Git - CanFestival-3.git/blob - examples/TestMasterSlave/TestMaster.c
Implemented EMCY objects.
[CanFestival-3.git] / examples / TestMasterSlave / TestMaster.c
1
2 /* File generated by gen_cfile.py. Should not be modified. */
3
4 #include "TestMaster.h"
5
6 /**************************************************************************/
7 /* Declaration of the mapped variables                                    */
8 /**************************************************************************/
9 UNS8 MasterMap1 = 0x0;          /* Mapped at index 0x2000, subindex 0x00 */
10 UNS8 MasterMap2 = 0x0;          /* Mapped at index 0x2001, subindex 0x00 */
11 UNS8 MasterMap3 = 0x0;          /* Mapped at index 0x2002, subindex 0x00 */
12 UNS8 MasterMap4 = 0x0;          /* Mapped at index 0x2003, subindex 0x00 */
13 UNS8 MasterMap5 = 0x0;          /* Mapped at index 0x2004, subindex 0x00 */
14 UNS8 MasterMap6 = 0x0;          /* Mapped at index 0x2005, subindex 0x00 */
15 UNS8 MasterMap7 = 0x0;          /* Mapped at index 0x2006, subindex 0x00 */
16 UNS8 MasterMap8 = 0x0;          /* Mapped at index 0x2007, subindex 0x00 */
17 UNS8 MasterMap9 = 0x0;          /* Mapped at index 0x2008, subindex 0x00 */
18 UNS32 MasterMap10 = 0x0;                /* Mapped at index 0x2009, subindex 0x00 */
19 UNS16 MasterMap11 = 0x0;                /* Mapped at index 0x200A, subindex 0x00 */
20 INTEGER16 MasterMap12 = 0x0;            /* Mapped at index 0x200B, subindex 0x00 */
21 INTEGER16 MasterMap13 = 0x0;            /* Mapped at index 0x200C, subindex 0x00 */
22
23 /**************************************************************************/
24 /* Declaration of the value range types                                   */
25 /**************************************************************************/
26
27 UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value)
28 {
29   switch (typeValue) {
30   }
31   return 0;
32 }
33
34 /**************************************************************************/
35 /* The node id                                                            */
36 /**************************************************************************/
37 /* node_id default value.*/
38 UNS8 TestMaster_bDeviceNodeId = 0x00;
39
40 /**************************************************************************/
41 /* Array of message processing information */
42
43 const UNS8 TestMaster_iam_a_slave = 0;
44
45 TIMER_HANDLE TestMaster_heartBeatTimers[1] = {TIMER_NONE,};
46
47 /*
48 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
49
50                                OBJECT DICTIONARY
51
52 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
53 */
54
55 /* index 0x1000 :   Device Type. */
56                     UNS32 TestMaster_obj1000 = 0x12D;   /* 301 */
57                     subindex TestMaster_Index1000[] = 
58                      {
59                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1000 }
60                      };
61
62 /* index 0x1001 :   Error Register. */
63                     UNS8 TestMaster_obj1001 = 0x0;      /* 0 */
64                     subindex TestMaster_Index1001[] = 
65                      {
66                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 }
67                      };
68
69 /* index 0x1003 :   Pre-defined Error Field */
70                     UNS8 TestMaster_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
71                     UNS32 TestMaster_obj1003[] = 
72                     {
73                       0x0       /* 0 */
74                     };
75                     ODCallback_t TestMaster_Index1003_callbacks[] = 
76                      {
77                        NULL,
78                        NULL,
79                      };
80                     subindex TestMaster_Index1003[] = 
81                      {
82                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1003 },
83                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1003[0] }
84                      };
85
86 /* index 0x1005 :   SYNC COB ID. */
87                     UNS32 TestMaster_obj1005 = 0x40000080;      /* 1073741952 */
88                     ODCallback_t TestMaster_Index1005_callbacks[] = 
89                      {
90                        NULL,
91                      };
92                     subindex TestMaster_Index1005[] = 
93                      {
94                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1005 }
95                      };
96
97 /* index 0x1006 :   Communication / Cycle Period. */
98                     UNS32 TestMaster_obj1006 = 0xC350;  /* 50000 */
99                     ODCallback_t TestMaster_Index1006_callbacks[] = 
100                      {
101                        NULL,
102                      };
103                     subindex TestMaster_Index1006[] = 
104                      {
105                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1006 }
106                      };
107
108 /* index 0x1010 :   Store parameters. */
109                     UNS8 TestMaster_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/
110                     UNS32 TestMaster_obj1010_Save_All_Parameters = 0x0; /* 0 */
111                     UNS32 TestMaster_obj1010_Save_Communication_Parameters = 0x0;       /* 0 */
112                     UNS32 TestMaster_obj1010_Save_Application_Parameters = 0x0; /* 0 */
113                     UNS32 TestMaster_obj1010_Save_Manufacturer_Parameters = 0x0;        /* 0 */
114                     subindex TestMaster_Index1010[] = 
115                      {
116                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1010 },
117                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_All_Parameters },
118                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Communication_Parameters },
119                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Application_Parameters },
120                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Manufacturer_Parameters }
121                      };
122
123 /* index 0x1011 :   Restore Default Parameters. */
124                     UNS8 TestMaster_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/
125                     UNS32 TestMaster_obj1011_Restore_All_Default_Parameters = 0x0;      /* 0 */
126                     UNS32 TestMaster_obj1011_Restore_Communication_Default_Parameters = 0x0;    /* 0 */
127                     UNS32 TestMaster_obj1011_Restore_Application_Default_Parameters = 0x0;      /* 0 */
128                     UNS32 TestMaster_obj1011_Restore_Manufacturer_Default_Parameters = 0x0;     /* 0 */
129                     subindex TestMaster_Index1011[] = 
130                      {
131                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1011 },
132                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_All_Default_Parameters },
133                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Communication_Default_Parameters },
134                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Application_Default_Parameters },
135                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Manufacturer_Default_Parameters }
136                      };
137
138 /* index 0x1016 :   Consumer Heartbeat Time. */
139                     UNS8 TestMaster_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/
140                     UNS32 TestMaster_obj1016[] = 
141                     {
142                       0x205DC   /* 132572 */
143                     };
144                     subindex TestMaster_Index1016[] = 
145                      {
146                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1016 },
147                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1016[0] }
148                      };
149
150 /* index 0x1017 :   Producer Heartbeat Time */ 
151                     UNS16 TestMaster_obj1017 = 0x0;   /* 0 */
152
153 /* index 0x1018 :   Identity. */
154                     UNS8 TestMaster_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
155                     UNS32 TestMaster_obj1018_Vendor_ID = 0x0;   /* 0 */
156                     UNS32 TestMaster_obj1018_Product_Code = 0x0;        /* 0 */
157                     UNS32 TestMaster_obj1018_Revision_Number = 0x0;     /* 0 */
158                     UNS32 TestMaster_obj1018_Serial_Number = 0x0;       /* 0 */
159                     subindex TestMaster_Index1018[] = 
160                      {
161                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1018 },
162                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Vendor_ID },
163                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Product_Code },
164                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Revision_Number },
165                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Serial_Number }
166                      };
167
168 /* index 0x1280 :   Client SDO 1 Parameter. */
169                     UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/
170                     UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x602;      /* 1538 */
171                     UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x582;       /* 1410 */
172                     UNS8 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x2;    /* 2 */
173                     subindex TestMaster_Index1280[] = 
174                      {
175                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 },
176                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO },
177                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO },
178                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server }
179                      };
180
181 /* index 0x1400 :   Receive PDO 1 Parameter. */
182                     UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/
183                     UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x200;        /* 512 */
184                     UNS8 TestMaster_obj1400_Transmission_Type = 0x1;    /* 1 */
185                     UNS16 TestMaster_obj1400_Inhibit_Time = 0x0;        /* 0 */
186                     UNS8 TestMaster_obj1400_Compatibility_Entry = 0x0;  /* 0 */
187                     UNS16 TestMaster_obj1400_Event_Timer = 0x0; /* 0 */
188                     subindex TestMaster_Index1400[] = 
189                      {
190                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1400 },
191                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1400_COB_ID_used_by_PDO },
192                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Transmission_Type },
193                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Inhibit_Time },
194                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Compatibility_Entry },
195                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Event_Timer }
196                      };
197
198 /* index 0x1401 :   Receive PDO 2 Parameter. */
199                     UNS8 TestMaster_highestSubIndex_obj1401 = 5; /* number of subindex - 1*/
200                     UNS32 TestMaster_obj1401_COB_ID_used_by_PDO = 0x300;        /* 768 */
201                     UNS8 TestMaster_obj1401_Transmission_Type = 0x0;    /* 0 */
202                     UNS16 TestMaster_obj1401_Inhibit_Time = 0x0;        /* 0 */
203                     UNS8 TestMaster_obj1401_Compatibility_Entry = 0x0;  /* 0 */
204                     UNS16 TestMaster_obj1401_Event_Timer = 0x0; /* 0 */
205                     subindex TestMaster_Index1401[] = 
206                      {
207                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1401 },
208                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1401_COB_ID_used_by_PDO },
209                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Transmission_Type },
210                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Inhibit_Time },
211                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Compatibility_Entry },
212                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Event_Timer }
213                      };
214
215 /* index 0x1402 :   Receive PDO 3 Parameter. */
216                     UNS8 TestMaster_highestSubIndex_obj1402 = 5; /* number of subindex - 1*/
217                     UNS32 TestMaster_obj1402_COB_ID_used_by_PDO = 0x401;        /* 1025 */
218                     UNS8 TestMaster_obj1402_Transmission_Type = 0x0;    /* 0 */
219                     UNS16 TestMaster_obj1402_Inhibit_Time = 0x0;        /* 0 */
220                     UNS8 TestMaster_obj1402_Compatibility_Entry = 0x0;  /* 0 */
221                     UNS16 TestMaster_obj1402_Event_Timer = 0x0; /* 0 */
222                     subindex TestMaster_Index1402[] = 
223                      {
224                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1402 },
225                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1402_COB_ID_used_by_PDO },
226                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1402_Transmission_Type },
227                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1402_Inhibit_Time },
228                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1402_Compatibility_Entry },
229                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1402_Event_Timer }
230                      };
231
232 /* index 0x1403 :   Receive PDO 4 Parameter. */
233                     UNS8 TestMaster_highestSubIndex_obj1403 = 5; /* number of subindex - 1*/
234                     UNS32 TestMaster_obj1403_COB_ID_used_by_PDO = 0x482;        /* 1154 */
235                     UNS8 TestMaster_obj1403_Transmission_Type = 0x0;    /* 0 */
236                     UNS16 TestMaster_obj1403_Inhibit_Time = 0x0;        /* 0 */
237                     UNS8 TestMaster_obj1403_Compatibility_Entry = 0x0;  /* 0 */
238                     UNS16 TestMaster_obj1403_Event_Timer = 0x0; /* 0 */
239                     subindex TestMaster_Index1403[] = 
240                      {
241                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1403 },
242                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1403_COB_ID_used_by_PDO },
243                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1403_Transmission_Type },
244                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1403_Inhibit_Time },
245                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1403_Compatibility_Entry },
246                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1403_Event_Timer }
247                      };
248
249 /* index 0x1600 :   Receive PDO 1 Mapping. */
250                     UNS8 TestMaster_highestSubIndex_obj1600 = 10; /* number of subindex - 1*/
251                     UNS32 TestMaster_obj1600[] = 
252                     {
253                       0x20000001,       /* 536870913 */
254                       0x20010001,       /* 536936449 */
255                       0x20020001,       /* 537001985 */
256                       0x20030001,       /* 537067521 */
257                       0x20040001,       /* 537133057 */
258                       0x20050001,       /* 537198593 */
259                       0x20060001,       /* 537264129 */
260                       0x20070001,       /* 537329665 */
261                       0x20080008,       /* 537395208 */
262                       0x20090020        /* 537460768 */
263                     };
264                     subindex TestMaster_Index1600[] = 
265                      {
266                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 },
267                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] },
268                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] },
269                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[2] },
270                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[3] },
271                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[4] },
272                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[5] },
273                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[6] },
274                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[7] },
275                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[8] },
276                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[9] }
277                      };
278
279 /* index 0x1601 :   Receive PDO 2 Mapping. */
280                     UNS8 TestMaster_highestSubIndex_obj1601 = 1; /* number of subindex - 1*/
281                     UNS32 TestMaster_obj1601[] = 
282                     {
283                       0x200A0010        /* 537526288 */
284                     };
285                     subindex TestMaster_Index1601[] = 
286                      {
287                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1601 },
288                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[0] }
289                      };
290
291 /* index 0x1602 :   Receive PDO 3 Mapping. */
292                     UNS8 TestMaster_highestSubIndex_obj1602 = 1; /* number of subindex - 1*/
293                     UNS32 TestMaster_obj1602[] = 
294                     {
295                       0x200B0010        /* 537591824 */
296                     };
297                     subindex TestMaster_Index1602[] = 
298                      {
299                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1602 },
300                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1602[0] }
301                      };
302
303 /* index 0x1603 :   Receive PDO 4 Mapping. */
304                     UNS8 TestMaster_highestSubIndex_obj1603 = 1; /* number of subindex - 1*/
305                     UNS32 TestMaster_obj1603[] = 
306                     {
307                       0x200C0010        /* 537657360 */
308                     };
309                     subindex TestMaster_Index1603[] = 
310                      {
311                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1603 },
312                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1603[0] }
313                      };
314
315 /* index 0x1F22 :   Concise DCF. */
316                     UNS8 TestMaster_highestSubIndex_obj1F22 = 2; /* number of subindex - 1*/
317                     UNS8* TestMaster_obj1F22[] = 
318                     {
319                       "",
320                       "\x01\x00\x00\x00\x17\x10\x00\x02\x00\x00\x00\xe8\x03"
321                     };
322                     subindex TestMaster_Index1F22[] = 
323                      {
324                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1F22 },
325                        { RW, domain, 0, (void*)&TestMaster_obj1F22[0] },
326                        { RW, domain, 13, (void*)&TestMaster_obj1F22[1] }
327                      };
328
329 /* index 0x2000 :   Mapped variable MasterMap1 */
330                     subindex TestMaster_Index2000[] = 
331                      {
332                        { RW, boolean, sizeof (UNS8), (void*)&MasterMap1 }
333                      };
334
335 /* index 0x2001 :   Mapped variable MasterMap2 */
336                     subindex TestMaster_Index2001[] = 
337                      {
338                        { RW, boolean, sizeof (UNS8), (void*)&MasterMap2 }
339                      };
340
341 /* index 0x2002 :   Mapped variable MasterMap3 */
342                     subindex TestMaster_Index2002[] = 
343                      {
344                        { RW, boolean, sizeof (UNS8), (void*)&MasterMap3 }
345                      };
346
347 /* index 0x2003 :   Mapped variable MasterMap4 */
348                     subindex TestMaster_Index2003[] = 
349                      {
350                        { RW, boolean, sizeof (UNS8), (void*)&MasterMap4 }
351                      };
352
353 /* index 0x2004 :   Mapped variable MasterMap5 */
354                     subindex TestMaster_Index2004[] = 
355                      {
356                        { RW, boolean, sizeof (UNS8), (void*)&MasterMap5 }
357                      };
358
359 /* index 0x2005 :   Mapped variable MasterMap6 */
360                     subindex TestMaster_Index2005[] = 
361                      {
362                        { RW, boolean, sizeof (UNS8), (void*)&MasterMap6 }
363                      };
364
365 /* index 0x2006 :   Mapped variable MasterMap7 */
366                     subindex TestMaster_Index2006[] = 
367                      {
368                        { RW, boolean, sizeof (UNS8), (void*)&MasterMap7 }
369                      };
370
371 /* index 0x2007 :   Mapped variable MasterMap8 */
372                     subindex TestMaster_Index2007[] = 
373                      {
374                        { RW, boolean, sizeof (UNS8), (void*)&MasterMap8 }
375                      };
376
377 /* index 0x2008 :   Mapped variable MasterMap9 */
378                     subindex TestMaster_Index2008[] = 
379                      {
380                        { RW, uint8, sizeof (UNS8), (void*)&MasterMap9 }
381                      };
382
383 /* index 0x2009 :   Mapped variable MasterMap10 */
384                     subindex TestMaster_Index2009[] = 
385                      {
386                        { RW, uint32, sizeof (UNS32), (void*)&MasterMap10 }
387                      };
388
389 /* index 0x200A :   Mapped variable MasterMap11 */
390                     subindex TestMaster_Index200A[] = 
391                      {
392                        { RW, uint16, sizeof (UNS16), (void*)&MasterMap11 }
393                      };
394
395 /* index 0x200B :   Mapped variable MasterMap12 */
396                     subindex TestMaster_Index200B[] = 
397                      {
398                        { RW, int16, sizeof (INTEGER16), (void*)&MasterMap12 }
399                      };
400
401 /* index 0x200C :   Mapped variable MasterMap13 */
402                     subindex TestMaster_Index200C[] = 
403                      {
404                        { RW, int16, sizeof (INTEGER16), (void*)&MasterMap13 }
405                      };
406
407 const indextable TestMaster_objdict[] = 
408 {
409   { (subindex*)TestMaster_Index1000,sizeof(TestMaster_Index1000)/sizeof(TestMaster_Index1000[0]), 0x1000},
410   { (subindex*)TestMaster_Index1001,sizeof(TestMaster_Index1001)/sizeof(TestMaster_Index1001[0]), 0x1001},
411   { (subindex*)TestMaster_Index1005,sizeof(TestMaster_Index1005)/sizeof(TestMaster_Index1005[0]), 0x1005},
412   { (subindex*)TestMaster_Index1006,sizeof(TestMaster_Index1006)/sizeof(TestMaster_Index1006[0]), 0x1006},
413   { (subindex*)TestMaster_Index1010,sizeof(TestMaster_Index1010)/sizeof(TestMaster_Index1010[0]), 0x1010},
414   { (subindex*)TestMaster_Index1011,sizeof(TestMaster_Index1011)/sizeof(TestMaster_Index1011[0]), 0x1011},
415   { (subindex*)TestMaster_Index1016,sizeof(TestMaster_Index1016)/sizeof(TestMaster_Index1016[0]), 0x1016},
416   { (subindex*)TestMaster_Index1018,sizeof(TestMaster_Index1018)/sizeof(TestMaster_Index1018[0]), 0x1018},
417   { (subindex*)TestMaster_Index1280,sizeof(TestMaster_Index1280)/sizeof(TestMaster_Index1280[0]), 0x1280},
418   { (subindex*)TestMaster_Index1400,sizeof(TestMaster_Index1400)/sizeof(TestMaster_Index1400[0]), 0x1400},
419   { (subindex*)TestMaster_Index1401,sizeof(TestMaster_Index1401)/sizeof(TestMaster_Index1401[0]), 0x1401},
420   { (subindex*)TestMaster_Index1402,sizeof(TestMaster_Index1402)/sizeof(TestMaster_Index1402[0]), 0x1402},
421   { (subindex*)TestMaster_Index1403,sizeof(TestMaster_Index1403)/sizeof(TestMaster_Index1403[0]), 0x1403},
422   { (subindex*)TestMaster_Index1600,sizeof(TestMaster_Index1600)/sizeof(TestMaster_Index1600[0]), 0x1600},
423   { (subindex*)TestMaster_Index1601,sizeof(TestMaster_Index1601)/sizeof(TestMaster_Index1601[0]), 0x1601},
424   { (subindex*)TestMaster_Index1602,sizeof(TestMaster_Index1602)/sizeof(TestMaster_Index1602[0]), 0x1602},
425   { (subindex*)TestMaster_Index1603,sizeof(TestMaster_Index1603)/sizeof(TestMaster_Index1603[0]), 0x1603},
426   { (subindex*)TestMaster_Index1F22,sizeof(TestMaster_Index1F22)/sizeof(TestMaster_Index1F22[0]), 0x1F22},
427   { (subindex*)TestMaster_Index2000,sizeof(TestMaster_Index2000)/sizeof(TestMaster_Index2000[0]), 0x2000},
428   { (subindex*)TestMaster_Index2001,sizeof(TestMaster_Index2001)/sizeof(TestMaster_Index2001[0]), 0x2001},
429   { (subindex*)TestMaster_Index2002,sizeof(TestMaster_Index2002)/sizeof(TestMaster_Index2002[0]), 0x2002},
430   { (subindex*)TestMaster_Index2003,sizeof(TestMaster_Index2003)/sizeof(TestMaster_Index2003[0]), 0x2003},
431   { (subindex*)TestMaster_Index2004,sizeof(TestMaster_Index2004)/sizeof(TestMaster_Index2004[0]), 0x2004},
432   { (subindex*)TestMaster_Index2005,sizeof(TestMaster_Index2005)/sizeof(TestMaster_Index2005[0]), 0x2005},
433   { (subindex*)TestMaster_Index2006,sizeof(TestMaster_Index2006)/sizeof(TestMaster_Index2006[0]), 0x2006},
434   { (subindex*)TestMaster_Index2007,sizeof(TestMaster_Index2007)/sizeof(TestMaster_Index2007[0]), 0x2007},
435   { (subindex*)TestMaster_Index2008,sizeof(TestMaster_Index2008)/sizeof(TestMaster_Index2008[0]), 0x2008},
436   { (subindex*)TestMaster_Index2009,sizeof(TestMaster_Index2009)/sizeof(TestMaster_Index2009[0]), 0x2009},
437   { (subindex*)TestMaster_Index200A,sizeof(TestMaster_Index200A)/sizeof(TestMaster_Index200A[0]), 0x200A},
438   { (subindex*)TestMaster_Index200B,sizeof(TestMaster_Index200B)/sizeof(TestMaster_Index200B[0]), 0x200B},
439   { (subindex*)TestMaster_Index200C,sizeof(TestMaster_Index200C)/sizeof(TestMaster_Index200C[0]), 0x200C},
440 };
441
442 const indextable * TestMaster_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
443 {
444         int i;
445         *callbacks = NULL;
446         switch(wIndex){
447                 case 0x1000: i = 0;break;
448                 case 0x1001: i = 1;break;
449                 case 0x1005: i = 2;*callbacks = TestMaster_Index1005_callbacks; break;
450                 case 0x1006: i = 3;*callbacks = TestMaster_Index1006_callbacks; break;
451                 case 0x1010: i = 4;break;
452                 case 0x1011: i = 5;break;
453                 case 0x1016: i = 6;break;
454                 case 0x1018: i = 7;break;
455                 case 0x1280: i = 8;break;
456                 case 0x1400: i = 9;break;
457                 case 0x1401: i = 10;break;
458                 case 0x1402: i = 11;break;
459                 case 0x1403: i = 12;break;
460                 case 0x1600: i = 13;break;
461                 case 0x1601: i = 14;break;
462                 case 0x1602: i = 15;break;
463                 case 0x1603: i = 16;break;
464                 case 0x1F22: i = 17;break;
465                 case 0x2000: i = 18;break;
466                 case 0x2001: i = 19;break;
467                 case 0x2002: i = 20;break;
468                 case 0x2003: i = 21;break;
469                 case 0x2004: i = 22;break;
470                 case 0x2005: i = 23;break;
471                 case 0x2006: i = 24;break;
472                 case 0x2007: i = 25;break;
473                 case 0x2008: i = 26;break;
474                 case 0x2009: i = 27;break;
475                 case 0x200A: i = 28;break;
476                 case 0x200B: i = 29;break;
477                 case 0x200C: i = 30;break;
478                 default:
479                         *errorCode = OD_NO_SUCH_OBJECT;
480                         return NULL;
481         }
482         *errorCode = OD_SUCCESSFUL;
483         return &TestMaster_objdict[i];
484 }
485
486 /* 
487  * To count at which received SYNC a PDO must be sent.
488  * Even if no pdoTransmit are defined, at least one entry is computed
489  * for compilations issues.
490  */
491 s_PDO_status TestMaster_PDO_status[1] = {s_PDO_staus_Initializer};
492
493 quick_index TestMaster_firstIndex = {
494   0, /* SDO_SVR */
495   8, /* SDO_CLT */
496   9, /* PDO_RCV */
497   13, /* PDO_RCV_MAP */
498   0, /* PDO_TRS */
499   0 /* PDO_TRS_MAP */
500 };
501
502 quick_index TestMaster_lastIndex = {
503   0, /* SDO_SVR */
504   8, /* SDO_CLT */
505   12, /* PDO_RCV */
506   16, /* PDO_RCV_MAP */
507   0, /* PDO_TRS */
508   0 /* PDO_TRS_MAP */
509 };
510
511 UNS16 TestMaster_ObjdictSize = sizeof(TestMaster_objdict)/sizeof(TestMaster_objdict[0]); 
512
513 CO_Data TestMaster_Data = CANOPEN_NODE_DATA_INITIALIZER(TestMaster);
514