diff -r 003cc3c63855 -r f49e5a6b7804 doc/doxygen/html/TestMasterSlave_2TestMaster_8c-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/doxygen/html/TestMasterSlave_2TestMaster_8c-source.html Fri Jun 08 09:23:56 2007 +0200 @@ -0,0 +1,438 @@ + +
+00001 +00002 /* File generated by gen_cfile.py. Should not be modified. */ +00003 +00004 #include "TestMaster.h" +00005 +00006 /**************************************************************************/ +00007 /* Declaration of the mapped variables */ +00008 /**************************************************************************/ +00009 UNS8 MasterMap1 = 0x0; /* Mapped at index 0x2000, subindex 0x00 */ +00010 UNS8 MasterMap2 = 0x0; /* Mapped at index 0x2001, subindex 0x00 */ +00011 UNS8 MasterMap3 = 0x0; /* Mapped at index 0x2002, subindex 0x00 */ +00012 UNS8 MasterMap4 = 0x0; /* Mapped at index 0x2003, subindex 0x00 */ +00013 UNS8 MasterMap5 = 0x0; /* Mapped at index 0x2004, subindex 0x00 */ +00014 UNS8 MasterMap6 = 0x0; /* Mapped at index 0x2005, subindex 0x00 */ +00015 UNS8 MasterMap7 = 0x0; /* Mapped at index 0x2006, subindex 0x00 */ +00016 UNS8 MasterMap8 = 0x0; /* Mapped at index 0x2007, subindex 0x00 */ +00017 UNS8 MasterMap9 = 0x0; /* Mapped at index 0x2008, subindex 0x00 */ +00018 UNS32 MasterMap10 = 0x0; /* Mapped at index 0x2009, subindex 0x00 */ +00019 UNS16 MasterMap11 = 0x0; /* Mapped at index 0x200A, subindex 0x00 */ +00020 +00021 /**************************************************************************/ +00022 /* Declaration of the value range types */ +00023 /**************************************************************************/ +00024 +00025 UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value) +00026 { +00027 switch (typeValue) { +00028 } +00029 return 0; +00030 } +00031 +00032 /**************************************************************************/ +00033 /* The node id */ +00034 /**************************************************************************/ +00035 /* node_id default value.*/ +00036 UNS8 TestMaster_bDeviceNodeId = 0x01; +00037 +00038 /**************************************************************************/ +00039 /* Array of message processing information */ +00040 +00041 const UNS8 TestMaster_iam_a_slave = 0; +00042 +00043 TIMER_HANDLE TestMaster_heartBeatTimers[1] = {TIMER_NONE,}; +00044 +00045 /* +00046 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ +00047 +00048 OBJECT DICTIONARY +00049 +00050 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ +00051 */ +00052 +00053 /* index 0x1000 : Device Type. */ +00054 UNS32 TestMaster_obj1000 = 0x12D; /* 301 */ +00055 subindex TestMaster_Index1000[] = +00056 { +00057 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1000 } +00058 }; +00059 +00060 /* index 0x1001 : Error Register. */ +00061 UNS8 TestMaster_obj1001 = 0x0; /* 0 */ +00062 subindex TestMaster_Index1001[] = +00063 { +00064 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 } +00065 }; +00066 +00067 /* index 0x1005 : SYNC COB ID. */ +00068 UNS32 TestMaster_obj1005 = 0x40000080; /* 1073741952 */ +00069 ODCallback_t TestMaster_Index1005_callbacks[] = +00070 { +00071 NULL, +00072 }; +00073 subindex TestMaster_Index1005[] = +00074 { +00075 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1005 } +00076 }; +00077 +00078 /* index 0x1006 : Communication / Cycle Period. */ +00079 UNS32 TestMaster_obj1006 = 0xC350; /* 50000 */ +00080 ODCallback_t TestMaster_Index1006_callbacks[] = +00081 { +00082 NULL, +00083 }; +00084 subindex TestMaster_Index1006[] = +00085 { +00086 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1006 } +00087 }; +00088 +00089 /* index 0x1010 : Store parameters. */ +00090 UNS8 TestMaster_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/ +00091 UNS32 TestMaster_obj1010_Save_All_Parameters = 0x0; /* 0 */ +00092 UNS32 TestMaster_obj1010_Save_Communication_Parameters = 0x0; /* 0 */ +00093 UNS32 TestMaster_obj1010_Save_Application_Parameters = 0x0; /* 0 */ +00094 UNS32 TestMaster_obj1010_Save_Manufacturer_Parameters = 0x0; /* 0 */ +00095 subindex TestMaster_Index1010[] = +00096 { +00097 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1010 }, +00098 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_All_Parameters }, +00099 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Communication_Parameters }, +00100 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Application_Parameters }, +00101 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Manufacturer_Parameters } +00102 }; +00103 +00104 /* index 0x1011 : Restore Default Parameters. */ +00105 UNS8 TestMaster_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/ +00106 UNS32 TestMaster_obj1011_Restore_All_Default_Parameters = 0x0; /* 0 */ +00107 UNS32 TestMaster_obj1011_Restore_Communication_Default_Parameters = 0x0; /* 0 */ +00108 UNS32 TestMaster_obj1011_Restore_Application_Default_Parameters = 0x0; /* 0 */ +00109 UNS32 TestMaster_obj1011_Restore_Manufacturer_Default_Parameters = 0x0; /* 0 */ +00110 subindex TestMaster_Index1011[] = +00111 { +00112 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1011 }, +00113 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_All_Default_Parameters }, +00114 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Communication_Default_Parameters }, +00115 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Application_Default_Parameters }, +00116 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Manufacturer_Default_Parameters } +00117 }; +00118 +00119 /* index 0x1016 : Consumer Heartbeat Time. */ +00120 UNS8 TestMaster_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ +00121 UNS32 TestMaster_obj1016[] = +00122 { +00123 0x205DC /* 132572 */ +00124 }; +00125 subindex TestMaster_Index1016[] = +00126 { +00127 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1016 }, +00128 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1016[0] } +00129 }; +00130 +00131 /* index 0x1017 : Producer Heartbeat Time */ +00132 UNS16 TestMaster_obj1017 = 0x0; /* 0 */ +00133 +00134 /* index 0x1018 : Identity. */ +00135 UNS8 TestMaster_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ +00136 UNS32 TestMaster_obj1018_Vendor_ID = 0x0; /* 0 */ +00137 UNS32 TestMaster_obj1018_Product_Code = 0x0; /* 0 */ +00138 UNS32 TestMaster_obj1018_Revision_Number = 0x0; /* 0 */ +00139 UNS32 TestMaster_obj1018_Serial_Number = 0x0; /* 0 */ +00140 subindex TestMaster_Index1018[] = +00141 { +00142 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1018 }, +00143 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Vendor_ID }, +00144 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Product_Code }, +00145 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Revision_Number }, +00146 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Serial_Number } +00147 }; +00148 +00149 /* index 0x1280 : Client SDO 1 Parameter. */ +00150 UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ +00151 UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x602; /* 1538 */ +00152 UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x582; /* 1410 */ +00153 INTEGER32 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x2; /* 2 */ +00154 subindex TestMaster_Index1280[] = +00155 { +00156 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 }, +00157 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, +00158 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO }, +00159 { RW, int32, sizeof (INTEGER32), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server } +00160 }; +00161 +00162 /* index 0x1400 : Receive PDO 1 Parameter. */ +00163 UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ +00164 UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x182; /* 386 */ +00165 UNS8 TestMaster_obj1400_Transmission_Type = 0x1; /* 1 */ +00166 UNS16 TestMaster_obj1400_Inhibit_Time = 0x0; /* 0 */ +00167 UNS8 TestMaster_obj1400_Compatibility_Entry = 0x0; /* 0 */ +00168 UNS16 TestMaster_obj1400_Event_Timer = 0x0; /* 0 */ +00169 subindex TestMaster_Index1400[] = +00170 { +00171 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1400 }, +00172 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1400_COB_ID_used_by_PDO }, +00173 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Transmission_Type }, +00174 { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Inhibit_Time }, +00175 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Compatibility_Entry }, +00176 { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Event_Timer } +00177 }; +00178 +00179 /* index 0x1401 : Receive PDO 2 Parameter. */ +00180 UNS8 TestMaster_highestSubIndex_obj1401 = 5; /* number of subindex - 1*/ +00181 UNS32 TestMaster_obj1401_COB_ID_used_by_PDO = 0x0; /* 0 */ +00182 UNS8 TestMaster_obj1401_Transmission_Type = 0x0; /* 0 */ +00183 UNS16 TestMaster_obj1401_Inhibit_Time = 0x0; /* 0 */ +00184 UNS8 TestMaster_obj1401_Compatibility_Entry = 0x0; /* 0 */ +00185 UNS16 TestMaster_obj1401_Event_Timer = 0x0; /* 0 */ +00186 subindex TestMaster_Index1401[] = +00187 { +00188 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1401 }, +00189 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1401_COB_ID_used_by_PDO }, +00190 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Transmission_Type }, +00191 { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Inhibit_Time }, +00192 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Compatibility_Entry }, +00193 { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Event_Timer } +00194 }; +00195 +00196 /* index 0x1600 : Receive PDO 1 Mapping. */ +00197 UNS8 TestMaster_highestSubIndex_obj1600 = 10; /* number of subindex - 1*/ +00198 UNS32 TestMaster_obj1600[] = +00199 { +00200 0x20000001, /* 536870913 */ +00201 0x20010001, /* 536936449 */ +00202 0x20020001, /* 537001985 */ +00203 0x20030001, /* 537067521 */ +00204 0x20040001, /* 537133057 */ +00205 0x20050001, /* 537198593 */ +00206 0x20060001, /* 537264129 */ +00207 0x20070001, /* 537329665 */ +00208 0x20080008, /* 537395208 */ +00209 0x20090020 /* 537460768 */ +00210 }; +00211 subindex TestMaster_Index1600[] = +00212 { +00213 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 }, +00214 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] }, +00215 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] }, +00216 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[2] }, +00217 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[3] }, +00218 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[4] }, +00219 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[5] }, +00220 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[6] }, +00221 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[7] }, +00222 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[8] }, +00223 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[9] } +00224 }; +00225 +00226 /* index 0x1601 : Receive PDO 2 Mapping. */ +00227 UNS8 TestMaster_highestSubIndex_obj1601 = 1; /* number of subindex - 1*/ +00228 UNS32 TestMaster_obj1601[] = +00229 { +00230 0x200A0010 /* 537526288 */ +00231 }; +00232 subindex TestMaster_Index1601[] = +00233 { +00234 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1601 }, +00235 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[0] } +00236 }; +00237 +00238 /* index 0x1F22 : Concise DCF. */ +00239 UNS8 TestMaster_highestSubIndex_obj1F22 = 2; /* number of subindex - 1*/ +00240 UNS8* TestMaster_obj1F22[] = +00241 { +00242 "", +00243 "\x01\x00\x00\x00\x17\x10\x00\x02\x00\x00\x00\xe8\x03" +00244 }; +00245 subindex TestMaster_Index1F22[] = +00246 { +00247 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1F22 }, +00248 { RW, domain, 0, (void*)&TestMaster_obj1F22[0] }, +00249 { RW, domain, 13, (void*)&TestMaster_obj1F22[1] } +00250 }; +00251 +00252 /* index 0x2000 : Mapped variable MasterMap1 */ +00253 subindex TestMaster_Index2000[] = +00254 { +00255 { RW, boolean, sizeof (UNS8), (void*)&MasterMap1 } +00256 }; +00257 +00258 /* index 0x2001 : Mapped variable MasterMap2 */ +00259 subindex TestMaster_Index2001[] = +00260 { +00261 { RW, boolean, sizeof (UNS8), (void*)&MasterMap2 } +00262 }; +00263 +00264 /* index 0x2002 : Mapped variable MasterMap3 */ +00265 subindex TestMaster_Index2002[] = +00266 { +00267 { RW, boolean, sizeof (UNS8), (void*)&MasterMap3 } +00268 }; +00269 +00270 /* index 0x2003 : Mapped variable MasterMap4 */ +00271 subindex TestMaster_Index2003[] = +00272 { +00273 { RW, boolean, sizeof (UNS8), (void*)&MasterMap4 } +00274 }; +00275 +00276 /* index 0x2004 : Mapped variable MasterMap5 */ +00277 subindex TestMaster_Index2004[] = +00278 { +00279 { RW, boolean, sizeof (UNS8), (void*)&MasterMap5 } +00280 }; +00281 +00282 /* index 0x2005 : Mapped variable MasterMap6 */ +00283 subindex TestMaster_Index2005[] = +00284 { +00285 { RW, boolean, sizeof (UNS8), (void*)&MasterMap6 } +00286 }; +00287 +00288 /* index 0x2006 : Mapped variable MasterMap7 */ +00289 subindex TestMaster_Index2006[] = +00290 { +00291 { RW, boolean, sizeof (UNS8), (void*)&MasterMap7 } +00292 }; +00293 +00294 /* index 0x2007 : Mapped variable MasterMap8 */ +00295 subindex TestMaster_Index2007[] = +00296 { +00297 { RW, boolean, sizeof (UNS8), (void*)&MasterMap8 } +00298 }; +00299 +00300 /* index 0x2008 : Mapped variable MasterMap9 */ +00301 subindex TestMaster_Index2008[] = +00302 { +00303 { RW, uint8, sizeof (UNS8), (void*)&MasterMap9 } +00304 }; +00305 +00306 /* index 0x2009 : Mapped variable MasterMap10 */ +00307 subindex TestMaster_Index2009[] = +00308 { +00309 { RW, uint32, sizeof (UNS32), (void*)&MasterMap10 } +00310 }; +00311 +00312 /* index 0x200A : Mapped variable MasterMap11 */ +00313 subindex TestMaster_Index200A[] = +00314 { +00315 { RW, uint16, sizeof (UNS16), (void*)&MasterMap11 } +00316 }; +00317 +00318 const indextable TestMaster_objdict[] = +00319 { +00320 { (subindex*)TestMaster_Index1000,sizeof(TestMaster_Index1000)/sizeof(TestMaster_Index1000[0]), 0x1000}, +00321 { (subindex*)TestMaster_Index1001,sizeof(TestMaster_Index1001)/sizeof(TestMaster_Index1001[0]), 0x1001}, +00322 { (subindex*)TestMaster_Index1005,sizeof(TestMaster_Index1005)/sizeof(TestMaster_Index1005[0]), 0x1005}, +00323 { (subindex*)TestMaster_Index1006,sizeof(TestMaster_Index1006)/sizeof(TestMaster_Index1006[0]), 0x1006}, +00324 { (subindex*)TestMaster_Index1010,sizeof(TestMaster_Index1010)/sizeof(TestMaster_Index1010[0]), 0x1010}, +00325 { (subindex*)TestMaster_Index1011,sizeof(TestMaster_Index1011)/sizeof(TestMaster_Index1011[0]), 0x1011}, +00326 { (subindex*)TestMaster_Index1016,sizeof(TestMaster_Index1016)/sizeof(TestMaster_Index1016[0]), 0x1016}, +00327 { (subindex*)TestMaster_Index1018,sizeof(TestMaster_Index1018)/sizeof(TestMaster_Index1018[0]), 0x1018}, +00328 { (subindex*)TestMaster_Index1280,sizeof(TestMaster_Index1280)/sizeof(TestMaster_Index1280[0]), 0x1280}, +00329 { (subindex*)TestMaster_Index1400,sizeof(TestMaster_Index1400)/sizeof(TestMaster_Index1400[0]), 0x1400}, +00330 { (subindex*)TestMaster_Index1401,sizeof(TestMaster_Index1401)/sizeof(TestMaster_Index1401[0]), 0x1401}, +00331 { (subindex*)TestMaster_Index1600,sizeof(TestMaster_Index1600)/sizeof(TestMaster_Index1600[0]), 0x1600}, +00332 { (subindex*)TestMaster_Index1601,sizeof(TestMaster_Index1601)/sizeof(TestMaster_Index1601[0]), 0x1601}, +00333 { (subindex*)TestMaster_Index1F22,sizeof(TestMaster_Index1F22)/sizeof(TestMaster_Index1F22[0]), 0x1F22}, +00334 { (subindex*)TestMaster_Index2000,sizeof(TestMaster_Index2000)/sizeof(TestMaster_Index2000[0]), 0x2000}, +00335 { (subindex*)TestMaster_Index2001,sizeof(TestMaster_Index2001)/sizeof(TestMaster_Index2001[0]), 0x2001}, +00336 { (subindex*)TestMaster_Index2002,sizeof(TestMaster_Index2002)/sizeof(TestMaster_Index2002[0]), 0x2002}, +00337 { (subindex*)TestMaster_Index2003,sizeof(TestMaster_Index2003)/sizeof(TestMaster_Index2003[0]), 0x2003}, +00338 { (subindex*)TestMaster_Index2004,sizeof(TestMaster_Index2004)/sizeof(TestMaster_Index2004[0]), 0x2004}, +00339 { (subindex*)TestMaster_Index2005,sizeof(TestMaster_Index2005)/sizeof(TestMaster_Index2005[0]), 0x2005}, +00340 { (subindex*)TestMaster_Index2006,sizeof(TestMaster_Index2006)/sizeof(TestMaster_Index2006[0]), 0x2006}, +00341 { (subindex*)TestMaster_Index2007,sizeof(TestMaster_Index2007)/sizeof(TestMaster_Index2007[0]), 0x2007}, +00342 { (subindex*)TestMaster_Index2008,sizeof(TestMaster_Index2008)/sizeof(TestMaster_Index2008[0]), 0x2008}, +00343 { (subindex*)TestMaster_Index2009,sizeof(TestMaster_Index2009)/sizeof(TestMaster_Index2009[0]), 0x2009}, +00344 { (subindex*)TestMaster_Index200A,sizeof(TestMaster_Index200A)/sizeof(TestMaster_Index200A[0]), 0x200A}, +00345 }; +00346 +00347 const indextable * TestMaster_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) +00348 { +00349 int i; +00350 *callbacks = NULL; +00351 switch(wIndex){ +00352 case 0x1000: i = 0;break; +00353 case 0x1001: i = 1;break; +00354 case 0x1005: i = 2;*callbacks = TestMaster_Index1005_callbacks; break; +00355 case 0x1006: i = 3;*callbacks = TestMaster_Index1006_callbacks; break; +00356 case 0x1010: i = 4;break; +00357 case 0x1011: i = 5;break; +00358 case 0x1016: i = 6;break; +00359 case 0x1018: i = 7;break; +00360 case 0x1280: i = 8;break; +00361 case 0x1400: i = 9;break; +00362 case 0x1401: i = 10;break; +00363 case 0x1600: i = 11;break; +00364 case 0x1601: i = 12;break; +00365 case 0x1F22: i = 13;break; +00366 case 0x2000: i = 14;break; +00367 case 0x2001: i = 15;break; +00368 case 0x2002: i = 16;break; +00369 case 0x2003: i = 17;break; +00370 case 0x2004: i = 18;break; +00371 case 0x2005: i = 19;break; +00372 case 0x2006: i = 20;break; +00373 case 0x2007: i = 21;break; +00374 case 0x2008: i = 22;break; +00375 case 0x2009: i = 23;break; +00376 case 0x200A: i = 24;break; +00377 default: +00378 *errorCode = OD_NO_SUCH_OBJECT; +00379 return NULL; +00380 } +00381 *errorCode = OD_SUCCESSFUL; +00382 return &TestMaster_objdict[i]; +00383 } +00384 +00385 /* To count at which received SYNC a PDO must be sent. +00386 * Even if no pdoTransmit are defined, at least one entry is computed +00387 * for compilations issues. +00388 */ +00389 UNS8 TestMaster_count_sync[1] = {0,}; +00390 +00391 quick_index TestMaster_firstIndex = { +00392 0, /* SDO_SVR */ +00393 8, /* SDO_CLT */ +00394 9, /* PDO_RCV */ +00395 11, /* PDO_RCV_MAP */ +00396 0, /* PDO_TRS */ +00397 0 /* PDO_TRS_MAP */ +00398 }; +00399 +00400 quick_index TestMaster_lastIndex = { +00401 0, /* SDO_SVR */ +00402 8, /* SDO_CLT */ +00403 10, /* PDO_RCV */ +00404 12, /* PDO_RCV_MAP */ +00405 0, /* PDO_TRS */ +00406 0 /* PDO_TRS_MAP */ +00407 }; +00408 +00409 UNS16 TestMaster_ObjdictSize = sizeof(TestMaster_objdict)/sizeof(TestMaster_objdict[0]); +00410 +00411 CO_Data TestMaster_Data = CANOPEN_NODE_DATA_INITIALIZER(TestMaster); +00412 +