nico@215: nico@215: nico@215: CanFestival: examples/TestMasterSlave/TestMaster.c Source File nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:
nico@215:
nico@215:
nico@215: nico@215:

TestMaster.c

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

Generated on Fri Jun 8 08:51:39 2007 for CanFestival by  nico@215: nico@215: doxygen 1.5.1
nico@215: nico@215: