00001
00002
00003
00004 #include "TestSlave.h"
00005
00006
00007
00008
00009 UNS8 SlaveMap1 = 0x0;
00010 UNS8 SlaveMap2 = 0x0;
00011 UNS8 SlaveMap3 = 0x0;
00012 UNS8 SlaveMap4 = 0x0;
00013 UNS8 SlaveMap5 = 0x0;
00014 UNS8 SlaveMap6 = 0x0;
00015 UNS8 SlaveMap7 = 0x0;
00016 UNS8 SlaveMap8 = 0x0;
00017 UNS8 SlaveMap9 = 0x0;
00018 UNS32 SlaveMap10 = 0x0;
00019 UNS16 SlaveMap11 = 0x0;
00020 INTEGER16 SlaveMap12 = 0x0;
00021 INTEGER16 SlaveMap13 = 0x4D2;
00022
00023
00024
00025
00026
00027 UNS32 TestSlave_valueRangeTest (UNS8 typeValue, void * value)
00028 {
00029 switch (typeValue) {
00030 }
00031 return 0;
00032 }
00033
00034
00035
00036
00037
00038 UNS8 TestSlave_bDeviceNodeId = 0x02;
00039
00040
00041
00042
00043 const UNS8 TestSlave_iam_a_slave = 1;
00044
00045 TIMER_HANDLE TestSlave_heartBeatTimers[1];
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056 UNS32 TestSlave_obj1000 = 0x12D;
00057 subindex TestSlave_Index1000[] =
00058 {
00059 { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1000 }
00060 };
00061
00062
00063 UNS8 TestSlave_obj1001 = 0x0;
00064 subindex TestSlave_Index1001[] =
00065 {
00066 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_obj1001 }
00067 };
00068
00069
00070 UNS32 TestSlave_obj1005 = 0x80;
00071 ODCallback_t TestSlave_Index1005_callbacks[] =
00072 {
00073 NULL,
00074 };
00075 subindex TestSlave_Index1005[] =
00076 {
00077 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1005 }
00078 };
00079
00080
00081 UNS32 TestSlave_obj1006 = 0x0;
00082 ODCallback_t TestSlave_Index1006_callbacks[] =
00083 {
00084 NULL,
00085 };
00086 subindex TestSlave_Index1006[] =
00087 {
00088 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1006 }
00089 };
00090
00091
00092 UNS8 TestSlave_highestSubIndex_obj1010 = 4;
00093 UNS32 TestSlave_obj1010_Save_All_Parameters = 0x0;
00094 UNS32 TestSlave_obj1010_Save_Communication_Parameters = 0x0;
00095 UNS32 TestSlave_obj1010_Save_Application_Parameters = 0x0;
00096 UNS32 TestSlave_obj1010_Save_Manufacturer_Parameters = 0x0;
00097 ODCallback_t TestSlave_Index1010_callbacks[] =
00098 {
00099 NULL,
00100 NULL,
00101 NULL,
00102 NULL,
00103 NULL,
00104 };
00105 subindex TestSlave_Index1010[] =
00106 {
00107 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1010 },
00108 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_All_Parameters },
00109 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Communication_Parameters },
00110 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Application_Parameters },
00111 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Manufacturer_Parameters }
00112 };
00113
00114
00115 UNS8 TestSlave_highestSubIndex_obj1011 = 4;
00116 UNS32 TestSlave_obj1011_Restore_All_Default_Parameters = 0x0;
00117 UNS32 TestSlave_obj1011_Restore_Communication_Default_Parameters = 0x0;
00118 UNS32 TestSlave_obj1011_Restore_Application_Default_Parameters = 0x0;
00119 UNS32 TestSlave_obj1011_Restore_Manufacturer_Default_Parameters = 0x0;
00120 ODCallback_t TestSlave_Index1011_callbacks[] =
00121 {
00122 NULL,
00123 NULL,
00124 NULL,
00125 NULL,
00126 NULL,
00127 };
00128 subindex TestSlave_Index1011[] =
00129 {
00130 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1011 },
00131 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_All_Default_Parameters },
00132 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Communication_Default_Parameters },
00133 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Application_Default_Parameters },
00134 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Manufacturer_Default_Parameters }
00135 };
00136
00137
00138 UNS8 TestSlave_highestSubIndex_obj1016 = 0;
00139 UNS32 TestSlave_obj1016[]={0};
00140
00141
00142 UNS16 TestSlave_obj1017 = 0x0;
00143 ODCallback_t TestSlave_Index1017_callbacks[] =
00144 {
00145 NULL,
00146 };
00147 subindex TestSlave_Index1017[] =
00148 {
00149 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1017 }
00150 };
00151
00152
00153 UNS8 TestSlave_highestSubIndex_obj1018 = 4;
00154 UNS32 TestSlave_obj1018_Vendor_ID = 0x0;
00155 UNS32 TestSlave_obj1018_Product_Code = 0x0;
00156 UNS32 TestSlave_obj1018_Revision_Number = 0x0;
00157 UNS32 TestSlave_obj1018_Serial_Number = 0x0;
00158 subindex TestSlave_Index1018[] =
00159 {
00160 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1018 },
00161 { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Vendor_ID },
00162 { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Product_Code },
00163 { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Revision_Number },
00164 { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Serial_Number }
00165 };
00166
00167
00168 UNS8 TestSlave_highestSubIndex_obj1200 = 2;
00169 UNS32 TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x601;
00170 UNS32 TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x581;
00171 subindex TestSlave_Index1200[] =
00172 {
00173 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1200 },
00174 { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO },
00175 { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
00176 };
00177
00178
00179 UNS8 TestSlave_highestSubIndex_obj1800 = 5;
00180 UNS32 TestSlave_obj1800_COB_ID_used_by_PDO = 0x182;
00181 UNS8 TestSlave_obj1800_Transmission_Type = 0x0;
00182 UNS16 TestSlave_obj1800_Inhibit_Time = 0x0;
00183 UNS8 TestSlave_obj1800_Compatibility_Entry = 0x0;
00184 UNS16 TestSlave_obj1800_Event_Timer = 0x0;
00185 ODCallback_t TestSlave_Index1800_callbacks[] =
00186 {
00187 NULL,
00188 NULL,
00189 NULL,
00190 NULL,
00191 NULL,
00192 NULL,
00193 };
00194 subindex TestSlave_Index1800[] =
00195 {
00196 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1800 },
00197 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1800_COB_ID_used_by_PDO },
00198 { RW|TO_BE_SAVE, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Transmission_Type },
00199 { RW|TO_BE_SAVE, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Inhibit_Time },
00200 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Compatibility_Entry },
00201 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Event_Timer }
00202 };
00203
00204
00205 UNS8 TestSlave_highestSubIndex_obj1801 = 5;
00206 UNS32 TestSlave_obj1801_COB_ID_used_by_PDO = 0x282;
00207 UNS8 TestSlave_obj1801_Transmission_Type = 0x0;
00208 UNS16 TestSlave_obj1801_Inhibit_Time = 0x0;
00209 UNS8 TestSlave_obj1801_Compatibility_Entry = 0x0;
00210 UNS16 TestSlave_obj1801_Event_Timer = 0x0;
00211 ODCallback_t TestSlave_Index1801_callbacks[] =
00212 {
00213 NULL,
00214 NULL,
00215 NULL,
00216 NULL,
00217 NULL,
00218 NULL,
00219 };
00220 subindex TestSlave_Index1801[] =
00221 {
00222 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1801 },
00223 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1801_COB_ID_used_by_PDO },
00224 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Transmission_Type },
00225 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Inhibit_Time },
00226 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Compatibility_Entry },
00227 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Event_Timer }
00228 };
00229
00230
00231 UNS8 TestSlave_highestSubIndex_obj1802 = 5;
00232 UNS32 TestSlave_obj1802_COB_ID_used_by_PDO = 0x382;
00233 UNS8 TestSlave_obj1802_Transmission_Type = 0xFF;
00234 UNS16 TestSlave_obj1802_Inhibit_Time = 0x1388;
00235 UNS8 TestSlave_obj1802_Compatibility_Entry = 0x0;
00236 UNS16 TestSlave_obj1802_Event_Timer = 0x3E8;
00237 ODCallback_t TestSlave_Index1802_callbacks[] =
00238 {
00239 NULL,
00240 NULL,
00241 NULL,
00242 NULL,
00243 NULL,
00244 NULL,
00245 };
00246 subindex TestSlave_Index1802[] =
00247 {
00248 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1802 },
00249 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1802_COB_ID_used_by_PDO },
00250 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1802_Transmission_Type },
00251 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1802_Inhibit_Time },
00252 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1802_Compatibility_Entry },
00253 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1802_Event_Timer }
00254 };
00255
00256
00257 UNS8 TestSlave_highestSubIndex_obj1803 = 5;
00258 UNS32 TestSlave_obj1803_COB_ID_used_by_PDO = 0x482;
00259 UNS8 TestSlave_obj1803_Transmission_Type = 0xFC;
00260 UNS16 TestSlave_obj1803_Inhibit_Time = 0x0;
00261 UNS8 TestSlave_obj1803_Compatibility_Entry = 0x0;
00262 UNS16 TestSlave_obj1803_Event_Timer = 0x0;
00263 ODCallback_t TestSlave_Index1803_callbacks[] =
00264 {
00265 NULL,
00266 NULL,
00267 NULL,
00268 NULL,
00269 NULL,
00270 NULL,
00271 };
00272 subindex TestSlave_Index1803[] =
00273 {
00274 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1803 },
00275 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1803_COB_ID_used_by_PDO },
00276 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1803_Transmission_Type },
00277 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1803_Inhibit_Time },
00278 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1803_Compatibility_Entry },
00279 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1803_Event_Timer }
00280 };
00281
00282
00283 UNS8 TestSlave_highestSubIndex_obj1804 = 5;
00284 UNS32 TestSlave_obj1804_COB_ID_used_by_PDO = 0x401;
00285 UNS8 TestSlave_obj1804_Transmission_Type = 0xFD;
00286 UNS16 TestSlave_obj1804_Inhibit_Time = 0x0;
00287 UNS8 TestSlave_obj1804_Compatibility_Entry = 0x0;
00288 UNS16 TestSlave_obj1804_Event_Timer = 0x0;
00289 ODCallback_t TestSlave_Index1804_callbacks[] =
00290 {
00291 NULL,
00292 NULL,
00293 NULL,
00294 NULL,
00295 NULL,
00296 NULL,
00297 };
00298 subindex TestSlave_Index1804[] =
00299 {
00300 { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1804 },
00301 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1804_COB_ID_used_by_PDO },
00302 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1804_Transmission_Type },
00303 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1804_Inhibit_Time },
00304 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1804_Compatibility_Entry },
00305 { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1804_Event_Timer }
00306 };
00307
00308
00309 UNS8 TestSlave_highestSubIndex_obj1A00 = 10;
00310 UNS32 TestSlave_obj1A00[] =
00311 {
00312 0x20000001,
00313 0x20010001,
00314 0x20020001,
00315 0x20030001,
00316 0x20040001,
00317 0x20050001,
00318 0x20060001,
00319 0x20070001,
00320 0x20080008,
00321 0x20090020
00322 };
00323 subindex TestSlave_Index1A00[] =
00324 {
00325 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A00 },
00326 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[0] },
00327 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[1] },
00328 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[2] },
00329 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[3] },
00330 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[4] },
00331 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[5] },
00332 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[6] },
00333 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[7] },
00334 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[8] },
00335 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[9] }
00336 };
00337
00338
00339 UNS8 TestSlave_highestSubIndex_obj1A01 = 1;
00340 UNS32 TestSlave_obj1A01[] =
00341 {
00342 0x200A0010
00343 };
00344 subindex TestSlave_Index1A01[] =
00345 {
00346 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A01 },
00347 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A01[0] }
00348 };
00349
00350
00351 UNS8 TestSlave_highestSubIndex_obj1A02 = 1;
00352 UNS32 TestSlave_obj1A02[] =
00353 {
00354 0x200B0010
00355 };
00356 subindex TestSlave_Index1A02[] =
00357 {
00358 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A02 },
00359 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A02[0] }
00360 };
00361
00362
00363 UNS8 TestSlave_highestSubIndex_obj1A03 = 1;
00364 UNS32 TestSlave_obj1A03[] =
00365 {
00366 0x200C0010
00367 };
00368 subindex TestSlave_Index1A03[] =
00369 {
00370 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A03 },
00371 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A03[0] }
00372 };
00373
00374
00375 UNS8 TestSlave_highestSubIndex_obj1A04 = 1;
00376 UNS32 TestSlave_obj1A04[] =
00377 {
00378 0x200C0010
00379 };
00380 subindex TestSlave_Index1A04[] =
00381 {
00382 { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A04 },
00383 { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A04[0] }
00384 };
00385
00386
00387 subindex TestSlave_Index2000[] =
00388 {
00389 { RW, boolean, sizeof (UNS8), (void*)&SlaveMap1 }
00390 };
00391
00392
00393 subindex TestSlave_Index2001[] =
00394 {
00395 { RW, boolean, sizeof (UNS8), (void*)&SlaveMap2 }
00396 };
00397
00398
00399 subindex TestSlave_Index2002[] =
00400 {
00401 { RW, boolean, sizeof (UNS8), (void*)&SlaveMap3 }
00402 };
00403
00404
00405 subindex TestSlave_Index2003[] =
00406 {
00407 { RW, boolean, sizeof (UNS8), (void*)&SlaveMap4 }
00408 };
00409
00410
00411 subindex TestSlave_Index2004[] =
00412 {
00413 { RW, boolean, sizeof (UNS8), (void*)&SlaveMap5 }
00414 };
00415
00416
00417 subindex TestSlave_Index2005[] =
00418 {
00419 { RW, boolean, sizeof (UNS8), (void*)&SlaveMap6 }
00420 };
00421
00422
00423 subindex TestSlave_Index2006[] =
00424 {
00425 { RW, boolean, sizeof (UNS8), (void*)&SlaveMap7 }
00426 };
00427
00428
00429 subindex TestSlave_Index2007[] =
00430 {
00431 { RW, boolean, sizeof (UNS8), (void*)&SlaveMap8 }
00432 };
00433
00434
00435 subindex TestSlave_Index2008[] =
00436 {
00437 { RW, uint8, sizeof (UNS8), (void*)&SlaveMap9 }
00438 };
00439
00440
00441 subindex TestSlave_Index2009[] =
00442 {
00443 { RW, uint32, sizeof (UNS32), (void*)&SlaveMap10 }
00444 };
00445
00446
00447 subindex TestSlave_Index200A[] =
00448 {
00449 { RW, uint16, sizeof (UNS16), (void*)&SlaveMap11 }
00450 };
00451
00452
00453 subindex TestSlave_Index200B[] =
00454 {
00455 { RW, int16, sizeof (INTEGER16), (void*)&SlaveMap12 }
00456 };
00457
00458
00459 subindex TestSlave_Index200C[] =
00460 {
00461 { RW, int16, sizeof (INTEGER16), (void*)&SlaveMap13 }
00462 };
00463
00464 const indextable TestSlave_objdict[] =
00465 {
00466 { (subindex*)TestSlave_Index1000,sizeof(TestSlave_Index1000)/sizeof(TestSlave_Index1000[0]), 0x1000},
00467 { (subindex*)TestSlave_Index1001,sizeof(TestSlave_Index1001)/sizeof(TestSlave_Index1001[0]), 0x1001},
00468 { (subindex*)TestSlave_Index1005,sizeof(TestSlave_Index1005)/sizeof(TestSlave_Index1005[0]), 0x1005},
00469 { (subindex*)TestSlave_Index1006,sizeof(TestSlave_Index1006)/sizeof(TestSlave_Index1006[0]), 0x1006},
00470 { (subindex*)TestSlave_Index1010,sizeof(TestSlave_Index1010)/sizeof(TestSlave_Index1010[0]), 0x1010},
00471 { (subindex*)TestSlave_Index1011,sizeof(TestSlave_Index1011)/sizeof(TestSlave_Index1011[0]), 0x1011},
00472 { (subindex*)TestSlave_Index1017,sizeof(TestSlave_Index1017)/sizeof(TestSlave_Index1017[0]), 0x1017},
00473 { (subindex*)TestSlave_Index1018,sizeof(TestSlave_Index1018)/sizeof(TestSlave_Index1018[0]), 0x1018},
00474 { (subindex*)TestSlave_Index1200,sizeof(TestSlave_Index1200)/sizeof(TestSlave_Index1200[0]), 0x1200},
00475 { (subindex*)TestSlave_Index1800,sizeof(TestSlave_Index1800)/sizeof(TestSlave_Index1800[0]), 0x1800},
00476 { (subindex*)TestSlave_Index1801,sizeof(TestSlave_Index1801)/sizeof(TestSlave_Index1801[0]), 0x1801},
00477 { (subindex*)TestSlave_Index1802,sizeof(TestSlave_Index1802)/sizeof(TestSlave_Index1802[0]), 0x1802},
00478 { (subindex*)TestSlave_Index1803,sizeof(TestSlave_Index1803)/sizeof(TestSlave_Index1803[0]), 0x1803},
00479 { (subindex*)TestSlave_Index1804,sizeof(TestSlave_Index1804)/sizeof(TestSlave_Index1804[0]), 0x1804},
00480 { (subindex*)TestSlave_Index1A00,sizeof(TestSlave_Index1A00)/sizeof(TestSlave_Index1A00[0]), 0x1A00},
00481 { (subindex*)TestSlave_Index1A01,sizeof(TestSlave_Index1A01)/sizeof(TestSlave_Index1A01[0]), 0x1A01},
00482 { (subindex*)TestSlave_Index1A02,sizeof(TestSlave_Index1A02)/sizeof(TestSlave_Index1A02[0]), 0x1A02},
00483 { (subindex*)TestSlave_Index1A03,sizeof(TestSlave_Index1A03)/sizeof(TestSlave_Index1A03[0]), 0x1A03},
00484 { (subindex*)TestSlave_Index1A04,sizeof(TestSlave_Index1A04)/sizeof(TestSlave_Index1A04[0]), 0x1A04},
00485 { (subindex*)TestSlave_Index2000,sizeof(TestSlave_Index2000)/sizeof(TestSlave_Index2000[0]), 0x2000},
00486 { (subindex*)TestSlave_Index2001,sizeof(TestSlave_Index2001)/sizeof(TestSlave_Index2001[0]), 0x2001},
00487 { (subindex*)TestSlave_Index2002,sizeof(TestSlave_Index2002)/sizeof(TestSlave_Index2002[0]), 0x2002},
00488 { (subindex*)TestSlave_Index2003,sizeof(TestSlave_Index2003)/sizeof(TestSlave_Index2003[0]), 0x2003},
00489 { (subindex*)TestSlave_Index2004,sizeof(TestSlave_Index2004)/sizeof(TestSlave_Index2004[0]), 0x2004},
00490 { (subindex*)TestSlave_Index2005,sizeof(TestSlave_Index2005)/sizeof(TestSlave_Index2005[0]), 0x2005},
00491 { (subindex*)TestSlave_Index2006,sizeof(TestSlave_Index2006)/sizeof(TestSlave_Index2006[0]), 0x2006},
00492 { (subindex*)TestSlave_Index2007,sizeof(TestSlave_Index2007)/sizeof(TestSlave_Index2007[0]), 0x2007},
00493 { (subindex*)TestSlave_Index2008,sizeof(TestSlave_Index2008)/sizeof(TestSlave_Index2008[0]), 0x2008},
00494 { (subindex*)TestSlave_Index2009,sizeof(TestSlave_Index2009)/sizeof(TestSlave_Index2009[0]), 0x2009},
00495 { (subindex*)TestSlave_Index200A,sizeof(TestSlave_Index200A)/sizeof(TestSlave_Index200A[0]), 0x200A},
00496 { (subindex*)TestSlave_Index200B,sizeof(TestSlave_Index200B)/sizeof(TestSlave_Index200B[0]), 0x200B},
00497 { (subindex*)TestSlave_Index200C,sizeof(TestSlave_Index200C)/sizeof(TestSlave_Index200C[0]), 0x200C},
00498 };
00499
00500 const indextable * TestSlave_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
00501 {
00502 int i;
00503 *callbacks = NULL;
00504 switch(wIndex){
00505 case 0x1000: i = 0;break;
00506 case 0x1001: i = 1;break;
00507 case 0x1005: i = 2;*callbacks = TestSlave_Index1005_callbacks; break;
00508 case 0x1006: i = 3;*callbacks = TestSlave_Index1006_callbacks; break;
00509 case 0x1010: i = 4;*callbacks = TestSlave_Index1010_callbacks; break;
00510 case 0x1011: i = 5;*callbacks = TestSlave_Index1011_callbacks; break;
00511 case 0x1017: i = 6;*callbacks = TestSlave_Index1017_callbacks; break;
00512 case 0x1018: i = 7;break;
00513 case 0x1200: i = 8;break;
00514 case 0x1800: i = 9;*callbacks = TestSlave_Index1800_callbacks; break;
00515 case 0x1801: i = 10;*callbacks = TestSlave_Index1801_callbacks; break;
00516 case 0x1802: i = 11;*callbacks = TestSlave_Index1802_callbacks; break;
00517 case 0x1803: i = 12;*callbacks = TestSlave_Index1803_callbacks; break;
00518 case 0x1804: i = 13;*callbacks = TestSlave_Index1804_callbacks; break;
00519 case 0x1A00: i = 14;break;
00520 case 0x1A01: i = 15;break;
00521 case 0x1A02: i = 16;break;
00522 case 0x1A03: i = 17;break;
00523 case 0x1A04: i = 18;break;
00524 case 0x2000: i = 19;break;
00525 case 0x2001: i = 20;break;
00526 case 0x2002: i = 21;break;
00527 case 0x2003: i = 22;break;
00528 case 0x2004: i = 23;break;
00529 case 0x2005: i = 24;break;
00530 case 0x2006: i = 25;break;
00531 case 0x2007: i = 26;break;
00532 case 0x2008: i = 27;break;
00533 case 0x2009: i = 28;break;
00534 case 0x200A: i = 29;break;
00535 case 0x200B: i = 30;break;
00536 case 0x200C: i = 31;break;
00537 default:
00538 *errorCode = OD_NO_SUCH_OBJECT;
00539 return NULL;
00540 }
00541 *errorCode = OD_SUCCESSFUL;
00542 return &TestSlave_objdict[i];
00543 }
00544
00545
00546
00547
00548
00549
00550 s_PDO_status TestSlave_PDO_status[5] = {s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer};
00551
00552 quick_index TestSlave_firstIndex = {
00553 8,
00554 0,
00555 0,
00556 0,
00557 9,
00558 14
00559 };
00560
00561 quick_index TestSlave_lastIndex = {
00562 8,
00563 0,
00564 0,
00565 0,
00566 13,
00567 18
00568 };
00569
00570 UNS16 TestSlave_ObjdictSize = sizeof(TestSlave_objdict)/sizeof(TestSlave_objdict[0]);
00571
00572 CO_Data TestSlave_Data = CANOPEN_NODE_DATA_INITIALIZER(TestSlave);
00573