diff -r 6efc85c5493e -r 1c1e3599d66a doc/doxygen/html/TestMasterMicroMod_2TestMaster_8c-source.html --- a/doc/doxygen/html/TestMasterMicroMod_2TestMaster_8c-source.html Mon Feb 11 11:00:12 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,367 +0,0 @@ - -
-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 DO = 0x0; /* Mapped at index 0x2000, subindex 0x00 */ -00010 UNS8 DI1 = 0x0; /* Mapped at index 0x200F, subindex 0x00 */ -00011 UNS8 DI2 = 0x0; /* Mapped at index 0x2010, subindex 0x00 */ -00012 UNS8 DI3 = 0x0; /* Mapped at index 0x2011, subindex 0x00 */ -00013 UNS8 DI4 = 0x0; /* Mapped at index 0x2012, subindex 0x00 */ -00014 UNS8 DI5 = 0x0; /* Mapped at index 0x2013, subindex 0x00 */ -00015 UNS8 DI6 = 0x0; /* Mapped at index 0x2014, subindex 0x00 */ -00016 UNS8 DI7 = 0x0; /* Mapped at index 0x2015, subindex 0x00 */ -00017 UNS8 DI8 = 0x0; /* Mapped at index 0x2016, subindex 0x00 */ -00018 -00019 /**************************************************************************/ -00020 /* Declaration of the value range types */ -00021 /**************************************************************************/ -00022 -00023 UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value) -00024 { -00025 switch (typeValue) { -00026 } -00027 return 0; -00028 } -00029 -00030 /**************************************************************************/ -00031 /* The node id */ -00032 /**************************************************************************/ -00033 /* node_id default value.*/ -00034 UNS8 TestMaster_bDeviceNodeId = 0x01; -00035 -00036 /**************************************************************************/ -00037 /* Array of message processing information */ -00038 -00039 const UNS8 TestMaster_iam_a_slave = 0; -00040 -00041 TIMER_HANDLE TestMaster_heartBeatTimers[1] = {TIMER_NONE,}; -00042 -00043 /* -00044 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -00045 -00046 OBJECT DICTIONARY -00047 -00048 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -00049 */ -00050 -00051 /* index 0x1000 : Device Type. */ -00052 UNS32 TestMaster_obj1000 = 0x191; /* 401 */ -00053 subindex TestMaster_Index1000[] = -00054 { -00055 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1000 } -00056 }; -00057 -00058 /* index 0x1001 : Error Register. */ -00059 UNS8 TestMaster_obj1001 = 0x0; /* 0 */ -00060 subindex TestMaster_Index1001[] = -00061 { -00062 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 } -00063 }; -00064 -00065 /* index 0x1005 : SYNC COB ID. */ -00066 UNS32 TestMaster_obj1005 = 0x40000080; /* 1073741952 */ -00067 ODCallback_t TestMaster_Index1005_callbacks[] = -00068 { -00069 NULL, -00070 }; -00071 subindex TestMaster_Index1005[] = -00072 { -00073 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1005 } -00074 }; -00075 -00076 /* index 0x1006 : Communication / Cycle Period. */ -00077 UNS32 TestMaster_obj1006 = 0xC350; /* 50000 */ -00078 ODCallback_t TestMaster_Index1006_callbacks[] = -00079 { -00080 NULL, -00081 }; -00082 subindex TestMaster_Index1006[] = -00083 { -00084 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1006 } -00085 }; -00086 -00087 /* index 0x1016 : Consumer Heartbeat Time. */ -00088 UNS8 TestMaster_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ -00089 UNS32 TestMaster_obj1016[] = -00090 { -00091 0x4005DC /* 4195804 */ -00092 }; -00093 subindex TestMaster_Index1016[] = -00094 { -00095 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1016 }, -00096 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1016[0] } -00097 }; -00098 -00099 /* index 0x1017 : Producer Heartbeat Time */ -00100 UNS16 TestMaster_obj1017 = 0x0; /* 0 */ -00101 -00102 /* index 0x1018 : Identity. */ -00103 UNS8 TestMaster_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ -00104 UNS32 TestMaster_obj1018_Vendor_ID = 0x0; /* 0 */ -00105 UNS32 TestMaster_obj1018_Product_Code = 0x0; /* 0 */ -00106 UNS32 TestMaster_obj1018_Revision_Number = 0x0; /* 0 */ -00107 UNS32 TestMaster_obj1018_Serial_Number = 0x0; /* 0 */ -00108 subindex TestMaster_Index1018[] = -00109 { -00110 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1018 }, -00111 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Vendor_ID }, -00112 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Product_Code }, -00113 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Revision_Number }, -00114 { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Serial_Number } -00115 }; -00116 -00117 /* index 0x1280 : Client SDO 1 Parameter. */ -00118 UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ -00119 UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x640; /* 1600 */ -00120 UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x5C0; /* 1472 */ -00121 INTEGER32 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x40; /* 64 */ -00122 subindex TestMaster_Index1280[] = -00123 { -00124 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 }, -00125 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, -00126 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO }, -00127 { RW, int32, sizeof (INTEGER32), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server } -00128 }; -00129 -00130 /* index 0x1400 : Receive PDO 1 Parameter. */ -00131 UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ -00132 UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x1C0; /* 448 */ -00133 UNS8 TestMaster_obj1400_Transmission_Type = 0x1; /* 1 */ -00134 UNS16 TestMaster_obj1400_Inhibit_Time = 0x0; /* 0 */ -00135 UNS8 TestMaster_obj1400_Compatibility_Entry = 0x0; /* 0 */ -00136 UNS16 TestMaster_obj1400_Event_Timer = 0x0; /* 0 */ -00137 subindex TestMaster_Index1400[] = -00138 { -00139 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1400 }, -00140 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1400_COB_ID_used_by_PDO }, -00141 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Transmission_Type }, -00142 { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Inhibit_Time }, -00143 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Compatibility_Entry }, -00144 { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Event_Timer } -00145 }; -00146 -00147 /* index 0x1600 : Receive PDO 1 Mapping. */ -00148 UNS8 TestMaster_highestSubIndex_obj1600 = 8; /* number of subindex - 1*/ -00149 UNS32 TestMaster_obj1600[] = -00150 { -00151 0x200F0001, /* 537853953 */ -00152 0x20100001, /* 537919489 */ -00153 0x20110001, /* 537985025 */ -00154 0x20120001, /* 538050561 */ -00155 0x20130001, /* 538116097 */ -00156 0x20140001, /* 538181633 */ -00157 0x20150001, /* 538247169 */ -00158 0x20160001 /* 538312705 */ -00159 }; -00160 subindex TestMaster_Index1600[] = -00161 { -00162 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 }, -00163 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] }, -00164 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] }, -00165 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[2] }, -00166 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[3] }, -00167 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[4] }, -00168 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[5] }, -00169 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[6] }, -00170 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[7] } -00171 }; -00172 -00173 /* index 0x1800 : Transmit PDO 1 Parameter. */ -00174 UNS8 TestMaster_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/ -00175 UNS32 TestMaster_obj1800_COB_ID_used_by_PDO = 0x240; /* 576 */ -00176 UNS8 TestMaster_obj1800_Transmission_Type = 0x1; /* 1 */ -00177 UNS16 TestMaster_obj1800_Inhibit_Time = 0x0; /* 0 */ -00178 UNS8 TestMaster_obj1800_Compatibility_Entry = 0x0; /* 0 */ -00179 UNS16 TestMaster_obj1800_Event_Timer = 0x0; /* 0 */ -00180 subindex TestMaster_Index1800[] = -00181 { -00182 { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1800 }, -00183 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1800_COB_ID_used_by_PDO }, -00184 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1800_Transmission_Type }, -00185 { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1800_Inhibit_Time }, -00186 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1800_Compatibility_Entry }, -00187 { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1800_Event_Timer } -00188 }; -00189 -00190 /* index 0x1A00 : Transmit PDO 1 Mapping. */ -00191 UNS8 TestMaster_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/ -00192 UNS32 TestMaster_obj1A00[] = -00193 { -00194 0x20000008 /* 536870920 */ -00195 }; -00196 subindex TestMaster_Index1A00[] = -00197 { -00198 { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1A00 }, -00199 { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1A00[0] } -00200 }; -00201 -00202 /* index 0x2000 : Mapped variable DO */ -00203 subindex TestMaster_Index2000[] = -00204 { -00205 { RW, uint8, sizeof (UNS8), (void*)&DO } -00206 }; -00207 -00208 /* index 0x200F : Mapped variable DI1 */ -00209 subindex TestMaster_Index200F[] = -00210 { -00211 { RW, boolean, sizeof (UNS8), (void*)&DI1 } -00212 }; -00213 -00214 /* index 0x2010 : Mapped variable DI2 */ -00215 subindex TestMaster_Index2010[] = -00216 { -00217 { RW, boolean, sizeof (UNS8), (void*)&DI2 } -00218 }; -00219 -00220 /* index 0x2011 : Mapped variable DI3 */ -00221 subindex TestMaster_Index2011[] = -00222 { -00223 { RW, boolean, sizeof (UNS8), (void*)&DI3 } -00224 }; -00225 -00226 /* index 0x2012 : Mapped variable DI4 */ -00227 subindex TestMaster_Index2012[] = -00228 { -00229 { RW, boolean, sizeof (UNS8), (void*)&DI4 } -00230 }; -00231 -00232 /* index 0x2013 : Mapped variable DI5 */ -00233 subindex TestMaster_Index2013[] = -00234 { -00235 { RW, boolean, sizeof (UNS8), (void*)&DI5 } -00236 }; -00237 -00238 /* index 0x2014 : Mapped variable DI6 */ -00239 subindex TestMaster_Index2014[] = -00240 { -00241 { RW, boolean, sizeof (UNS8), (void*)&DI6 } -00242 }; -00243 -00244 /* index 0x2015 : Mapped variable DI7 */ -00245 subindex TestMaster_Index2015[] = -00246 { -00247 { RW, boolean, sizeof (UNS8), (void*)&DI7 } -00248 }; -00249 -00250 /* index 0x2016 : Mapped variable DI8 */ -00251 subindex TestMaster_Index2016[] = -00252 { -00253 { RW, boolean, sizeof (UNS8), (void*)&DI8 } -00254 }; -00255 -00256 const indextable TestMaster_objdict[] = -00257 { -00258 { (subindex*)TestMaster_Index1000,sizeof(TestMaster_Index1000)/sizeof(TestMaster_Index1000[0]), 0x1000}, -00259 { (subindex*)TestMaster_Index1001,sizeof(TestMaster_Index1001)/sizeof(TestMaster_Index1001[0]), 0x1001}, -00260 { (subindex*)TestMaster_Index1005,sizeof(TestMaster_Index1005)/sizeof(TestMaster_Index1005[0]), 0x1005}, -00261 { (subindex*)TestMaster_Index1006,sizeof(TestMaster_Index1006)/sizeof(TestMaster_Index1006[0]), 0x1006}, -00262 { (subindex*)TestMaster_Index1016,sizeof(TestMaster_Index1016)/sizeof(TestMaster_Index1016[0]), 0x1016}, -00263 { (subindex*)TestMaster_Index1018,sizeof(TestMaster_Index1018)/sizeof(TestMaster_Index1018[0]), 0x1018}, -00264 { (subindex*)TestMaster_Index1280,sizeof(TestMaster_Index1280)/sizeof(TestMaster_Index1280[0]), 0x1280}, -00265 { (subindex*)TestMaster_Index1400,sizeof(TestMaster_Index1400)/sizeof(TestMaster_Index1400[0]), 0x1400}, -00266 { (subindex*)TestMaster_Index1600,sizeof(TestMaster_Index1600)/sizeof(TestMaster_Index1600[0]), 0x1600}, -00267 { (subindex*)TestMaster_Index1800,sizeof(TestMaster_Index1800)/sizeof(TestMaster_Index1800[0]), 0x1800}, -00268 { (subindex*)TestMaster_Index1A00,sizeof(TestMaster_Index1A00)/sizeof(TestMaster_Index1A00[0]), 0x1A00}, -00269 { (subindex*)TestMaster_Index2000,sizeof(TestMaster_Index2000)/sizeof(TestMaster_Index2000[0]), 0x2000}, -00270 { (subindex*)TestMaster_Index200F,sizeof(TestMaster_Index200F)/sizeof(TestMaster_Index200F[0]), 0x200F}, -00271 { (subindex*)TestMaster_Index2010,sizeof(TestMaster_Index2010)/sizeof(TestMaster_Index2010[0]), 0x2010}, -00272 { (subindex*)TestMaster_Index2011,sizeof(TestMaster_Index2011)/sizeof(TestMaster_Index2011[0]), 0x2011}, -00273 { (subindex*)TestMaster_Index2012,sizeof(TestMaster_Index2012)/sizeof(TestMaster_Index2012[0]), 0x2012}, -00274 { (subindex*)TestMaster_Index2013,sizeof(TestMaster_Index2013)/sizeof(TestMaster_Index2013[0]), 0x2013}, -00275 { (subindex*)TestMaster_Index2014,sizeof(TestMaster_Index2014)/sizeof(TestMaster_Index2014[0]), 0x2014}, -00276 { (subindex*)TestMaster_Index2015,sizeof(TestMaster_Index2015)/sizeof(TestMaster_Index2015[0]), 0x2015}, -00277 { (subindex*)TestMaster_Index2016,sizeof(TestMaster_Index2016)/sizeof(TestMaster_Index2016[0]), 0x2016}, -00278 }; -00279 -00280 const indextable * TestMaster_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) -00281 { -00282 int i; -00283 *callbacks = NULL; -00284 switch(wIndex){ -00285 case 0x1000: i = 0;break; -00286 case 0x1001: i = 1;break; -00287 case 0x1005: i = 2;*callbacks = TestMaster_Index1005_callbacks; break; -00288 case 0x1006: i = 3;*callbacks = TestMaster_Index1006_callbacks; break; -00289 case 0x1016: i = 4;break; -00290 case 0x1018: i = 5;break; -00291 case 0x1280: i = 6;break; -00292 case 0x1400: i = 7;break; -00293 case 0x1600: i = 8;break; -00294 case 0x1800: i = 9;break; -00295 case 0x1A00: i = 10;break; -00296 case 0x2000: i = 11;break; -00297 case 0x200F: i = 12;break; -00298 case 0x2010: i = 13;break; -00299 case 0x2011: i = 14;break; -00300 case 0x2012: i = 15;break; -00301 case 0x2013: i = 16;break; -00302 case 0x2014: i = 17;break; -00303 case 0x2015: i = 18;break; -00304 case 0x2016: i = 19;break; -00305 default: -00306 *errorCode = OD_NO_SUCH_OBJECT; -00307 return NULL; -00308 } -00309 *errorCode = OD_SUCCESSFUL; -00310 return &TestMaster_objdict[i]; -00311 } -00312 -00313 /* -00314 * To count at which received SYNC a PDO must be sent. -00315 * Even if no pdoTransmit are defined, at least one entry is computed -00316 * for compilations issues. -00317 */ -00318 s_PDO_status TestMaster_PDO_status[1] = {s_PDO_staus_Initializer}; -00319 -00320 quick_index TestMaster_firstIndex = { -00321 0, /* SDO_SVR */ -00322 6, /* SDO_CLT */ -00323 7, /* PDO_RCV */ -00324 8, /* PDO_RCV_MAP */ -00325 9, /* PDO_TRS */ -00326 10 /* PDO_TRS_MAP */ -00327 }; -00328 -00329 quick_index TestMaster_lastIndex = { -00330 0, /* SDO_SVR */ -00331 6, /* SDO_CLT */ -00332 7, /* PDO_RCV */ -00333 8, /* PDO_RCV_MAP */ -00334 9, /* PDO_TRS */ -00335 10 /* PDO_TRS_MAP */ -00336 }; -00337 -00338 UNS16 TestMaster_ObjdictSize = sizeof(TestMaster_objdict)/sizeof(TestMaster_objdict[0]); -00339 -00340 CO_Data TestMaster_Data = CANOPEN_NODE_DATA_INITIALIZER(TestMaster); -00341 -