diff -r 003cc3c63855 -r f49e5a6b7804 doc/doxygen/html/TestSlave_8c-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/doxygen/html/TestSlave_8c-source.html Fri Jun 08 09:23:56 2007 +0200 @@ -0,0 +1,436 @@ + + +CanFestival: examples/TestMasterSlave/TestSlave.c Source File + + + + +
+
+
+
+ +

TestSlave.c

Go to the documentation of this file.
00001 
+00002 /* File generated by gen_cfile.py. Should not be modified. */
+00003 
+00004 #include "TestSlave.h"
+00005 
+00006 /**************************************************************************/
+00007 /* Declaration of the mapped variables                                    */
+00008 /**************************************************************************/
+00009 UNS8 SlaveMap1 = 0x0;           /* Mapped at index 0x2000, subindex 0x00 */
+00010 UNS8 SlaveMap2 = 0x0;           /* Mapped at index 0x2001, subindex 0x00 */
+00011 UNS8 SlaveMap3 = 0x0;           /* Mapped at index 0x2002, subindex 0x00 */
+00012 UNS8 SlaveMap4 = 0x0;           /* Mapped at index 0x2003, subindex 0x00 */
+00013 UNS8 SlaveMap5 = 0x0;           /* Mapped at index 0x2004, subindex 0x00 */
+00014 UNS8 SlaveMap6 = 0x0;           /* Mapped at index 0x2005, subindex 0x00 */
+00015 UNS8 SlaveMap7 = 0x0;           /* Mapped at index 0x2006, subindex 0x00 */
+00016 UNS8 SlaveMap8 = 0x0;           /* Mapped at index 0x2007, subindex 0x00 */
+00017 UNS8 SlaveMap9 = 0x0;           /* Mapped at index 0x2008, subindex 0x00 */
+00018 UNS32 SlaveMap10 = 0x0;         /* Mapped at index 0x2009, subindex 0x00 */
+00019 UNS16 SlaveMap11 = 0x0;         /* Mapped at index 0x200A, subindex 0x00 */
+00020 
+00021 /**************************************************************************/
+00022 /* Declaration of the value range types                                   */
+00023 /**************************************************************************/
+00024 
+00025 UNS32 TestSlave_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 TestSlave_bDeviceNodeId = 0x00;
+00037 
+00038 /**************************************************************************/
+00039 /* Array of message processing information */
+00040 
+00041 const UNS8 TestSlave_iam_a_slave = 1;
+00042 
+00043 TIMER_HANDLE TestSlave_heartBeatTimers[1];
+00044 
+00045 /*
+00046 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
+00047 
+00048                                OBJECT DICTIONARY
+00049 
+00050 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
+00051 */
+00052 
+00053 /* index 0x1000 :   Device Type. */
+00054                     UNS32 TestSlave_obj1000 = 0x12D;    /* 301 */
+00055                     subindex TestSlave_Index1000[] = 
+00056                      {
+00057                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1000 }
+00058                      };
+00059 
+00060 /* index 0x1001 :   Error Register. */
+00061                     UNS8 TestSlave_obj1001 = 0x0;       /* 0 */
+00062                     subindex TestSlave_Index1001[] = 
+00063                      {
+00064                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_obj1001 }
+00065                      };
+00066 
+00067 /* index 0x1005 :   SYNC COB ID. */
+00068                     UNS32 TestSlave_obj1005 = 0x80;     /* 128 */
+00069                     ODCallback_t TestSlave_Index1005_callbacks[] = 
+00070                      {
+00071                        NULL,
+00072                      };
+00073                     subindex TestSlave_Index1005[] = 
+00074                      {
+00075                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1005 }
+00076                      };
+00077 
+00078 /* index 0x1006 :   Communication / Cycle Period. */
+00079                     UNS32 TestSlave_obj1006 = 0x0;      /* 0 */
+00080                     ODCallback_t TestSlave_Index1006_callbacks[] = 
+00081                      {
+00082                        NULL,
+00083                      };
+00084                     subindex TestSlave_Index1006[] = 
+00085                      {
+00086                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1006 }
+00087                      };
+00088 
+00089 /* index 0x1010 :   Store parameters. */
+00090                     UNS8 TestSlave_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/
+00091                     UNS32 TestSlave_obj1010_Save_All_Parameters = 0x0;  /* 0 */
+00092                     UNS32 TestSlave_obj1010_Save_Communication_Parameters = 0x0;        /* 0 */
+00093                     UNS32 TestSlave_obj1010_Save_Application_Parameters = 0x0;  /* 0 */
+00094                     UNS32 TestSlave_obj1010_Save_Manufacturer_Parameters = 0x0; /* 0 */
+00095                     ODCallback_t TestSlave_Index1010_callbacks[] = 
+00096                      {
+00097                        NULL,
+00098                        NULL,
+00099                        NULL,
+00100                        NULL,
+00101                        NULL,
+00102                      };
+00103                     subindex TestSlave_Index1010[] = 
+00104                      {
+00105                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1010 },
+00106                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_All_Parameters },
+00107                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Communication_Parameters },
+00108                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Application_Parameters },
+00109                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Manufacturer_Parameters }
+00110                      };
+00111 
+00112 /* index 0x1011 :   Restore Default Parameters. */
+00113                     UNS8 TestSlave_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/
+00114                     UNS32 TestSlave_obj1011_Restore_All_Default_Parameters = 0x0;       /* 0 */
+00115                     UNS32 TestSlave_obj1011_Restore_Communication_Default_Parameters = 0x0;     /* 0 */
+00116                     UNS32 TestSlave_obj1011_Restore_Application_Default_Parameters = 0x0;       /* 0 */
+00117                     UNS32 TestSlave_obj1011_Restore_Manufacturer_Default_Parameters = 0x0;      /* 0 */
+00118                     ODCallback_t TestSlave_Index1011_callbacks[] = 
+00119                      {
+00120                        NULL,
+00121                        NULL,
+00122                        NULL,
+00123                        NULL,
+00124                        NULL,
+00125                      };
+00126                     subindex TestSlave_Index1011[] = 
+00127                      {
+00128                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1011 },
+00129                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_All_Default_Parameters },
+00130                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Communication_Default_Parameters },
+00131                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Application_Default_Parameters },
+00132                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Manufacturer_Default_Parameters }
+00133                      };
+00134 
+00135 /* index 0x1016 :   Consumer Heartbeat Time */
+00136                     UNS8 TestSlave_highestSubIndex_obj1016 = 0;
+00137                     UNS32 TestSlave_obj1016[]={0};
+00138 
+00139 /* index 0x1017 :   Producer Heartbeat Time. */
+00140                     UNS16 TestSlave_obj1017 = 0x0;      /* 0 */
+00141                     ODCallback_t TestSlave_Index1017_callbacks[] = 
+00142                      {
+00143                        NULL,
+00144                      };
+00145                     subindex TestSlave_Index1017[] = 
+00146                      {
+00147                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1017 }
+00148                      };
+00149 
+00150 /* index 0x1018 :   Identity. */
+00151                     UNS8 TestSlave_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
+00152                     UNS32 TestSlave_obj1018_Vendor_ID = 0x0;    /* 0 */
+00153                     UNS32 TestSlave_obj1018_Product_Code = 0x0; /* 0 */
+00154                     UNS32 TestSlave_obj1018_Revision_Number = 0x0;      /* 0 */
+00155                     UNS32 TestSlave_obj1018_Serial_Number = 0x0;        /* 0 */
+00156                     subindex TestSlave_Index1018[] = 
+00157                      {
+00158                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1018 },
+00159                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Vendor_ID },
+00160                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Product_Code },
+00161                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Revision_Number },
+00162                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Serial_Number }
+00163                      };
+00164 
+00165 /* index 0x1200 :   Server SDO Parameter. */
+00166                     UNS8 TestSlave_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
+00167                     UNS32 TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x601;        /* 1537 */
+00168                     UNS32 TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x581;       /* 1409 */
+00169                     subindex TestSlave_Index1200[] = 
+00170                      {
+00171                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1200 },
+00172                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO },
+00173                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
+00174                      };
+00175 
+00176 /* index 0x1800 :   Transmit PDO 1 Parameter. */
+00177                     UNS8 TestSlave_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/
+00178                     UNS32 TestSlave_obj1800_COB_ID_used_by_PDO = 0x182; /* 386 */
+00179                     UNS8 TestSlave_obj1800_Transmission_Type = 0x0;     /* 0 */
+00180                     UNS16 TestSlave_obj1800_Inhibit_Time = 0x0; /* 0 */
+00181                     UNS8 TestSlave_obj1800_Compatibility_Entry = 0x0;   /* 0 */
+00182                     UNS16 TestSlave_obj1800_Event_Timer = 0x0;  /* 0 */
+00183                     subindex TestSlave_Index1800[] = 
+00184                      {
+00185                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1800 },
+00186                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1800_COB_ID_used_by_PDO },
+00187                        { RW|TO_BE_SAVE, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Transmission_Type },
+00188                        { RW|TO_BE_SAVE, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Inhibit_Time },
+00189                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Compatibility_Entry },
+00190                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Event_Timer }
+00191                      };
+00192 
+00193 /* index 0x1801 :   Transmit PDO 2 Parameter. */
+00194                     UNS8 TestSlave_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/
+00195                     UNS32 TestSlave_obj1801_COB_ID_used_by_PDO = 0x0;   /* 0 */
+00196                     UNS8 TestSlave_obj1801_Transmission_Type = 0x0;     /* 0 */
+00197                     UNS16 TestSlave_obj1801_Inhibit_Time = 0x0; /* 0 */
+00198                     UNS8 TestSlave_obj1801_Compatibility_Entry = 0x0;   /* 0 */
+00199                     UNS16 TestSlave_obj1801_Event_Timer = 0x0;  /* 0 */
+00200                     subindex TestSlave_Index1801[] = 
+00201                      {
+00202                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1801 },
+00203                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1801_COB_ID_used_by_PDO },
+00204                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Transmission_Type },
+00205                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Inhibit_Time },
+00206                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Compatibility_Entry },
+00207                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Event_Timer }
+00208                      };
+00209 
+00210 /* index 0x1A00 :   Transmit PDO 1 Mapping. */
+00211                     UNS8 TestSlave_highestSubIndex_obj1A00 = 10; /* number of subindex - 1*/
+00212                     UNS32 TestSlave_obj1A00[] = 
+00213                     {
+00214                       0x20000001,       /* 536870913 */
+00215                       0x20010001,       /* 536936449 */
+00216                       0x20020001,       /* 537001985 */
+00217                       0x20030001,       /* 537067521 */
+00218                       0x20040001,       /* 537133057 */
+00219                       0x20050001,       /* 537198593 */
+00220                       0x20060001,       /* 537264129 */
+00221                       0x20070001,       /* 537329665 */
+00222                       0x20080008,       /* 537395208 */
+00223                       0x20090020        /* 537460768 */
+00224                     };
+00225                     subindex TestSlave_Index1A00[] = 
+00226                      {
+00227                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A00 },
+00228                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[0] },
+00229                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[1] },
+00230                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[2] },
+00231                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[3] },
+00232                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[4] },
+00233                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[5] },
+00234                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[6] },
+00235                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[7] },
+00236                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[8] },
+00237                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[9] }
+00238                      };
+00239 
+00240 /* index 0x1A01 :   Transmit PDO 2 Mapping. */
+00241                     UNS8 TestSlave_highestSubIndex_obj1A01 = 1; /* number of subindex - 1*/
+00242                     UNS32 TestSlave_obj1A01[] = 
+00243                     {
+00244                       0x200A0010        /* 537526288 */
+00245                     };
+00246                     subindex TestSlave_Index1A01[] = 
+00247                      {
+00248                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A01 },
+00249                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A01[0] }
+00250                      };
+00251 
+00252 /* index 0x2000 :   Mapped variable SlaveMap1 */
+00253                     subindex TestSlave_Index2000[] = 
+00254                      {
+00255                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap1 }
+00256                      };
+00257 
+00258 /* index 0x2001 :   Mapped variable SlaveMap2 */
+00259                     subindex TestSlave_Index2001[] = 
+00260                      {
+00261                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap2 }
+00262                      };
+00263 
+00264 /* index 0x2002 :   Mapped variable SlaveMap3 */
+00265                     subindex TestSlave_Index2002[] = 
+00266                      {
+00267                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap3 }
+00268                      };
+00269 
+00270 /* index 0x2003 :   Mapped variable SlaveMap4 */
+00271                     subindex TestSlave_Index2003[] = 
+00272                      {
+00273                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap4 }
+00274                      };
+00275 
+00276 /* index 0x2004 :   Mapped variable SlaveMap5 */
+00277                     subindex TestSlave_Index2004[] = 
+00278                      {
+00279                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap5 }
+00280                      };
+00281 
+00282 /* index 0x2005 :   Mapped variable SlaveMap6 */
+00283                     subindex TestSlave_Index2005[] = 
+00284                      {
+00285                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap6 }
+00286                      };
+00287 
+00288 /* index 0x2006 :   Mapped variable SlaveMap7 */
+00289                     subindex TestSlave_Index2006[] = 
+00290                      {
+00291                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap7 }
+00292                      };
+00293 
+00294 /* index 0x2007 :   Mapped variable SlaveMap8 */
+00295                     subindex TestSlave_Index2007[] = 
+00296                      {
+00297                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap8 }
+00298                      };
+00299 
+00300 /* index 0x2008 :   Mapped variable SlaveMap9 */
+00301                     subindex TestSlave_Index2008[] = 
+00302                      {
+00303                        { RW, uint8, sizeof (UNS8), (void*)&SlaveMap9 }
+00304                      };
+00305 
+00306 /* index 0x2009 :   Mapped variable SlaveMap10 */
+00307                     subindex TestSlave_Index2009[] = 
+00308                      {
+00309                        { RW, uint32, sizeof (UNS32), (void*)&SlaveMap10 }
+00310                      };
+00311 
+00312 /* index 0x200A :   Mapped variable SlaveMap11 */
+00313                     subindex TestSlave_Index200A[] = 
+00314                      {
+00315                        { RW, uint16, sizeof (UNS16), (void*)&SlaveMap11 }
+00316                      };
+00317 
+00318 const indextable TestSlave_objdict[] = 
+00319 {
+00320   { (subindex*)TestSlave_Index1000,sizeof(TestSlave_Index1000)/sizeof(TestSlave_Index1000[0]), 0x1000},
+00321   { (subindex*)TestSlave_Index1001,sizeof(TestSlave_Index1001)/sizeof(TestSlave_Index1001[0]), 0x1001},
+00322   { (subindex*)TestSlave_Index1005,sizeof(TestSlave_Index1005)/sizeof(TestSlave_Index1005[0]), 0x1005},
+00323   { (subindex*)TestSlave_Index1006,sizeof(TestSlave_Index1006)/sizeof(TestSlave_Index1006[0]), 0x1006},
+00324   { (subindex*)TestSlave_Index1010,sizeof(TestSlave_Index1010)/sizeof(TestSlave_Index1010[0]), 0x1010},
+00325   { (subindex*)TestSlave_Index1011,sizeof(TestSlave_Index1011)/sizeof(TestSlave_Index1011[0]), 0x1011},
+00326   { (subindex*)TestSlave_Index1017,sizeof(TestSlave_Index1017)/sizeof(TestSlave_Index1017[0]), 0x1017},
+00327   { (subindex*)TestSlave_Index1018,sizeof(TestSlave_Index1018)/sizeof(TestSlave_Index1018[0]), 0x1018},
+00328   { (subindex*)TestSlave_Index1200,sizeof(TestSlave_Index1200)/sizeof(TestSlave_Index1200[0]), 0x1200},
+00329   { (subindex*)TestSlave_Index1800,sizeof(TestSlave_Index1800)/sizeof(TestSlave_Index1800[0]), 0x1800},
+00330   { (subindex*)TestSlave_Index1801,sizeof(TestSlave_Index1801)/sizeof(TestSlave_Index1801[0]), 0x1801},
+00331   { (subindex*)TestSlave_Index1A00,sizeof(TestSlave_Index1A00)/sizeof(TestSlave_Index1A00[0]), 0x1A00},
+00332   { (subindex*)TestSlave_Index1A01,sizeof(TestSlave_Index1A01)/sizeof(TestSlave_Index1A01[0]), 0x1A01},
+00333   { (subindex*)TestSlave_Index2000,sizeof(TestSlave_Index2000)/sizeof(TestSlave_Index2000[0]), 0x2000},
+00334   { (subindex*)TestSlave_Index2001,sizeof(TestSlave_Index2001)/sizeof(TestSlave_Index2001[0]), 0x2001},
+00335   { (subindex*)TestSlave_Index2002,sizeof(TestSlave_Index2002)/sizeof(TestSlave_Index2002[0]), 0x2002},
+00336   { (subindex*)TestSlave_Index2003,sizeof(TestSlave_Index2003)/sizeof(TestSlave_Index2003[0]), 0x2003},
+00337   { (subindex*)TestSlave_Index2004,sizeof(TestSlave_Index2004)/sizeof(TestSlave_Index2004[0]), 0x2004},
+00338   { (subindex*)TestSlave_Index2005,sizeof(TestSlave_Index2005)/sizeof(TestSlave_Index2005[0]), 0x2005},
+00339   { (subindex*)TestSlave_Index2006,sizeof(TestSlave_Index2006)/sizeof(TestSlave_Index2006[0]), 0x2006},
+00340   { (subindex*)TestSlave_Index2007,sizeof(TestSlave_Index2007)/sizeof(TestSlave_Index2007[0]), 0x2007},
+00341   { (subindex*)TestSlave_Index2008,sizeof(TestSlave_Index2008)/sizeof(TestSlave_Index2008[0]), 0x2008},
+00342   { (subindex*)TestSlave_Index2009,sizeof(TestSlave_Index2009)/sizeof(TestSlave_Index2009[0]), 0x2009},
+00343   { (subindex*)TestSlave_Index200A,sizeof(TestSlave_Index200A)/sizeof(TestSlave_Index200A[0]), 0x200A},
+00344 };
+00345 
+00346 const indextable * TestSlave_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
+00347 {
+00348         int i;
+00349         *callbacks = NULL;
+00350         switch(wIndex){
+00351                 case 0x1000: i = 0;break;
+00352                 case 0x1001: i = 1;break;
+00353                 case 0x1005: i = 2;*callbacks = TestSlave_Index1005_callbacks; break;
+00354                 case 0x1006: i = 3;*callbacks = TestSlave_Index1006_callbacks; break;
+00355                 case 0x1010: i = 4;*callbacks = TestSlave_Index1010_callbacks; break;
+00356                 case 0x1011: i = 5;*callbacks = TestSlave_Index1011_callbacks; break;
+00357                 case 0x1017: i = 6;*callbacks = TestSlave_Index1017_callbacks; break;
+00358                 case 0x1018: i = 7;break;
+00359                 case 0x1200: i = 8;break;
+00360                 case 0x1800: i = 9;break;
+00361                 case 0x1801: i = 10;break;
+00362                 case 0x1A00: i = 11;break;
+00363                 case 0x1A01: i = 12;break;
+00364                 case 0x2000: i = 13;break;
+00365                 case 0x2001: i = 14;break;
+00366                 case 0x2002: i = 15;break;
+00367                 case 0x2003: i = 16;break;
+00368                 case 0x2004: i = 17;break;
+00369                 case 0x2005: i = 18;break;
+00370                 case 0x2006: i = 19;break;
+00371                 case 0x2007: i = 20;break;
+00372                 case 0x2008: i = 21;break;
+00373                 case 0x2009: i = 22;break;
+00374                 case 0x200A: i = 23;break;
+00375                 default:
+00376                         *errorCode = OD_NO_SUCH_OBJECT;
+00377                         return NULL;
+00378         }
+00379         *errorCode = OD_SUCCESSFUL;
+00380         return &TestSlave_objdict[i];
+00381 }
+00382 
+00383 /* To count at which received SYNC a PDO must be sent.
+00384  * Even if no pdoTransmit are defined, at least one entry is computed
+00385  * for compilations issues.
+00386  */
+00387 UNS8 TestSlave_count_sync[2] = {0,};
+00388 
+00389 quick_index TestSlave_firstIndex = {
+00390   8, /* SDO_SVR */
+00391   0, /* SDO_CLT */
+00392   0, /* PDO_RCV */
+00393   0, /* PDO_RCV_MAP */
+00394   9, /* PDO_TRS */
+00395   11 /* PDO_TRS_MAP */
+00396 };
+00397 
+00398 quick_index TestSlave_lastIndex = {
+00399   8, /* SDO_SVR */
+00400   0, /* SDO_CLT */
+00401   0, /* PDO_RCV */
+00402   0, /* PDO_RCV_MAP */
+00403   10, /* PDO_TRS */
+00404   12 /* PDO_TRS_MAP */
+00405 };
+00406 
+00407 UNS16 TestSlave_ObjdictSize = sizeof(TestSlave_objdict)/sizeof(TestSlave_objdict[0]); 
+00408 
+00409 CO_Data TestSlave_Data = CANOPEN_NODE_DATA_INITIALIZER(TestSlave);
+00410 
+

Generated on Fri Jun 8 08:51:39 2007 for CanFestival by  + +doxygen 1.5.1
+ +