Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed_master.c
00001 00002 /* File generated by gen_cfile.py. Should not be modified. */ 00003 00004 #include "mbed_master.h" 00005 00006 /**************************************************************************/ 00007 /* Declaration of 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 INTEGER16 MasterMap12 = 0x0; /* Mapped at index 0x200B, subindex 0x00 */ 00021 INTEGER16 MasterMap13 = 0x0; /* Mapped at index 0x200C, subindex 0x00 */ 00022 00023 /**************************************************************************/ 00024 /* Declaration of value range types */ 00025 /**************************************************************************/ 00026 00027 #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ 00028 UNS32 mbed_master_valueRangeTest (UNS8 typeValue, void * value) 00029 { 00030 switch (typeValue) { 00031 case valueRange_EMC: 00032 if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED; 00033 break; 00034 } 00035 return 0; 00036 } 00037 00038 /**************************************************************************/ 00039 /* The node id */ 00040 /**************************************************************************/ 00041 /* node_id default value.*/ 00042 UNS8 mbed_master_bDeviceNodeId = 0x00; 00043 00044 /**************************************************************************/ 00045 /* Array of message processing information */ 00046 00047 const UNS8 mbed_master_iam_a_slave = 0; 00048 00049 TIMER_HANDLE mbed_master_heartBeatTimers[1] = {TIMER_NONE}; 00050 00051 /* 00052 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 00053 00054 OBJECT DICTIONARY 00055 00056 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 00057 */ 00058 00059 /* index 0x1000 : Device Type. */ 00060 UNS32 mbed_master_obj1000 = 0x12D; /* 301 */ 00061 subindex mbed_master_Index1000[] = 00062 { 00063 { RO, uint32, sizeof (UNS32), (void*)&mbed_master_obj1000 } 00064 }; 00065 00066 /* index 0x1001 : Error Register. */ 00067 UNS8 mbed_master_obj1001 = 0x0; /* 0 */ 00068 subindex mbed_master_Index1001[] = 00069 { 00070 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_obj1001 } 00071 }; 00072 00073 /* index 0x1003 : Pre-defined Error Field */ 00074 UNS8 mbed_master_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/ 00075 UNS32 mbed_master_obj1003[] = 00076 { 00077 0x0 /* 0 */ 00078 }; 00079 ODCallback_t mbed_master_Index1003_callbacks[] = 00080 { 00081 NULL, 00082 NULL, 00083 }; 00084 subindex mbed_master_Index1003[] = 00085 { 00086 { RW, valueRange_EMC, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1003 }, 00087 { RO, uint32, sizeof (UNS32), (void*)&mbed_master_obj1003[0] } 00088 }; 00089 00090 /* index 0x1005 : SYNC COB ID. */ 00091 UNS32 mbed_master_obj1005 = 0x40000080; /* 1073741952 */ 00092 ODCallback_t mbed_master_Index1005_callbacks[] = 00093 { 00094 NULL, 00095 }; 00096 subindex mbed_master_Index1005[] = 00097 { 00098 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1005 } 00099 }; 00100 00101 /* index 0x1006 : Communication / Cycle Period. */ 00102 UNS32 mbed_master_obj1006 = 0xC350; /* 50000 */ 00103 ODCallback_t mbed_master_Index1006_callbacks[] = 00104 { 00105 NULL, 00106 }; 00107 subindex mbed_master_Index1006[] = 00108 { 00109 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1006 } 00110 }; 00111 00112 /* index 0x1010 : Store parameters. */ 00113 UNS8 mbed_master_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/ 00114 UNS32 mbed_master_obj1010_Save_All_Parameters = 0x0; /* 0 */ 00115 UNS32 mbed_master_obj1010_Save_Communication_Parameters = 0x0; /* 0 */ 00116 UNS32 mbed_master_obj1010_Save_Application_Parameters = 0x0; /* 0 */ 00117 UNS32 mbed_master_obj1010_Save_Manufacturer_Parameters_1 = 0x0; /* 0 */ 00118 subindex mbed_master_Index1010[] = 00119 { 00120 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1010 }, 00121 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1010_Save_All_Parameters }, 00122 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1010_Save_Communication_Parameters }, 00123 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1010_Save_Application_Parameters }, 00124 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1010_Save_Manufacturer_Parameters_1 } 00125 }; 00126 00127 /* index 0x1011 : Restore Default Parameters. */ 00128 UNS8 mbed_master_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/ 00129 UNS32 mbed_master_obj1011_Restore_All_Default_Parameters = 0x0; /* 0 */ 00130 UNS32 mbed_master_obj1011_Restore_Communication_Default_Parameters = 0x0; /* 0 */ 00131 UNS32 mbed_master_obj1011_Restore_Application_Default_Parameters = 0x0; /* 0 */ 00132 UNS32 mbed_master_obj1011_Restore_Manufacturer_Defined_Default_Parameters_1 = 0x0; /* 0 */ 00133 subindex mbed_master_Index1011[] = 00134 { 00135 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1011 }, 00136 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1011_Restore_All_Default_Parameters }, 00137 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1011_Restore_Communication_Default_Parameters }, 00138 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1011_Restore_Application_Default_Parameters }, 00139 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1011_Restore_Manufacturer_Defined_Default_Parameters_1 } 00140 }; 00141 00142 /* index 0x1014 : Emergency COB ID. */ 00143 UNS32 mbed_master_obj1014 = 0x80; /* 128 */ 00144 subindex mbed_master_Index1014[] = 00145 { 00146 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1014 } 00147 }; 00148 00149 /* index 0x1016 : Consumer Heartbeat Time. */ 00150 UNS8 mbed_master_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ 00151 UNS32 mbed_master_obj1016[] = 00152 { 00153 0x205DC /* 132572 */ 00154 }; 00155 subindex mbed_master_Index1016[] = 00156 { 00157 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1016 }, 00158 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1016[0] } 00159 }; 00160 00161 /* index 0x1017 : Producer Heartbeat Time */ 00162 UNS16 mbed_master_obj1017 = 0x0; /* 0 */ 00163 00164 /* index 0x1018 : Identity. */ 00165 UNS8 mbed_master_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ 00166 UNS32 mbed_master_obj1018_Vendor_ID = 0x0; /* 0 */ 00167 UNS32 mbed_master_obj1018_Product_Code = 0x0; /* 0 */ 00168 UNS32 mbed_master_obj1018_Revision_Number = 0x0; /* 0 */ 00169 UNS32 mbed_master_obj1018_Serial_Number = 0x0; /* 0 */ 00170 subindex mbed_master_Index1018[] = 00171 { 00172 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1018 }, 00173 { RO, uint32, sizeof (UNS32), (void*)&mbed_master_obj1018_Vendor_ID }, 00174 { RO, uint32, sizeof (UNS32), (void*)&mbed_master_obj1018_Product_Code }, 00175 { RO, uint32, sizeof (UNS32), (void*)&mbed_master_obj1018_Revision_Number }, 00176 { RO, uint32, sizeof (UNS32), (void*)&mbed_master_obj1018_Serial_Number } 00177 }; 00178 00179 /* index 0x1280 : Client SDO 1 Parameter. */ 00180 UNS8 mbed_master_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ 00181 UNS32 mbed_master_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x582; /* 1410 */ 00182 UNS32 mbed_master_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x582; /* 1410 */ 00183 UNS8 mbed_master_obj1280_Node_ID_of_the_SDO_Server = 0x2; /* 2 */ 00184 subindex mbed_master_Index1280[] = 00185 { 00186 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1280 }, 00187 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, 00188 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1280_COB_ID_Server_to_Client_Receive_SDO }, 00189 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1280_Node_ID_of_the_SDO_Server } 00190 }; 00191 00192 /* index 0x1400 : Receive PDO 1 Parameter. */ 00193 UNS8 mbed_master_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ 00194 UNS32 mbed_master_obj1400_COB_ID_used_by_PDO = 0x200; /* 512 */ 00195 UNS8 mbed_master_obj1400_Transmission_Type = 0x1; /* 1 */ 00196 UNS16 mbed_master_obj1400_Inhibit_Time = 0x0; /* 0 */ 00197 UNS8 mbed_master_obj1400_Compatibility_Entry = 0x0; /* 0 */ 00198 UNS16 mbed_master_obj1400_Event_Timer = 0x0; /* 0 */ 00199 subindex mbed_master_Index1400[] = 00200 { 00201 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1400 }, 00202 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1400_COB_ID_used_by_PDO }, 00203 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1400_Transmission_Type }, 00204 { RW, uint16, sizeof (UNS16), (void*)&mbed_master_obj1400_Inhibit_Time }, 00205 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1400_Compatibility_Entry }, 00206 { RW, uint16, sizeof (UNS16), (void*)&mbed_master_obj1400_Event_Timer } 00207 }; 00208 00209 /* index 0x1401 : Receive PDO 2 Parameter. */ 00210 UNS8 mbed_master_highestSubIndex_obj1401 = 5; /* number of subindex - 1*/ 00211 UNS32 mbed_master_obj1401_COB_ID_used_by_PDO = 0x300; /* 768 */ 00212 UNS8 mbed_master_obj1401_Transmission_Type = 0x0; /* 0 */ 00213 UNS16 mbed_master_obj1401_Inhibit_Time = 0x0; /* 0 */ 00214 UNS8 mbed_master_obj1401_Compatibility_Entry = 0x0; /* 0 */ 00215 UNS16 mbed_master_obj1401_Event_Timer = 0x0; /* 0 */ 00216 subindex mbed_master_Index1401[] = 00217 { 00218 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1401 }, 00219 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1401_COB_ID_used_by_PDO }, 00220 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1401_Transmission_Type }, 00221 { RW, uint16, sizeof (UNS16), (void*)&mbed_master_obj1401_Inhibit_Time }, 00222 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1401_Compatibility_Entry }, 00223 { RW, uint16, sizeof (UNS16), (void*)&mbed_master_obj1401_Event_Timer } 00224 }; 00225 00226 /* index 0x1402 : Receive PDO 3 Parameter. */ 00227 UNS8 mbed_master_highestSubIndex_obj1402 = 5; /* number of subindex - 1*/ 00228 UNS32 mbed_master_obj1402_COB_ID_used_by_PDO = 0x191; /* 401 */ 00229 UNS8 mbed_master_obj1402_Transmission_Type = 0x0; /* 0 */ 00230 UNS16 mbed_master_obj1402_Inhibit_Time = 0x0; /* 0 */ 00231 UNS8 mbed_master_obj1402_Compatibility_Entry = 0x0; /* 0 */ 00232 UNS16 mbed_master_obj1402_Event_Timer = 0x0; /* 0 */ 00233 subindex mbed_master_Index1402[] = 00234 { 00235 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1402 }, 00236 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1402_COB_ID_used_by_PDO }, 00237 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1402_Transmission_Type }, 00238 { RW, uint16, sizeof (UNS16), (void*)&mbed_master_obj1402_Inhibit_Time }, 00239 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1402_Compatibility_Entry }, 00240 { RW, uint16, sizeof (UNS16), (void*)&mbed_master_obj1402_Event_Timer } 00241 }; 00242 00243 /* index 0x1403 : Receive PDO 4 Parameter. */ 00244 UNS8 mbed_master_highestSubIndex_obj1403 = 5; /* number of subindex - 1*/ 00245 UNS32 mbed_master_obj1403_COB_ID_used_by_PDO = 0x482; /* 1154 */ 00246 UNS8 mbed_master_obj1403_Transmission_Type = 0x0; /* 0 */ 00247 UNS16 mbed_master_obj1403_Inhibit_Time = 0x0; /* 0 */ 00248 UNS8 mbed_master_obj1403_Compatibility_Entry = 0x0; /* 0 */ 00249 UNS16 mbed_master_obj1403_Event_Timer = 0x0; /* 0 */ 00250 subindex mbed_master_Index1403[] = 00251 { 00252 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1403 }, 00253 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1403_COB_ID_used_by_PDO }, 00254 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1403_Transmission_Type }, 00255 { RW, uint16, sizeof (UNS16), (void*)&mbed_master_obj1403_Inhibit_Time }, 00256 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_obj1403_Compatibility_Entry }, 00257 { RW, uint16, sizeof (UNS16), (void*)&mbed_master_obj1403_Event_Timer } 00258 }; 00259 00260 /* index 0x1600 : Receive PDO 1 Mapping. */ 00261 UNS8 mbed_master_highestSubIndex_obj1600 = 10; /* number of subindex - 1*/ 00262 UNS32 mbed_master_obj1600[] = 00263 { 00264 0x20000001, /* 536870913 */ 00265 0x20010001, /* 536936449 */ 00266 0x20020001, /* 537001985 */ 00267 0x20030001, /* 537067521 */ 00268 0x20040001, /* 537133057 */ 00269 0x20050001, /* 537198593 */ 00270 0x20060001, /* 537264129 */ 00271 0x20070001, /* 537329665 */ 00272 0x20080008, /* 537395208 */ 00273 0x20090020 /* 537460768 */ 00274 }; 00275 subindex mbed_master_Index1600[] = 00276 { 00277 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1600 }, 00278 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[0] }, 00279 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[1] }, 00280 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[2] }, 00281 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[3] }, 00282 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[4] }, 00283 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[5] }, 00284 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[6] }, 00285 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[7] }, 00286 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[8] }, 00287 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1600[9] } 00288 }; 00289 00290 /* index 0x1601 : Receive PDO 2 Mapping. */ 00291 UNS8 mbed_master_highestSubIndex_obj1601 = 1; /* number of subindex - 1*/ 00292 UNS32 mbed_master_obj1601[] = 00293 { 00294 0x200A0010 /* 537526288 */ 00295 }; 00296 subindex mbed_master_Index1601[] = 00297 { 00298 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1601 }, 00299 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1601[0] } 00300 }; 00301 00302 /* index 0x1602 : Receive PDO 3 Mapping. */ 00303 UNS8 mbed_master_highestSubIndex_obj1602 = 1; /* number of subindex - 1*/ 00304 UNS32 mbed_master_obj1602[] = 00305 { 00306 0x200B0010 /* 537591824 */ 00307 }; 00308 subindex mbed_master_Index1602[] = 00309 { 00310 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1602 }, 00311 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1602[0] } 00312 }; 00313 00314 /* index 0x1603 : Receive PDO 4 Mapping. */ 00315 UNS8 mbed_master_highestSubIndex_obj1603 = 1; /* number of subindex - 1*/ 00316 UNS32 mbed_master_obj1603[] = 00317 { 00318 0x200C0010 /* 537657360 */ 00319 }; 00320 subindex mbed_master_Index1603[] = 00321 { 00322 { RW, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1603 }, 00323 { RW, uint32, sizeof (UNS32), (void*)&mbed_master_obj1603[0] } 00324 }; 00325 00326 /* index 0x1F22 : Concise DCF. */ 00327 UNS8 mbed_master_highestSubIndex_obj1F22 = 2; /* number of subindex - 1*/ 00328 INTEGER8* mbed_master_obj1F22[] = 00329 { 00330 (char*)"", 00331 (char*)"\x01\x00\x00\x00\x17\x10\x00\x02\x00\x00\x00\xe8\x03" 00332 }; 00333 subindex mbed_master_Index1F22[] = 00334 { 00335 { RO, uint8, sizeof (UNS8), (void*)&mbed_master_highestSubIndex_obj1F22 }, 00336 { RW, domain, 0, (void*)&mbed_master_obj1F22[0] }, 00337 { RW, domain, 13, (void*)&mbed_master_obj1F22[1] } 00338 }; 00339 00340 /* index 0x2000 : Mapped variable MasterMap1 */ 00341 ODCallback_t MasterMap1_callbacks[] = 00342 { 00343 NULL, 00344 }; 00345 subindex mbed_master_Index2000[] = 00346 { 00347 { RW, boolean, sizeof (UNS8), (void*)&MasterMap1 } 00348 }; 00349 00350 /* index 0x2001 : Mapped variable MasterMap2 */ 00351 subindex mbed_master_Index2001[] = 00352 { 00353 { RW, boolean, sizeof (UNS8), (void*)&MasterMap2 } 00354 }; 00355 00356 /* index 0x2002 : Mapped variable MasterMap3 */ 00357 subindex mbed_master_Index2002[] = 00358 { 00359 { RW, boolean, sizeof (UNS8), (void*)&MasterMap3 } 00360 }; 00361 00362 /* index 0x2003 : Mapped variable MasterMap4 */ 00363 subindex mbed_master_Index2003[] = 00364 { 00365 { RW, boolean, sizeof (UNS8), (void*)&MasterMap4 } 00366 }; 00367 00368 /* index 0x2004 : Mapped variable MasterMap5 */ 00369 subindex mbed_master_Index2004[] = 00370 { 00371 { RW, boolean, sizeof (UNS8), (void*)&MasterMap5 } 00372 }; 00373 00374 /* index 0x2005 : Mapped variable MasterMap6 */ 00375 subindex mbed_master_Index2005[] = 00376 { 00377 { RW, boolean, sizeof (UNS8), (void*)&MasterMap6 } 00378 }; 00379 00380 /* index 0x2006 : Mapped variable MasterMap7 */ 00381 subindex mbed_master_Index2006[] = 00382 { 00383 { RW, boolean, sizeof (UNS8), (void*)&MasterMap7 } 00384 }; 00385 00386 /* index 0x2007 : Mapped variable MasterMap8 */ 00387 subindex mbed_master_Index2007[] = 00388 { 00389 { RW, boolean, sizeof (UNS8), (void*)&MasterMap8 } 00390 }; 00391 00392 /* index 0x2008 : Mapped variable MasterMap9 */ 00393 subindex mbed_master_Index2008[] = 00394 { 00395 { RW, uint8, sizeof (UNS8), (void*)&MasterMap9 } 00396 }; 00397 00398 /* index 0x2009 : Mapped variable MasterMap10 */ 00399 subindex mbed_master_Index2009[] = 00400 { 00401 { RW, uint32, sizeof (UNS32), (void*)&MasterMap10 } 00402 }; 00403 00404 /* index 0x200A : Mapped variable MasterMap11 */ 00405 subindex mbed_master_Index200A[] = 00406 { 00407 { RW, uint16, sizeof (UNS16), (void*)&MasterMap11 } 00408 }; 00409 00410 /* index 0x200B : Mapped variable MasterMap12 */ 00411 subindex mbed_master_Index200B[] = 00412 { 00413 { RW, int16, sizeof (INTEGER16), (void*)&MasterMap12 } 00414 }; 00415 00416 /* index 0x200C : Mapped variable MasterMap13 */ 00417 subindex mbed_master_Index200C[] = 00418 { 00419 { RW, int16, sizeof (INTEGER16), (void*)&MasterMap13 } 00420 }; 00421 00422 /**************************************************************************/ 00423 /* Declaration of pointed variables */ 00424 /**************************************************************************/ 00425 00426 const indextable mbed_master_objdict[] = 00427 { 00428 { (subindex*)mbed_master_Index1000,sizeof(mbed_master_Index1000)/sizeof(mbed_master_Index1000[0]), 0x1000}, 00429 { (subindex*)mbed_master_Index1001,sizeof(mbed_master_Index1001)/sizeof(mbed_master_Index1001[0]), 0x1001}, 00430 { (subindex*)mbed_master_Index1005,sizeof(mbed_master_Index1005)/sizeof(mbed_master_Index1005[0]), 0x1005}, 00431 { (subindex*)mbed_master_Index1006,sizeof(mbed_master_Index1006)/sizeof(mbed_master_Index1006[0]), 0x1006}, 00432 { (subindex*)mbed_master_Index1010,sizeof(mbed_master_Index1010)/sizeof(mbed_master_Index1010[0]), 0x1010}, 00433 { (subindex*)mbed_master_Index1011,sizeof(mbed_master_Index1011)/sizeof(mbed_master_Index1011[0]), 0x1011}, 00434 { (subindex*)mbed_master_Index1014,sizeof(mbed_master_Index1014)/sizeof(mbed_master_Index1014[0]), 0x1014}, 00435 { (subindex*)mbed_master_Index1016,sizeof(mbed_master_Index1016)/sizeof(mbed_master_Index1016[0]), 0x1016}, 00436 { (subindex*)mbed_master_Index1018,sizeof(mbed_master_Index1018)/sizeof(mbed_master_Index1018[0]), 0x1018}, 00437 { (subindex*)mbed_master_Index1280,sizeof(mbed_master_Index1280)/sizeof(mbed_master_Index1280[0]), 0x1280}, 00438 { (subindex*)mbed_master_Index1400,sizeof(mbed_master_Index1400)/sizeof(mbed_master_Index1400[0]), 0x1400}, 00439 { (subindex*)mbed_master_Index1401,sizeof(mbed_master_Index1401)/sizeof(mbed_master_Index1401[0]), 0x1401}, 00440 { (subindex*)mbed_master_Index1402,sizeof(mbed_master_Index1402)/sizeof(mbed_master_Index1402[0]), 0x1402}, 00441 { (subindex*)mbed_master_Index1403,sizeof(mbed_master_Index1403)/sizeof(mbed_master_Index1403[0]), 0x1403}, 00442 { (subindex*)mbed_master_Index1600,sizeof(mbed_master_Index1600)/sizeof(mbed_master_Index1600[0]), 0x1600}, 00443 { (subindex*)mbed_master_Index1601,sizeof(mbed_master_Index1601)/sizeof(mbed_master_Index1601[0]), 0x1601}, 00444 { (subindex*)mbed_master_Index1602,sizeof(mbed_master_Index1602)/sizeof(mbed_master_Index1602[0]), 0x1602}, 00445 { (subindex*)mbed_master_Index1603,sizeof(mbed_master_Index1603)/sizeof(mbed_master_Index1603[0]), 0x1603}, 00446 { (subindex*)mbed_master_Index1F22,sizeof(mbed_master_Index1F22)/sizeof(mbed_master_Index1F22[0]), 0x1F22}, 00447 { (subindex*)mbed_master_Index2000,sizeof(mbed_master_Index2000)/sizeof(mbed_master_Index2000[0]), 0x2000}, 00448 { (subindex*)mbed_master_Index2001,sizeof(mbed_master_Index2001)/sizeof(mbed_master_Index2001[0]), 0x2001}, 00449 { (subindex*)mbed_master_Index2002,sizeof(mbed_master_Index2002)/sizeof(mbed_master_Index2002[0]), 0x2002}, 00450 { (subindex*)mbed_master_Index2003,sizeof(mbed_master_Index2003)/sizeof(mbed_master_Index2003[0]), 0x2003}, 00451 { (subindex*)mbed_master_Index2004,sizeof(mbed_master_Index2004)/sizeof(mbed_master_Index2004[0]), 0x2004}, 00452 { (subindex*)mbed_master_Index2005,sizeof(mbed_master_Index2005)/sizeof(mbed_master_Index2005[0]), 0x2005}, 00453 { (subindex*)mbed_master_Index2006,sizeof(mbed_master_Index2006)/sizeof(mbed_master_Index2006[0]), 0x2006}, 00454 { (subindex*)mbed_master_Index2007,sizeof(mbed_master_Index2007)/sizeof(mbed_master_Index2007[0]), 0x2007}, 00455 { (subindex*)mbed_master_Index2008,sizeof(mbed_master_Index2008)/sizeof(mbed_master_Index2008[0]), 0x2008}, 00456 { (subindex*)mbed_master_Index2009,sizeof(mbed_master_Index2009)/sizeof(mbed_master_Index2009[0]), 0x2009}, 00457 { (subindex*)mbed_master_Index200A,sizeof(mbed_master_Index200A)/sizeof(mbed_master_Index200A[0]), 0x200A}, 00458 { (subindex*)mbed_master_Index200B,sizeof(mbed_master_Index200B)/sizeof(mbed_master_Index200B[0]), 0x200B}, 00459 { (subindex*)mbed_master_Index200C,sizeof(mbed_master_Index200C)/sizeof(mbed_master_Index200C[0]), 0x200C}, 00460 }; 00461 00462 const indextable * mbed_master_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) 00463 { 00464 int i; 00465 *callbacks = NULL; 00466 switch(wIndex){ 00467 case 0x1000: i = 0;break; 00468 case 0x1001: i = 1;break; 00469 case 0x1005: i = 2;*callbacks = mbed_master_Index1005_callbacks; break; 00470 case 0x1006: i = 3;*callbacks = mbed_master_Index1006_callbacks; break; 00471 case 0x1010: i = 4;break; 00472 case 0x1011: i = 5;break; 00473 case 0x1014: i = 6;break; 00474 case 0x1016: i = 7;break; 00475 case 0x1018: i = 8;break; 00476 case 0x1280: i = 9;break; 00477 case 0x1400: i = 10;break; 00478 case 0x1401: i = 11;break; 00479 case 0x1402: i = 12;break; 00480 case 0x1403: i = 13;break; 00481 case 0x1600: i = 14;break; 00482 case 0x1601: i = 15;break; 00483 case 0x1602: i = 16;break; 00484 case 0x1603: i = 17;break; 00485 case 0x1F22: i = 18;break; 00486 case 0x2000: i = 19;*callbacks = MasterMap1_callbacks; break; 00487 case 0x2001: i = 20;break; 00488 case 0x2002: i = 21;break; 00489 case 0x2003: i = 22;break; 00490 case 0x2004: i = 23;break; 00491 case 0x2005: i = 24;break; 00492 case 0x2006: i = 25;break; 00493 case 0x2007: i = 26;break; 00494 case 0x2008: i = 27;break; 00495 case 0x2009: i = 28;break; 00496 case 0x200A: i = 29;break; 00497 case 0x200B: i = 30;break; 00498 case 0x200C: i = 31;break; 00499 default: 00500 *errorCode = OD_NO_SUCH_OBJECT; 00501 return NULL; 00502 } 00503 *errorCode = OD_SUCCESSFUL; 00504 return &mbed_master_objdict[i]; 00505 } 00506 00507 /* 00508 * To count at which received SYNC a PDO must be sent. 00509 * Even if no pdoTransmit are defined, at least one entry is computed 00510 * for compilations issues. 00511 */ 00512 s_PDO_status mbed_master_PDO_status[1] = {s_PDO_status_Initializer}; 00513 00514 const quick_index mbed_master_firstIndex = { 00515 0, /* SDO_SVR */ 00516 9, /* SDO_CLT */ 00517 10, /* PDO_RCV */ 00518 14, /* PDO_RCV_MAP */ 00519 0, /* PDO_TRS */ 00520 0 /* PDO_TRS_MAP */ 00521 }; 00522 00523 const quick_index mbed_master_lastIndex = { 00524 0, /* SDO_SVR */ 00525 9, /* SDO_CLT */ 00526 13, /* PDO_RCV */ 00527 17, /* PDO_RCV_MAP */ 00528 0, /* PDO_TRS */ 00529 0 /* PDO_TRS_MAP */ 00530 }; 00531 00532 const UNS16 mbed_master_ObjdictSize = sizeof(mbed_master_objdict)/sizeof(mbed_master_objdict[0]); 00533 00534 CO_Data mbed_master_Data = CANOPEN_NODE_DATA_INITIALIZER(mbed_master); 00535
Generated on Tue Jul 12 2022 17:11:51 by
1.7.2