]> rtime.felk.cvut.cz Git - CanFestival-3.git/blob - examples/DS401_Slave_Gui/ObjDict.c
DS401 Slave GUI : Added command line interface, cleaned up parts of code, added EDS.
[CanFestival-3.git] / examples / DS401_Slave_Gui / ObjDict.c
1
2 /* File generated by gen_cfile.py. Should not be modified. */
3
4 #include "ObjDict.h"
5
6 /**************************************************************************/
7 /* Declaration of the mapped variables                                    */
8 /**************************************************************************/
9 UNS8 Read_Inputs_8_Bit[] =              /* Mapped at index 0x6000, subindex 0x01 - 0x01 */
10   {
11     0x0 /* 0 */
12   };
13 UNS8 Polarity_Input_8_Bit[] =           /* Mapped at index 0x6002, subindex 0x01 - 0x01 */
14   {
15     0x0 /* 0 */
16   };
17 UNS8 Write_Outputs_8_Bit[] =            /* Mapped at index 0x6200, subindex 0x01 - 0x01 */
18   {
19     0x0 /* 0 */
20   };
21 UNS8 Change_Polarity_Outputs_8_Bit[] =          /* Mapped at index 0x6202, subindex 0x01 - 0x01 */
22   {
23     0x0 /* 0 */
24   };
25 UNS8 Error_Mode_Outputs_8_Bit[] =               /* Mapped at index 0x6206, subindex 0x01 - 0x01 */
26   {
27     0x0 /* 0 */
28   };
29 UNS8 Error_Value_Outputs_8_Bit[] =              /* Mapped at index 0x6207, subindex 0x01 - 0x01 */
30   {
31     0x0 /* 0 */
32   };
33 INTEGER16 Read_Analogue_Input_16_Bit[] =                /* Mapped at index 0x6401, subindex 0x01 - 0x08 */
34   {
35     0x0,        /* 0 */
36     0x0,        /* 0 */
37     0x0,        /* 0 */
38     0x0,        /* 0 */
39     0x0,        /* 0 */
40     0x0,        /* 0 */
41     0x0,        /* 0 */
42     0x0 /* 0 */
43   };
44 INTEGER16 Write_Analogue_Output_16_Bit[] =              /* Mapped at index 0x6411, subindex 0x01 - 0x04 */
45   {
46     0x0,        /* 0 */
47     0x0,        /* 0 */
48     0x0,        /* 0 */
49     0x0 /* 0 */
50   };
51 UNS8 Analogue_Input_Global_Interrupt_Enable = 0x0;              /* Mapped at index 0x6423, subindex 0x00 */
52 UNS32 Analogue_Input_Interrupt_Delta_Unsigned[] =               /* Mapped at index 0x6426, subindex 0x01 - 0x08 */
53   {
54     0x0,        /* 0 */
55     0x0,        /* 0 */
56     0x0,        /* 0 */
57     0x0,        /* 0 */
58     0x0,        /* 0 */
59     0x0,        /* 0 */
60     0x0,        /* 0 */
61     0x0 /* 0 */
62   };
63 UNS8 Analogue_Output_Error_Mode[] =             /* Mapped at index 0x6443, subindex 0x01 - 0x04 */
64   {
65     0x0,        /* 0 */
66     0x0,        /* 0 */
67     0x0,        /* 0 */
68     0x0 /* 0 */
69   };
70 INTEGER32 Analogue_Output_Error_Value_Integer[] =               /* Mapped at index 0x6444, subindex 0x01 - 0x04 */
71   {
72     0x0,        /* 0 */
73     0x0,        /* 0 */
74     0x0,        /* 0 */
75     0x0 /* 0 */
76   };
77
78 /**************************************************************************/
79 /* Declaration of the value range types                                   */
80 /**************************************************************************/
81
82 #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */
83 UNS32 ObjDict_valueRangeTest (UNS8 typeValue, void * value)
84 {
85   switch (typeValue) {
86     case valueRange_EMC:
87       if (*(UNS8*)value > (UNS8)0) return OD_VALUE_TOO_HIGH;
88       break;
89   }
90   return 0;
91 }
92
93 /**************************************************************************/
94 /* The node id                                                            */
95 /**************************************************************************/
96 /* node_id default value.*/
97 UNS8 ObjDict_bDeviceNodeId = 0x40;
98
99 /**************************************************************************/
100 /* Array of message processing information */
101
102 const UNS8 ObjDict_iam_a_slave = 1;
103
104 TIMER_HANDLE ObjDict_heartBeatTimers[3] = {TIMER_NONE,};
105
106 /*
107 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
108
109                                OBJECT DICTIONARY
110
111 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
112 */
113
114 /* index 0x1000 :   Device Type. */
115                     UNS32 ObjDict_obj1000 = 0xF0191;    /* 983441 */
116                     subindex ObjDict_Index1000[] = 
117                      {
118                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1000 }
119                      };
120
121 /* index 0x1001 :   Error Register. */
122                     UNS8 ObjDict_obj1001 = 0x0; /* 0 */
123                     subindex ObjDict_Index1001[] = 
124                      {
125                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_obj1001 }
126                      };
127
128 /* index 0x1002 :   Manufacturer Status Register. */
129                     UNS32 ObjDict_obj1002 = 0x0;        /* 0 */
130                     subindex ObjDict_Index1002[] = 
131                      {
132                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1002 }
133                      };
134
135 /* index 0x1003 :   Pre-defined Error Field */
136                     UNS8 ObjDict_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
137                     UNS32 ObjDict_obj1003[] = 
138                     {
139                       0x0       /* 0 */
140                     };
141                     ODCallback_t ObjDict_Index1003_callbacks[] = 
142                      {
143                        NULL,
144                        NULL,
145                      };
146                     subindex ObjDict_Index1003[] = 
147                      {
148                        { RW, valueRange_EMC, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1003 },
149                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1003[0] }
150                      };
151
152 /* index 0x1005 :   SYNC COB ID. */
153                     UNS32 ObjDict_obj1005 = 0x80;       /* 128 */
154                     ODCallback_t ObjDict_Index1005_callbacks[] = 
155                      {
156                        NULL,
157                      };
158                     subindex ObjDict_Index1005[] = 
159                      {
160                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1005 }
161                      };
162
163 /* index 0x1006 :   Communication / Cycle Period */
164                     UNS32 ObjDict_obj1006 = 0x0;   /* 0 */
165
166 /* index 0x1008 :   Manufacturer Device Name. */
167                     UNS8 ObjDict_obj1008[10] = "";
168                     subindex ObjDict_Index1008[] = 
169                      {
170                        { RO, visible_string, 0, (void*)&ObjDict_obj1008 }
171                      };
172
173 /* index 0x1009 :   Manufacturer Hardware Version. */
174                     UNS8 ObjDict_obj1009[10] = "";
175                     subindex ObjDict_Index1009[] = 
176                      {
177                        { RO, visible_string, 0, (void*)&ObjDict_obj1009 }
178                      };
179
180 /* index 0x100A :   Manufacturer Software Version. */
181                     UNS8 ObjDict_obj100A[10] = "";
182                     subindex ObjDict_Index100A[] = 
183                      {
184                        { RO, visible_string, 0, (void*)&ObjDict_obj100A }
185                      };
186
187 /* index 0x100C :   Guard Time. */
188                     UNS16 ObjDict_obj100C = 0x0;        /* 0 */
189                     subindex ObjDict_Index100C[] = 
190                      {
191                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj100C }
192                      };
193
194 /* index 0x100D :   Life Time Factor. */
195                     UNS8 ObjDict_obj100D = 0x0; /* 0 */
196                     subindex ObjDict_Index100D[] = 
197                      {
198                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj100D }
199                      };
200
201 /* index 0x1010 :   Store parameters. */
202                     UNS8 ObjDict_highestSubIndex_obj1010 = 1; /* number of subindex - 1*/
203                     UNS32 ObjDict_obj1010_Save_All_Parameters = 0x0;    /* 0 */
204                     subindex ObjDict_Index1010[] = 
205                      {
206                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1010 },
207                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_All_Parameters }
208                      };
209
210 /* index 0x1011 :   Restore Default Parameters. */
211                     UNS8 ObjDict_highestSubIndex_obj1011 = 1; /* number of subindex - 1*/
212                     UNS32 ObjDict_obj1011_Restore_All_Default_Parameters = 0x0; /* 0 */
213                     subindex ObjDict_Index1011[] = 
214                      {
215                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1011 },
216                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_All_Default_Parameters }
217                      };
218
219 /* index 0x1016 :   Consumer Heartbeat Time. */
220                     UNS8 ObjDict_highestSubIndex_obj1016 = 3; /* number of subindex - 1*/
221                     UNS32 ObjDict_obj1016[] = 
222                     {
223                       0x0,      /* 0 */
224                       0x0,      /* 0 */
225                       0x0       /* 0 */
226                     };
227                     subindex ObjDict_Index1016[] = 
228                      {
229                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1016 },
230                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[0] },
231                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[1] },
232                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[2] }
233                      };
234
235 /* index 0x1017 :   Producer Heartbeat Time. */
236                     UNS16 ObjDict_obj1017 = 0x0;        /* 0 */
237                     ODCallback_t ObjDict_Index1017_callbacks[] = 
238                      {
239                        NULL,
240                      };
241                     subindex ObjDict_Index1017[] = 
242                      {
243                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1017 }
244                      };
245
246 /* index 0x1018 :   Identity. */
247                     UNS8 ObjDict_highestSubIndex_obj1018 = 3; /* number of subindex - 1*/
248                     UNS32 ObjDict_obj1018_Vendor_ID = 0x175;    /* 373 */
249                     UNS32 ObjDict_obj1018_Product_Code = 0x100000;      /* 1048576 */
250                     UNS32 ObjDict_obj1018_Revision_Number = 0x10001;    /* 65537 */
251                     subindex ObjDict_Index1018[] = 
252                      {
253                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1018 },
254                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Vendor_ID },
255                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Product_Code },
256                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Revision_Number }
257                      };
258
259 /* index 0x1020 :   Verify Configuration. */
260                     UNS8 ObjDict_highestSubIndex_obj1020 = 2; /* number of subindex - 1*/
261                     UNS32 ObjDict_obj1020_Configuration_Date = 0x0;     /* 0 */
262                     UNS32 ObjDict_obj1020_Configuration_Time = 0x0;     /* 0 */
263                     subindex ObjDict_Index1020[] = 
264                      {
265                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1020 },
266                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1020_Configuration_Date },
267                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1020_Configuration_Time }
268                      };
269
270 /* index 0x1200 :   Server SDO Parameter. */
271                     UNS8 ObjDict_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
272                     UNS32 ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x640;  /* 1600 */
273                     UNS32 ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x5C0; /* 1472 */
274                     subindex ObjDict_Index1200[] = 
275                      {
276                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1200 },
277                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO },
278                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
279                      };
280
281 /* index 0x1400 :   Receive PDO 1 Parameter. */
282                     UNS8 ObjDict_highestSubIndex_obj1400 = 2; /* number of subindex - 1*/
283                     UNS32 ObjDict_obj1400_COB_ID_used_by_PDO = 0x240;   /* 576 */
284                     UNS8 ObjDict_obj1400_Transmission_Type = 0x1;       /* 1 */
285                     subindex ObjDict_Index1400[] = 
286                      {
287                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1400 },
288                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1400_COB_ID_used_by_PDO },
289                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Transmission_Type }
290                      };
291
292 /* index 0x1401 :   Receive PDO 2 Parameter. */
293                     UNS8 ObjDict_highestSubIndex_obj1401 = 2; /* number of subindex - 1*/
294                     UNS32 ObjDict_obj1401_COB_ID_used_by_PDO = 0x340;   /* 832 */
295                     UNS8 ObjDict_obj1401_Transmission_Type = 0x1;       /* 1 */
296                     subindex ObjDict_Index1401[] = 
297                      {
298                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1401 },
299                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1401_COB_ID_used_by_PDO },
300                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1401_Transmission_Type }
301                      };
302
303 /* index 0x1402 :   Receive PDO 3 Parameter. */
304                     UNS8 ObjDict_highestSubIndex_obj1402 = 2; /* number of subindex - 1*/
305                     UNS32 ObjDict_obj1402_COB_ID_used_by_PDO = 0x80000440;      /* 2147484736 */
306                     UNS8 ObjDict_obj1402_Transmission_Type = 0x1;       /* 1 */
307                     subindex ObjDict_Index1402[] = 
308                      {
309                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1402 },
310                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1402_COB_ID_used_by_PDO },
311                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1402_Transmission_Type }
312                      };
313
314 /* index 0x1403 :   Receive PDO 4 Parameter. */
315                     UNS8 ObjDict_highestSubIndex_obj1403 = 2; /* number of subindex - 1*/
316                     UNS32 ObjDict_obj1403_COB_ID_used_by_PDO = 0x80000540;      /* 2147484992 */
317                     UNS8 ObjDict_obj1403_Transmission_Type = 0x1;       /* 1 */
318                     subindex ObjDict_Index1403[] = 
319                      {
320                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1403 },
321                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1403_COB_ID_used_by_PDO },
322                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1403_Transmission_Type }
323                      };
324
325 /* index 0x1600 :   Receive PDO 1 Mapping. */
326                     UNS8 ObjDict_highestSubIndex_obj1600 = 1; /* number of subindex - 1*/
327                     UNS32 ObjDict_obj1600[] = 
328                     {
329                       0x62000108        /* 1644167432 */
330                     };
331                     subindex ObjDict_Index1600[] = 
332                      {
333                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1600 },
334                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1600[0] }
335                      };
336
337 /* index 0x1601 :   Receive PDO 2 Mapping. */
338                     UNS8 ObjDict_highestSubIndex_obj1601 = 4; /* number of subindex - 1*/
339                     UNS32 ObjDict_obj1601[] = 
340                     {
341                       0x64110110,       /* 1678835984 */
342                       0x64110210,       /* 1678836240 */
343                       0x64110310,       /* 1678836496 */
344                       0x64110410        /* 1678836752 */
345                     };
346                     subindex ObjDict_Index1601[] = 
347                      {
348                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1601 },
349                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[0] },
350                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[1] },
351                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[2] },
352                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[3] }
353                      };
354
355 /* index 0x1800 :   Transmit PDO 1 Parameter. */
356                     UNS8 ObjDict_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/
357                     UNS32 ObjDict_obj1800_COB_ID_used_by_PDO = 0x1C0;   /* 448 */
358                     UNS8 ObjDict_obj1800_Transmission_Type = 0x1;       /* 1 */
359                     UNS16 ObjDict_obj1800_Inhibit_Time = 0x0;   /* 0 */
360                     UNS8 ObjDict_obj1800_Compatibility_Entry = 0x0;     /* 0 */
361                     UNS16 ObjDict_obj1800_Event_Timer = 0x0;    /* 0 */
362                     ODCallback_t ObjDict_Index1800_callbacks[] = 
363                      {
364                        NULL,
365                        NULL,
366                        NULL,
367                        NULL,
368                        NULL,
369                        NULL,
370                      };
371                     subindex ObjDict_Index1800[] = 
372                      {
373                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1800 },
374                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1800_COB_ID_used_by_PDO },
375                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Transmission_Type },
376                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Inhibit_Time },
377                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Compatibility_Entry },
378                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Event_Timer }
379                      };
380
381 /* index 0x1801 :   Transmit PDO 2 Parameter. */
382                     UNS8 ObjDict_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/
383                     UNS32 ObjDict_obj1801_COB_ID_used_by_PDO = 0x2C0;   /* 704 */
384                     UNS8 ObjDict_obj1801_Transmission_Type = 0x1;       /* 1 */
385                     UNS16 ObjDict_obj1801_Inhibit_Time = 0x0;   /* 0 */
386                     UNS8 ObjDict_obj1801_Compatibility_Entry = 0x0;     /* 0 */
387                     UNS16 ObjDict_obj1801_Event_Timer = 0x0;    /* 0 */
388                     ODCallback_t ObjDict_Index1801_callbacks[] = 
389                      {
390                        NULL,
391                        NULL,
392                        NULL,
393                        NULL,
394                        NULL,
395                        NULL,
396                      };
397                     subindex ObjDict_Index1801[] = 
398                      {
399                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1801 },
400                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1801_COB_ID_used_by_PDO },
401                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1801_Transmission_Type },
402                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1801_Inhibit_Time },
403                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1801_Compatibility_Entry },
404                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1801_Event_Timer }
405                      };
406
407 /* index 0x1802 :   Transmit PDO 3 Parameter. */
408                     UNS8 ObjDict_highestSubIndex_obj1802 = 5; /* number of subindex - 1*/
409                     UNS32 ObjDict_obj1802_COB_ID_used_by_PDO = 0x3C0;   /* 960 */
410                     UNS8 ObjDict_obj1802_Transmission_Type = 0x1;       /* 1 */
411                     UNS16 ObjDict_obj1802_Inhibit_Time = 0x0;   /* 0 */
412                     UNS8 ObjDict_obj1802_Compatibility_Entry = 0x0;     /* 0 */
413                     UNS16 ObjDict_obj1802_Event_Timer = 0x0;    /* 0 */
414                     ODCallback_t ObjDict_Index1802_callbacks[] = 
415                      {
416                        NULL,
417                        NULL,
418                        NULL,
419                        NULL,
420                        NULL,
421                        NULL,
422                      };
423                     subindex ObjDict_Index1802[] = 
424                      {
425                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1802 },
426                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1802_COB_ID_used_by_PDO },
427                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1802_Transmission_Type },
428                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1802_Inhibit_Time },
429                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1802_Compatibility_Entry },
430                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1802_Event_Timer }
431                      };
432
433 /* index 0x1803 :   Transmit PDO 4 Parameter. */
434                     UNS8 ObjDict_highestSubIndex_obj1803 = 5; /* number of subindex - 1*/
435                     UNS32 ObjDict_obj1803_COB_ID_used_by_PDO = 0x800004C0;      /* 2147484864 */
436                     UNS8 ObjDict_obj1803_Transmission_Type = 0x1;       /* 1 */
437                     UNS16 ObjDict_obj1803_Inhibit_Time = 0x0;   /* 0 */
438                     UNS8 ObjDict_obj1803_Compatibility_Entry = 0x0;     /* 0 */
439                     UNS16 ObjDict_obj1803_Event_Timer = 0x0;    /* 0 */
440                     ODCallback_t ObjDict_Index1803_callbacks[] = 
441                      {
442                        NULL,
443                        NULL,
444                        NULL,
445                        NULL,
446                        NULL,
447                        NULL,
448                      };
449                     subindex ObjDict_Index1803[] = 
450                      {
451                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1803 },
452                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1803_COB_ID_used_by_PDO },
453                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1803_Transmission_Type },
454                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1803_Inhibit_Time },
455                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1803_Compatibility_Entry },
456                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1803_Event_Timer }
457                      };
458
459 /* index 0x1A00 :   Transmit PDO 1 Mapping. */
460                     UNS8 ObjDict_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/
461                     UNS32 ObjDict_obj1A00[] = 
462                     {
463                       0x60000108        /* 1610613000 */
464                     };
465                     subindex ObjDict_Index1A00[] = 
466                      {
467                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A00 },
468                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[0] }
469                      };
470
471 /* index 0x1A01 :   Transmit PDO 2 Mapping. */
472                     UNS8 ObjDict_highestSubIndex_obj1A01 = 4; /* number of subindex - 1*/
473                     UNS32 ObjDict_obj1A01[] = 
474                     {
475                       0x64010110,       /* 1677787408 */
476                       0x64010210,       /* 1677787664 */
477                       0x64010310,       /* 1677787920 */
478                       0x64010410        /* 1677788176 */
479                     };
480                     subindex ObjDict_Index1A01[] = 
481                      {
482                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A01 },
483                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[0] },
484                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[1] },
485                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[2] },
486                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[3] }
487                      };
488
489 /* index 0x1A02 :   Transmit PDO 3 Mapping. */
490                     UNS8 ObjDict_highestSubIndex_obj1A02 = 4; /* number of subindex - 1*/
491                     UNS32 ObjDict_obj1A02[] = 
492                     {
493                       0x64010510,       /* 1677788432 */
494                       0x64010610,       /* 1677788688 */
495                       0x64010710,       /* 1677788944 */
496                       0x64010810        /* 1677789200 */
497                     };
498                     subindex ObjDict_Index1A02[] = 
499                      {
500                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A02 },
501                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[0] },
502                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[1] },
503                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[2] },
504                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[3] }
505                      };
506
507 /* index 0x1F50 :   Download Program Data. */
508                     UNS8 ObjDict_highestSubIndex_obj1F50 = 3; /* number of subindex - 1*/
509                     UNS8 ObjDict_obj1F50_Compatibility_Entry = 0x0;     /* 0 */
510                     UNS8 ObjDict_obj1F50_Compatibility = 0x0;   /* 0 */
511                     UNS8* ObjDict_obj1F50_Download_Program_Data_HW_Settings = "";
512                     subindex ObjDict_Index1F50[] = 
513                      {
514                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1F50 },
515                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1F50_Compatibility_Entry },
516                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1F50_Compatibility },
517                        { RW, domain, 0, (void*)&ObjDict_obj1F50_Download_Program_Data_HW_Settings }
518                      };
519
520 /* index 0x6000 :   Mapped variable Read Inputs 8 Bit */
521                     UNS8 ObjDict_highestSubIndex_obj6000 = 1; /* number of subindex - 1*/
522                     subindex ObjDict_Index6000[] = 
523                      {
524                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6000 },
525                        { RO, uint8, sizeof (UNS8), (void*)&Read_Inputs_8_Bit[0] }
526                      };
527
528 /* index 0x6002 :   Mapped variable Polarity Input 8 Bit */
529                     UNS8 ObjDict_highestSubIndex_obj6002 = 1; /* number of subindex - 1*/
530                     subindex ObjDict_Index6002[] = 
531                      {
532                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6002 },
533                        { RW, uint8, sizeof (UNS8), (void*)&Polarity_Input_8_Bit[0] }
534                      };
535
536 /* index 0x6200 :   Mapped variable Write Outputs 8 Bit */
537                     UNS8 ObjDict_highestSubIndex_obj6200 = 1; /* number of subindex - 1*/
538                     subindex ObjDict_Index6200[] = 
539                      {
540                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6200 },
541                        { RW, uint8, sizeof (UNS8), (void*)&Write_Outputs_8_Bit[0] }
542                      };
543
544 /* index 0x6202 :   Mapped variable Change Polarity Outputs 8 Bit */
545                     UNS8 ObjDict_highestSubIndex_obj6202 = 1; /* number of subindex - 1*/
546                     subindex ObjDict_Index6202[] = 
547                      {
548                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6202 },
549                        { RW, uint8, sizeof (UNS8), (void*)&Change_Polarity_Outputs_8_Bit[0] }
550                      };
551
552 /* index 0x6206 :   Mapped variable Error Mode Outputs 8 Bit */
553                     UNS8 ObjDict_highestSubIndex_obj6206 = 1; /* number of subindex - 1*/
554                     subindex ObjDict_Index6206[] = 
555                      {
556                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6206 },
557                        { RW, uint8, sizeof (UNS8), (void*)&Error_Mode_Outputs_8_Bit[0] }
558                      };
559
560 /* index 0x6207 :   Mapped variable Error Value Outputs 8 Bit */
561                     UNS8 ObjDict_highestSubIndex_obj6207 = 1; /* number of subindex - 1*/
562                     subindex ObjDict_Index6207[] = 
563                      {
564                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6207 },
565                        { RW, uint8, sizeof (UNS8), (void*)&Error_Value_Outputs_8_Bit[0] }
566                      };
567
568 /* index 0x6401 :   Mapped variable Read Analogue Input 16 Bit */
569                     UNS8 ObjDict_highestSubIndex_obj6401 = 8; /* number of subindex - 1*/
570                     subindex ObjDict_Index6401[] = 
571                      {
572                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6401 },
573                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[0] },
574                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[1] },
575                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[2] },
576                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[3] },
577                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[4] },
578                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[5] },
579                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[6] },
580                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[7] }
581                      };
582
583 /* index 0x6411 :   Mapped variable Write Analogue Output 16 Bit */
584                     UNS8 ObjDict_highestSubIndex_obj6411 = 4; /* number of subindex - 1*/
585                     subindex ObjDict_Index6411[] = 
586                      {
587                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6411 },
588                        { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[0] },
589                        { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[1] },
590                        { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[2] },
591                        { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[3] }
592                      };
593
594 /* index 0x6423 :   Mapped variable Analogue Input Global Interrupt Enable */
595                     subindex ObjDict_Index6423[] = 
596                      {
597                        { RW, boolean, sizeof (UNS8), (void*)&Analogue_Input_Global_Interrupt_Enable }
598                      };
599
600 /* index 0x6426 :   Mapped variable Analogue Input Interrupt Delta Unsigned */
601                     UNS8 ObjDict_highestSubIndex_obj6426 = 8; /* number of subindex - 1*/
602                     subindex ObjDict_Index6426[] = 
603                      {
604                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6426 },
605                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[0] },
606                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[1] },
607                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[2] },
608                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[3] },
609                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[4] },
610                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[5] },
611                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[6] },
612                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[7] }
613                      };
614
615 /* index 0x6443 :   Mapped variable Analogue Output Error Mode */
616                     UNS8 ObjDict_highestSubIndex_obj6443 = 4; /* number of subindex - 1*/
617                     subindex ObjDict_Index6443[] = 
618                      {
619                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6443 },
620                        { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[0] },
621                        { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[1] },
622                        { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[2] },
623                        { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[3] }
624                      };
625
626 /* index 0x6444 :   Mapped variable Analogue Output Error Value Integer */
627                     UNS8 ObjDict_highestSubIndex_obj6444 = 4; /* number of subindex - 1*/
628                     subindex ObjDict_Index6444[] = 
629                      {
630                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6444 },
631                        { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[0] },
632                        { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[1] },
633                        { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[2] },
634                        { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[3] }
635                      };
636
637 const indextable ObjDict_objdict[] = 
638 {
639   { (subindex*)ObjDict_Index1000,sizeof(ObjDict_Index1000)/sizeof(ObjDict_Index1000[0]), 0x1000},
640   { (subindex*)ObjDict_Index1001,sizeof(ObjDict_Index1001)/sizeof(ObjDict_Index1001[0]), 0x1001},
641   { (subindex*)ObjDict_Index1002,sizeof(ObjDict_Index1002)/sizeof(ObjDict_Index1002[0]), 0x1002},
642   { (subindex*)ObjDict_Index1005,sizeof(ObjDict_Index1005)/sizeof(ObjDict_Index1005[0]), 0x1005},
643   { (subindex*)ObjDict_Index1008,sizeof(ObjDict_Index1008)/sizeof(ObjDict_Index1008[0]), 0x1008},
644   { (subindex*)ObjDict_Index1009,sizeof(ObjDict_Index1009)/sizeof(ObjDict_Index1009[0]), 0x1009},
645   { (subindex*)ObjDict_Index100A,sizeof(ObjDict_Index100A)/sizeof(ObjDict_Index100A[0]), 0x100A},
646   { (subindex*)ObjDict_Index100C,sizeof(ObjDict_Index100C)/sizeof(ObjDict_Index100C[0]), 0x100C},
647   { (subindex*)ObjDict_Index100D,sizeof(ObjDict_Index100D)/sizeof(ObjDict_Index100D[0]), 0x100D},
648   { (subindex*)ObjDict_Index1010,sizeof(ObjDict_Index1010)/sizeof(ObjDict_Index1010[0]), 0x1010},
649   { (subindex*)ObjDict_Index1011,sizeof(ObjDict_Index1011)/sizeof(ObjDict_Index1011[0]), 0x1011},
650   { (subindex*)ObjDict_Index1016,sizeof(ObjDict_Index1016)/sizeof(ObjDict_Index1016[0]), 0x1016},
651   { (subindex*)ObjDict_Index1017,sizeof(ObjDict_Index1017)/sizeof(ObjDict_Index1017[0]), 0x1017},
652   { (subindex*)ObjDict_Index1018,sizeof(ObjDict_Index1018)/sizeof(ObjDict_Index1018[0]), 0x1018},
653   { (subindex*)ObjDict_Index1020,sizeof(ObjDict_Index1020)/sizeof(ObjDict_Index1020[0]), 0x1020},
654   { (subindex*)ObjDict_Index1200,sizeof(ObjDict_Index1200)/sizeof(ObjDict_Index1200[0]), 0x1200},
655   { (subindex*)ObjDict_Index1400,sizeof(ObjDict_Index1400)/sizeof(ObjDict_Index1400[0]), 0x1400},
656   { (subindex*)ObjDict_Index1401,sizeof(ObjDict_Index1401)/sizeof(ObjDict_Index1401[0]), 0x1401},
657   { (subindex*)ObjDict_Index1402,sizeof(ObjDict_Index1402)/sizeof(ObjDict_Index1402[0]), 0x1402},
658   { (subindex*)ObjDict_Index1403,sizeof(ObjDict_Index1403)/sizeof(ObjDict_Index1403[0]), 0x1403},
659   { (subindex*)ObjDict_Index1600,sizeof(ObjDict_Index1600)/sizeof(ObjDict_Index1600[0]), 0x1600},
660   { (subindex*)ObjDict_Index1601,sizeof(ObjDict_Index1601)/sizeof(ObjDict_Index1601[0]), 0x1601},
661   { (subindex*)ObjDict_Index1800,sizeof(ObjDict_Index1800)/sizeof(ObjDict_Index1800[0]), 0x1800},
662   { (subindex*)ObjDict_Index1801,sizeof(ObjDict_Index1801)/sizeof(ObjDict_Index1801[0]), 0x1801},
663   { (subindex*)ObjDict_Index1802,sizeof(ObjDict_Index1802)/sizeof(ObjDict_Index1802[0]), 0x1802},
664   { (subindex*)ObjDict_Index1803,sizeof(ObjDict_Index1803)/sizeof(ObjDict_Index1803[0]), 0x1803},
665   { (subindex*)ObjDict_Index1A00,sizeof(ObjDict_Index1A00)/sizeof(ObjDict_Index1A00[0]), 0x1A00},
666   { (subindex*)ObjDict_Index1A01,sizeof(ObjDict_Index1A01)/sizeof(ObjDict_Index1A01[0]), 0x1A01},
667   { (subindex*)ObjDict_Index1A02,sizeof(ObjDict_Index1A02)/sizeof(ObjDict_Index1A02[0]), 0x1A02},
668   { (subindex*)ObjDict_Index1F50,sizeof(ObjDict_Index1F50)/sizeof(ObjDict_Index1F50[0]), 0x1F50},
669   { (subindex*)ObjDict_Index6000,sizeof(ObjDict_Index6000)/sizeof(ObjDict_Index6000[0]), 0x6000},
670   { (subindex*)ObjDict_Index6002,sizeof(ObjDict_Index6002)/sizeof(ObjDict_Index6002[0]), 0x6002},
671   { (subindex*)ObjDict_Index6200,sizeof(ObjDict_Index6200)/sizeof(ObjDict_Index6200[0]), 0x6200},
672   { (subindex*)ObjDict_Index6202,sizeof(ObjDict_Index6202)/sizeof(ObjDict_Index6202[0]), 0x6202},
673   { (subindex*)ObjDict_Index6206,sizeof(ObjDict_Index6206)/sizeof(ObjDict_Index6206[0]), 0x6206},
674   { (subindex*)ObjDict_Index6207,sizeof(ObjDict_Index6207)/sizeof(ObjDict_Index6207[0]), 0x6207},
675   { (subindex*)ObjDict_Index6401,sizeof(ObjDict_Index6401)/sizeof(ObjDict_Index6401[0]), 0x6401},
676   { (subindex*)ObjDict_Index6411,sizeof(ObjDict_Index6411)/sizeof(ObjDict_Index6411[0]), 0x6411},
677   { (subindex*)ObjDict_Index6423,sizeof(ObjDict_Index6423)/sizeof(ObjDict_Index6423[0]), 0x6423},
678   { (subindex*)ObjDict_Index6426,sizeof(ObjDict_Index6426)/sizeof(ObjDict_Index6426[0]), 0x6426},
679   { (subindex*)ObjDict_Index6443,sizeof(ObjDict_Index6443)/sizeof(ObjDict_Index6443[0]), 0x6443},
680   { (subindex*)ObjDict_Index6444,sizeof(ObjDict_Index6444)/sizeof(ObjDict_Index6444[0]), 0x6444},
681 };
682
683 const indextable * ObjDict_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
684 {
685         int i;
686         *callbacks = NULL;
687         switch(wIndex){
688                 case 0x1000: i = 0;break;
689                 case 0x1001: i = 1;break;
690                 case 0x1002: i = 2;break;
691                 case 0x1005: i = 3;*callbacks = ObjDict_Index1005_callbacks; break;
692                 case 0x1008: i = 4;break;
693                 case 0x1009: i = 5;break;
694                 case 0x100A: i = 6;break;
695                 case 0x100C: i = 7;break;
696                 case 0x100D: i = 8;break;
697                 case 0x1010: i = 9;break;
698                 case 0x1011: i = 10;break;
699                 case 0x1016: i = 11;break;
700                 case 0x1017: i = 12;*callbacks = ObjDict_Index1017_callbacks; break;
701                 case 0x1018: i = 13;break;
702                 case 0x1020: i = 14;break;
703                 case 0x1200: i = 15;break;
704                 case 0x1400: i = 16;break;
705                 case 0x1401: i = 17;break;
706                 case 0x1402: i = 18;break;
707                 case 0x1403: i = 19;break;
708                 case 0x1600: i = 20;break;
709                 case 0x1601: i = 21;break;
710                 case 0x1800: i = 22;*callbacks = ObjDict_Index1800_callbacks; break;
711                 case 0x1801: i = 23;*callbacks = ObjDict_Index1801_callbacks; break;
712                 case 0x1802: i = 24;*callbacks = ObjDict_Index1802_callbacks; break;
713                 case 0x1803: i = 25;*callbacks = ObjDict_Index1803_callbacks; break;
714                 case 0x1A00: i = 26;break;
715                 case 0x1A01: i = 27;break;
716                 case 0x1A02: i = 28;break;
717                 case 0x1F50: i = 29;break;
718                 case 0x6000: i = 30;break;
719                 case 0x6002: i = 31;break;
720                 case 0x6200: i = 32;break;
721                 case 0x6202: i = 33;break;
722                 case 0x6206: i = 34;break;
723                 case 0x6207: i = 35;break;
724                 case 0x6401: i = 36;break;
725                 case 0x6411: i = 37;break;
726                 case 0x6423: i = 38;break;
727                 case 0x6426: i = 39;break;
728                 case 0x6443: i = 40;break;
729                 case 0x6444: i = 41;break;
730                 default:
731                         *errorCode = OD_NO_SUCH_OBJECT;
732                         return NULL;
733         }
734         *errorCode = OD_SUCCESSFUL;
735         return &ObjDict_objdict[i];
736 }
737
738 /* 
739  * To count at which received SYNC a PDO must be sent.
740  * Even if no pdoTransmit are defined, at least one entry is computed
741  * for compilations issues.
742  */
743 s_PDO_status ObjDict_PDO_status[4] = {s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer};
744
745 quick_index ObjDict_firstIndex = {
746   15, /* SDO_SVR */
747   0, /* SDO_CLT */
748   16, /* PDO_RCV */
749   20, /* PDO_RCV_MAP */
750   22, /* PDO_TRS */
751   26 /* PDO_TRS_MAP */
752 };
753
754 quick_index ObjDict_lastIndex = {
755   15, /* SDO_SVR */
756   0, /* SDO_CLT */
757   19, /* PDO_RCV */
758   21, /* PDO_RCV_MAP */
759   25, /* PDO_TRS */
760   28 /* PDO_TRS_MAP */
761 };
762
763 UNS16 ObjDict_ObjdictSize = sizeof(ObjDict_objdict)/sizeof(ObjDict_objdict[0]); 
764
765 CO_Data ObjDict_Data = CANOPEN_NODE_DATA_INITIALIZER(ObjDict);
766