413
|
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 Filter_Constant_Input_8_Bit[] = /* Mapped at index 0x6003, subindex 0x01 - 0x01 */
|
|
18 |
{
|
|
19 |
0x0 /* 0 */
|
|
20 |
};
|
|
21 |
UNS8 Global_Interrupt_Enable_Digital = 0x1; /* Mapped at index 0x6005, subindex 0x00 */
|
|
22 |
UNS8 Interrupt_Mask_Any_Change_8_Bit[] = /* Mapped at index 0x6006, subindex 0x01 - 0x01 */
|
|
23 |
{
|
|
24 |
0xFF /* 255 */
|
|
25 |
};
|
|
26 |
UNS8 Interrupt_Mask_Low_to_High_8_Bit[] = /* Mapped at index 0x6007, subindex 0x01 - 0x01 */
|
|
27 |
{
|
|
28 |
0x0 /* 0 */
|
|
29 |
};
|
|
30 |
UNS8 Interrupt_Mask_High_to_Low_8_Bit[] = /* Mapped at index 0x6008, subindex 0x01 - 0x01 */
|
|
31 |
{
|
|
32 |
0x0 /* 0 */
|
|
33 |
};
|
|
34 |
UNS8 Write_Outputs_8_Bit[] = /* Mapped at index 0x6200, subindex 0x01 - 0x01 */
|
|
35 |
{
|
|
36 |
0x0 /* 0 */
|
|
37 |
};
|
|
38 |
UNS8 Change_Polarity_Outputs_8_Bit[] = /* Mapped at index 0x6202, subindex 0x01 - 0x01 */
|
|
39 |
{
|
|
40 |
0x0 /* 0 */
|
|
41 |
};
|
|
42 |
UNS8 Error_Mode_Outputs_8_Bit[] = /* Mapped at index 0x6206, subindex 0x01 - 0x01 */
|
|
43 |
{
|
|
44 |
0x0 /* 0 */
|
|
45 |
};
|
|
46 |
UNS8 Error_Value_Outputs_8_Bit[] = /* Mapped at index 0x6207, subindex 0x01 - 0x01 */
|
|
47 |
{
|
|
48 |
0x0 /* 0 */
|
|
49 |
};
|
|
50 |
|
|
51 |
/**************************************************************************/
|
|
52 |
/* Declaration of the value range types */
|
|
53 |
/**************************************************************************/
|
|
54 |
|
|
55 |
#define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */
|
|
56 |
UNS32 ObjDict_valueRangeTest (UNS8 typeValue, void * value)
|
|
57 |
{
|
|
58 |
switch (typeValue) {
|
|
59 |
case valueRange_EMC:
|
|
60 |
if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED;
|
|
61 |
break;
|
|
62 |
}
|
|
63 |
return 0;
|
|
64 |
}
|
|
65 |
|
|
66 |
/**************************************************************************/
|
|
67 |
/* The node id */
|
|
68 |
/**************************************************************************/
|
|
69 |
/* node_id default value.*/
|
|
70 |
UNS8 ObjDict_bDeviceNodeId = 0x00;
|
|
71 |
|
|
72 |
/**************************************************************************/
|
|
73 |
/* Array of message processing information */
|
|
74 |
|
|
75 |
const UNS8 ObjDict_iam_a_slave = 1;
|
|
76 |
|
|
77 |
TIMER_HANDLE ObjDict_heartBeatTimers[1] = {TIMER_NONE,};
|
|
78 |
|
|
79 |
/*
|
|
80 |
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
81 |
|
|
82 |
OBJECT DICTIONARY
|
|
83 |
|
|
84 |
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
85 |
*/
|
|
86 |
|
|
87 |
/* index 0x1000 : Device Type. */
|
|
88 |
UNS32 ObjDict_obj1000 = 0x30191; /* 197009 */
|
|
89 |
subindex ObjDict_Index1000[] =
|
|
90 |
{
|
|
91 |
{ RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1000 }
|
|
92 |
};
|
|
93 |
|
|
94 |
/* index 0x1001 : Error Register. */
|
|
95 |
UNS8 ObjDict_obj1001 = 0x0; /* 0 */
|
|
96 |
subindex ObjDict_Index1001[] =
|
|
97 |
{
|
|
98 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_obj1001 }
|
|
99 |
};
|
|
100 |
|
|
101 |
/* index 0x1003 : Pre-defined Error Field. */
|
|
102 |
UNS8 ObjDict_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
|
|
103 |
UNS32 ObjDict_obj1003[] =
|
|
104 |
{
|
|
105 |
0x0 /* 0 */
|
|
106 |
};
|
|
107 |
ODCallback_t ObjDict_Index1003_callbacks[] =
|
|
108 |
{
|
|
109 |
NULL,
|
|
110 |
NULL,
|
|
111 |
};
|
|
112 |
subindex ObjDict_Index1003[] =
|
|
113 |
{
|
|
114 |
{ RW, valueRange_EMC, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1003 },
|
|
115 |
{ RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1003[0] }
|
|
116 |
};
|
|
117 |
|
|
118 |
/* index 0x1005 : SYNC COB ID. */
|
|
119 |
UNS32 ObjDict_obj1005 = 0x80; /* 128 */
|
|
120 |
ODCallback_t ObjDict_Index1005_callbacks[] =
|
|
121 |
{
|
|
122 |
NULL,
|
|
123 |
};
|
|
124 |
subindex ObjDict_Index1005[] =
|
|
125 |
{
|
|
126 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1005 }
|
|
127 |
};
|
|
128 |
|
|
129 |
/* index 0x1006 : Communication / Cycle Period */
|
|
130 |
UNS32 ObjDict_obj1006 = 0x0; /* 0 */
|
|
131 |
|
|
132 |
/* index 0x1008 : Manufacturer Device Name. */
|
|
133 |
UNS8 ObjDict_obj1008[10] = "";
|
|
134 |
subindex ObjDict_Index1008[] =
|
|
135 |
{
|
|
136 |
{ RO, visible_string, 0, (void*)&ObjDict_obj1008 }
|
|
137 |
};
|
|
138 |
|
|
139 |
/* index 0x1009 : Manufacturer Hardware Version. */
|
|
140 |
UNS8 ObjDict_obj1009[10] = "";
|
|
141 |
subindex ObjDict_Index1009[] =
|
|
142 |
{
|
|
143 |
{ RO, visible_string, 0, (void*)&ObjDict_obj1009 }
|
|
144 |
};
|
|
145 |
|
|
146 |
/* index 0x100A : Manufacturer Software Version. */
|
|
147 |
UNS8 ObjDict_obj100A[10] = "";
|
|
148 |
subindex ObjDict_Index100A[] =
|
|
149 |
{
|
|
150 |
{ RO, visible_string, 0, (void*)&ObjDict_obj100A }
|
|
151 |
};
|
|
152 |
|
|
153 |
/* index 0x1010 : Store parameters. */
|
|
154 |
UNS8 ObjDict_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/
|
|
155 |
UNS32 ObjDict_obj1010_Save_All_Parameters = 0x0; /* 0 */
|
|
156 |
UNS32 ObjDict_obj1010_Save_Communication_Parameters = 0x0; /* 0 */
|
|
157 |
UNS32 ObjDict_obj1010_Save_Application_Parameters = 0x0; /* 0 */
|
|
158 |
UNS32 ObjDict_obj1010_Save_Manufacturer_Parameters = 0x0; /* 0 */
|
|
159 |
subindex ObjDict_Index1010[] =
|
|
160 |
{
|
|
161 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1010 },
|
|
162 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_All_Parameters },
|
|
163 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Communication_Parameters },
|
|
164 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Application_Parameters },
|
|
165 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Manufacturer_Parameters }
|
|
166 |
};
|
|
167 |
|
|
168 |
/* index 0x1011 : Restore Default Parameters. */
|
|
169 |
UNS8 ObjDict_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/
|
|
170 |
UNS32 ObjDict_obj1011_Restore_All_Default_Parameters = 0x0; /* 0 */
|
|
171 |
UNS32 ObjDict_obj1011_Restore_Communication_Default_Parameters = 0x0; /* 0 */
|
|
172 |
UNS32 ObjDict_obj1011_Restore_Application_Default_Parameters = 0x0; /* 0 */
|
|
173 |
UNS32 ObjDict_obj1011_Restore_Manufacturer_Default_Parameters = 0x0; /* 0 */
|
|
174 |
subindex ObjDict_Index1011[] =
|
|
175 |
{
|
|
176 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1011 },
|
|
177 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_All_Default_Parameters },
|
|
178 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Communication_Default_Parameters },
|
|
179 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Application_Default_Parameters },
|
|
180 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Manufacturer_Default_Parameters }
|
|
181 |
};
|
|
182 |
|
|
183 |
/* index 0x1014 : Emergency COB ID. */
|
|
184 |
UNS32 ObjDict_obj1014 = 0x80; /* 128 */
|
|
185 |
subindex ObjDict_Index1014[] =
|
|
186 |
{
|
|
187 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1014 }
|
|
188 |
};
|
|
189 |
|
|
190 |
/* index 0x1016 : Consumer Heartbeat Time. */
|
|
191 |
UNS8 ObjDict_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/
|
|
192 |
UNS32 ObjDict_obj1016[] =
|
|
193 |
{
|
|
194 |
0x0 /* 0 */
|
|
195 |
};
|
|
196 |
subindex ObjDict_Index1016[] =
|
|
197 |
{
|
|
198 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1016 },
|
|
199 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[0] }
|
|
200 |
};
|
|
201 |
|
|
202 |
/* index 0x1017 : Producer Heartbeat Time. */
|
|
203 |
UNS16 ObjDict_obj1017 = 0x2710; /* 10000 */
|
|
204 |
ODCallback_t ObjDict_Index1017_callbacks[] =
|
|
205 |
{
|
|
206 |
NULL,
|
|
207 |
};
|
|
208 |
subindex ObjDict_Index1017[] =
|
|
209 |
{
|
|
210 |
{ RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1017 }
|
|
211 |
};
|
|
212 |
|
|
213 |
/* index 0x1018 : Identity. */
|
|
214 |
UNS8 ObjDict_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
|
|
215 |
UNS32 ObjDict_obj1018_Vendor_ID = 0x0; /* 0 */
|
|
216 |
UNS32 ObjDict_obj1018_Product_Code = 0x0; /* 0 */
|
|
217 |
UNS32 ObjDict_obj1018_Revision_Number = 0x0; /* 0 */
|
|
218 |
UNS32 ObjDict_obj1018_Serial_Number = 0x0; /* 0 */
|
|
219 |
subindex ObjDict_Index1018[] =
|
|
220 |
{
|
|
221 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1018 },
|
|
222 |
{ RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Vendor_ID },
|
|
223 |
{ RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Product_Code },
|
|
224 |
{ RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Revision_Number },
|
|
225 |
{ RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Serial_Number }
|
|
226 |
};
|
|
227 |
|
|
228 |
/* index 0x1200 : Server SDO Parameter. */
|
|
229 |
UNS8 ObjDict_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
|
|
230 |
UNS32 ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x600; /* 1536 */
|
|
231 |
UNS32 ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x580; /* 1408 */
|
|
232 |
subindex ObjDict_Index1200[] =
|
|
233 |
{
|
|
234 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1200 },
|
|
235 |
{ RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO },
|
|
236 |
{ RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
|
|
237 |
};
|
|
238 |
|
|
239 |
/* index 0x1400 : Receive PDO 1 Parameter. */
|
|
240 |
UNS8 ObjDict_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/
|
|
241 |
UNS32 ObjDict_obj1400_COB_ID_used_by_PDO = 0x200; /* 512 */
|
|
242 |
UNS8 ObjDict_obj1400_Transmission_Type = 0x1; /* 1 */
|
|
243 |
UNS16 ObjDict_obj1400_Inhibit_Time = 0x0; /* 0 */
|
|
244 |
UNS8 ObjDict_obj1400_Compatibility_Entry = 0x0; /* 0 */
|
|
245 |
UNS16 ObjDict_obj1400_Event_Timer = 0x0; /* 0 */
|
|
246 |
subindex ObjDict_Index1400[] =
|
|
247 |
{
|
|
248 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1400 },
|
|
249 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1400_COB_ID_used_by_PDO },
|
|
250 |
{ RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Transmission_Type },
|
|
251 |
{ RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1400_Inhibit_Time },
|
|
252 |
{ RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Compatibility_Entry },
|
|
253 |
{ RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1400_Event_Timer }
|
|
254 |
};
|
|
255 |
|
|
256 |
/* index 0x1600 : Receive PDO 1 Mapping. */
|
|
257 |
UNS8 ObjDict_highestSubIndex_obj1600 = 1; /* number of subindex - 1*/
|
|
258 |
UNS32 ObjDict_obj1600[] =
|
|
259 |
{
|
|
260 |
0x62000108 /* 1644167432 */
|
|
261 |
};
|
|
262 |
subindex ObjDict_Index1600[] =
|
|
263 |
{
|
|
264 |
{ RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1600 },
|
|
265 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1600[0] }
|
|
266 |
};
|
|
267 |
|
|
268 |
/* index 0x1800 : Transmit PDO 1 Parameter. */
|
|
269 |
UNS8 ObjDict_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/
|
|
270 |
UNS32 ObjDict_obj1800_COB_ID_used_by_PDO = 0x180; /* 384 */
|
|
271 |
UNS8 ObjDict_obj1800_Transmission_Type = 0xFF; /* 255 */
|
|
272 |
UNS16 ObjDict_obj1800_Inhibit_Time = 0x0; /* 0 */
|
|
273 |
UNS8 ObjDict_obj1800_Compatibility_Entry = 0x0; /* 0 */
|
|
274 |
UNS16 ObjDict_obj1800_Event_Timer = 0x0; /* 0 */
|
|
275 |
ODCallback_t ObjDict_Index1800_callbacks[] =
|
|
276 |
{
|
|
277 |
NULL,
|
|
278 |
NULL,
|
|
279 |
NULL,
|
|
280 |
NULL,
|
|
281 |
NULL,
|
|
282 |
NULL,
|
|
283 |
};
|
|
284 |
subindex ObjDict_Index1800[] =
|
|
285 |
{
|
|
286 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1800 },
|
|
287 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1800_COB_ID_used_by_PDO },
|
|
288 |
{ RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Transmission_Type },
|
|
289 |
{ RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Inhibit_Time },
|
|
290 |
{ RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Compatibility_Entry },
|
|
291 |
{ RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Event_Timer }
|
|
292 |
};
|
|
293 |
|
|
294 |
/* index 0x1A00 : Transmit PDO 1 Mapping. */
|
|
295 |
UNS8 ObjDict_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/
|
|
296 |
UNS32 ObjDict_obj1A00[] =
|
|
297 |
{
|
|
298 |
0x60000108 /* 1610613000 */
|
|
299 |
};
|
|
300 |
subindex ObjDict_Index1A00[] =
|
|
301 |
{
|
|
302 |
{ RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A00 },
|
|
303 |
{ RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[0] }
|
|
304 |
};
|
|
305 |
|
|
306 |
/* index 0x6000 : Mapped variable Read Inputs 8 Bit */
|
|
307 |
UNS8 ObjDict_highestSubIndex_obj6000 = 1; /* number of subindex - 1*/
|
|
308 |
subindex ObjDict_Index6000[] =
|
|
309 |
{
|
|
310 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6000 },
|
|
311 |
{ RO, uint8, sizeof (UNS8), (void*)&Read_Inputs_8_Bit[0] }
|
|
312 |
};
|
|
313 |
|
|
314 |
/* index 0x6002 : Mapped variable Polarity Input 8 Bit */
|
|
315 |
UNS8 ObjDict_highestSubIndex_obj6002 = 1; /* number of subindex - 1*/
|
|
316 |
subindex ObjDict_Index6002[] =
|
|
317 |
{
|
|
318 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6002 },
|
|
319 |
{ RW, uint8, sizeof (UNS8), (void*)&Polarity_Input_8_Bit[0] }
|
|
320 |
};
|
|
321 |
|
|
322 |
/* index 0x6003 : Mapped variable Filter Constant Input 8 Bit */
|
|
323 |
UNS8 ObjDict_highestSubIndex_obj6003 = 1; /* number of subindex - 1*/
|
|
324 |
subindex ObjDict_Index6003[] =
|
|
325 |
{
|
|
326 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6003 },
|
|
327 |
{ RW, uint8, sizeof (UNS8), (void*)&Filter_Constant_Input_8_Bit[0] }
|
|
328 |
};
|
|
329 |
|
|
330 |
/* index 0x6005 : Mapped variable Global Interrupt Enable Digital */
|
|
331 |
subindex ObjDict_Index6005[] =
|
|
332 |
{
|
|
333 |
{ RW, boolean, sizeof (UNS8), (void*)&Global_Interrupt_Enable_Digital }
|
|
334 |
};
|
|
335 |
|
|
336 |
/* index 0x6006 : Mapped variable Interrupt Mask Any Change 8 Bit */
|
|
337 |
UNS8 ObjDict_highestSubIndex_obj6006 = 1; /* number of subindex - 1*/
|
|
338 |
subindex ObjDict_Index6006[] =
|
|
339 |
{
|
|
340 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6006 },
|
|
341 |
{ RW, uint8, sizeof (UNS8), (void*)&Interrupt_Mask_Any_Change_8_Bit[0] }
|
|
342 |
};
|
|
343 |
|
|
344 |
/* index 0x6007 : Mapped variable Interrupt Mask Low to High 8 Bit */
|
|
345 |
UNS8 ObjDict_highestSubIndex_obj6007 = 1; /* number of subindex - 1*/
|
|
346 |
subindex ObjDict_Index6007[] =
|
|
347 |
{
|
|
348 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6007 },
|
|
349 |
{ RW, uint8, sizeof (UNS8), (void*)&Interrupt_Mask_Low_to_High_8_Bit[0] }
|
|
350 |
};
|
|
351 |
|
|
352 |
/* index 0x6008 : Mapped variable Interrupt Mask High to Low 8 Bit */
|
|
353 |
UNS8 ObjDict_highestSubIndex_obj6008 = 1; /* number of subindex - 1*/
|
|
354 |
subindex ObjDict_Index6008[] =
|
|
355 |
{
|
|
356 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6008 },
|
|
357 |
{ RW, uint8, sizeof (UNS8), (void*)&Interrupt_Mask_High_to_Low_8_Bit[0] }
|
|
358 |
};
|
|
359 |
|
|
360 |
/* index 0x6200 : Mapped variable Write Outputs 8 Bit */
|
|
361 |
UNS8 ObjDict_highestSubIndex_obj6200 = 1; /* number of subindex - 1*/
|
|
362 |
subindex ObjDict_Index6200[] =
|
|
363 |
{
|
|
364 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6200 },
|
|
365 |
{ RW, uint8, sizeof (UNS8), (void*)&Write_Outputs_8_Bit[0] }
|
|
366 |
};
|
|
367 |
|
|
368 |
/* index 0x6202 : Mapped variable Change Polarity Outputs 8 Bit */
|
|
369 |
UNS8 ObjDict_highestSubIndex_obj6202 = 1; /* number of subindex - 1*/
|
|
370 |
subindex ObjDict_Index6202[] =
|
|
371 |
{
|
|
372 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6202 },
|
|
373 |
{ RW, uint8, sizeof (UNS8), (void*)&Change_Polarity_Outputs_8_Bit[0] }
|
|
374 |
};
|
|
375 |
|
|
376 |
/* index 0x6206 : Mapped variable Error Mode Outputs 8 Bit */
|
|
377 |
UNS8 ObjDict_highestSubIndex_obj6206 = 1; /* number of subindex - 1*/
|
|
378 |
subindex ObjDict_Index6206[] =
|
|
379 |
{
|
|
380 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6206 },
|
|
381 |
{ RW, uint8, sizeof (UNS8), (void*)&Error_Mode_Outputs_8_Bit[0] }
|
|
382 |
};
|
|
383 |
|
|
384 |
/* index 0x6207 : Mapped variable Error Value Outputs 8 Bit */
|
|
385 |
UNS8 ObjDict_highestSubIndex_obj6207 = 1; /* number of subindex - 1*/
|
|
386 |
subindex ObjDict_Index6207[] =
|
|
387 |
{
|
|
388 |
{ RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6207 },
|
|
389 |
{ RW, uint8, sizeof (UNS8), (void*)&Error_Value_Outputs_8_Bit[0] }
|
|
390 |
};
|
|
391 |
|
|
392 |
const indextable ObjDict_objdict[] =
|
|
393 |
{
|
|
394 |
{ (subindex*)ObjDict_Index1000,sizeof(ObjDict_Index1000)/sizeof(ObjDict_Index1000[0]), 0x1000},
|
|
395 |
{ (subindex*)ObjDict_Index1001,sizeof(ObjDict_Index1001)/sizeof(ObjDict_Index1001[0]), 0x1001},
|
|
396 |
{ (subindex*)ObjDict_Index1003,sizeof(ObjDict_Index1003)/sizeof(ObjDict_Index1003[0]), 0x1003},
|
|
397 |
{ (subindex*)ObjDict_Index1005,sizeof(ObjDict_Index1005)/sizeof(ObjDict_Index1005[0]), 0x1005},
|
|
398 |
{ (subindex*)ObjDict_Index1008,sizeof(ObjDict_Index1008)/sizeof(ObjDict_Index1008[0]), 0x1008},
|
|
399 |
{ (subindex*)ObjDict_Index1009,sizeof(ObjDict_Index1009)/sizeof(ObjDict_Index1009[0]), 0x1009},
|
|
400 |
{ (subindex*)ObjDict_Index100A,sizeof(ObjDict_Index100A)/sizeof(ObjDict_Index100A[0]), 0x100A},
|
|
401 |
{ (subindex*)ObjDict_Index1010,sizeof(ObjDict_Index1010)/sizeof(ObjDict_Index1010[0]), 0x1010},
|
|
402 |
{ (subindex*)ObjDict_Index1011,sizeof(ObjDict_Index1011)/sizeof(ObjDict_Index1011[0]), 0x1011},
|
|
403 |
{ (subindex*)ObjDict_Index1014,sizeof(ObjDict_Index1014)/sizeof(ObjDict_Index1014[0]), 0x1014},
|
|
404 |
{ (subindex*)ObjDict_Index1016,sizeof(ObjDict_Index1016)/sizeof(ObjDict_Index1016[0]), 0x1016},
|
|
405 |
{ (subindex*)ObjDict_Index1017,sizeof(ObjDict_Index1017)/sizeof(ObjDict_Index1017[0]), 0x1017},
|
|
406 |
{ (subindex*)ObjDict_Index1018,sizeof(ObjDict_Index1018)/sizeof(ObjDict_Index1018[0]), 0x1018},
|
|
407 |
{ (subindex*)ObjDict_Index1200,sizeof(ObjDict_Index1200)/sizeof(ObjDict_Index1200[0]), 0x1200},
|
|
408 |
{ (subindex*)ObjDict_Index1400,sizeof(ObjDict_Index1400)/sizeof(ObjDict_Index1400[0]), 0x1400},
|
|
409 |
{ (subindex*)ObjDict_Index1600,sizeof(ObjDict_Index1600)/sizeof(ObjDict_Index1600[0]), 0x1600},
|
|
410 |
{ (subindex*)ObjDict_Index1800,sizeof(ObjDict_Index1800)/sizeof(ObjDict_Index1800[0]), 0x1800},
|
|
411 |
{ (subindex*)ObjDict_Index1A00,sizeof(ObjDict_Index1A00)/sizeof(ObjDict_Index1A00[0]), 0x1A00},
|
|
412 |
{ (subindex*)ObjDict_Index6000,sizeof(ObjDict_Index6000)/sizeof(ObjDict_Index6000[0]), 0x6000},
|
|
413 |
{ (subindex*)ObjDict_Index6002,sizeof(ObjDict_Index6002)/sizeof(ObjDict_Index6002[0]), 0x6002},
|
|
414 |
{ (subindex*)ObjDict_Index6003,sizeof(ObjDict_Index6003)/sizeof(ObjDict_Index6003[0]), 0x6003},
|
|
415 |
{ (subindex*)ObjDict_Index6005,sizeof(ObjDict_Index6005)/sizeof(ObjDict_Index6005[0]), 0x6005},
|
|
416 |
{ (subindex*)ObjDict_Index6006,sizeof(ObjDict_Index6006)/sizeof(ObjDict_Index6006[0]), 0x6006},
|
|
417 |
{ (subindex*)ObjDict_Index6007,sizeof(ObjDict_Index6007)/sizeof(ObjDict_Index6007[0]), 0x6007},
|
|
418 |
{ (subindex*)ObjDict_Index6008,sizeof(ObjDict_Index6008)/sizeof(ObjDict_Index6008[0]), 0x6008},
|
|
419 |
{ (subindex*)ObjDict_Index6200,sizeof(ObjDict_Index6200)/sizeof(ObjDict_Index6200[0]), 0x6200},
|
|
420 |
{ (subindex*)ObjDict_Index6202,sizeof(ObjDict_Index6202)/sizeof(ObjDict_Index6202[0]), 0x6202},
|
|
421 |
{ (subindex*)ObjDict_Index6206,sizeof(ObjDict_Index6206)/sizeof(ObjDict_Index6206[0]), 0x6206},
|
|
422 |
{ (subindex*)ObjDict_Index6207,sizeof(ObjDict_Index6207)/sizeof(ObjDict_Index6207[0]), 0x6207},
|
|
423 |
};
|
|
424 |
|
|
425 |
const indextable * ObjDict_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
|
|
426 |
{
|
|
427 |
int i;
|
|
428 |
*callbacks = NULL;
|
|
429 |
switch(wIndex){
|
|
430 |
case 0x1000: i = 0;break;
|
|
431 |
case 0x1001: i = 1;break;
|
|
432 |
case 0x1003: i = 2;*callbacks = ObjDict_Index1003_callbacks; break;
|
|
433 |
case 0x1005: i = 3;*callbacks = ObjDict_Index1005_callbacks; break;
|
|
434 |
case 0x1008: i = 4;break;
|
|
435 |
case 0x1009: i = 5;break;
|
|
436 |
case 0x100A: i = 6;break;
|
|
437 |
case 0x1010: i = 7;break;
|
|
438 |
case 0x1011: i = 8;break;
|
|
439 |
case 0x1014: i = 9;break;
|
|
440 |
case 0x1016: i = 10;break;
|
|
441 |
case 0x1017: i = 11;*callbacks = ObjDict_Index1017_callbacks; break;
|
|
442 |
case 0x1018: i = 12;break;
|
|
443 |
case 0x1200: i = 13;break;
|
|
444 |
case 0x1400: i = 14;break;
|
|
445 |
case 0x1600: i = 15;break;
|
|
446 |
case 0x1800: i = 16;*callbacks = ObjDict_Index1800_callbacks; break;
|
|
447 |
case 0x1A00: i = 17;break;
|
|
448 |
case 0x6000: i = 18;break;
|
|
449 |
case 0x6002: i = 19;break;
|
|
450 |
case 0x6003: i = 20;break;
|
|
451 |
case 0x6005: i = 21;break;
|
|
452 |
case 0x6006: i = 22;break;
|
|
453 |
case 0x6007: i = 23;break;
|
|
454 |
case 0x6008: i = 24;break;
|
|
455 |
case 0x6200: i = 25;break;
|
|
456 |
case 0x6202: i = 26;break;
|
|
457 |
case 0x6206: i = 27;break;
|
|
458 |
case 0x6207: i = 28;break;
|
|
459 |
default:
|
|
460 |
*errorCode = OD_NO_SUCH_OBJECT;
|
|
461 |
return NULL;
|
|
462 |
}
|
|
463 |
*errorCode = OD_SUCCESSFUL;
|
|
464 |
return &ObjDict_objdict[i];
|
|
465 |
}
|
|
466 |
|
|
467 |
/*
|
|
468 |
* To count at which received SYNC a PDO must be sent.
|
|
469 |
* Even if no pdoTransmit are defined, at least one entry is computed
|
|
470 |
* for compilations issues.
|
|
471 |
*/
|
|
472 |
s_PDO_status ObjDict_PDO_status[1] = {s_PDO_status_Initializer};
|
|
473 |
|
|
474 |
quick_index ObjDict_firstIndex = {
|
|
475 |
13, /* SDO_SVR */
|
|
476 |
0, /* SDO_CLT */
|
|
477 |
14, /* PDO_RCV */
|
|
478 |
15, /* PDO_RCV_MAP */
|
|
479 |
16, /* PDO_TRS */
|
|
480 |
17 /* PDO_TRS_MAP */
|
|
481 |
};
|
|
482 |
|
|
483 |
quick_index ObjDict_lastIndex = {
|
|
484 |
13, /* SDO_SVR */
|
|
485 |
0, /* SDO_CLT */
|
|
486 |
14, /* PDO_RCV */
|
|
487 |
15, /* PDO_RCV_MAP */
|
|
488 |
16, /* PDO_TRS */
|
|
489 |
17 /* PDO_TRS_MAP */
|
|
490 |
};
|
|
491 |
|
|
492 |
UNS16 ObjDict_ObjdictSize = sizeof(ObjDict_objdict)/sizeof(ObjDict_objdict[0]);
|
|
493 |
|
|
494 |
CO_Data ObjDict_Data = CANOPEN_NODE_DATA_INITIALIZER(ObjDict);
|
|
495 |
|