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 INTEGER16 SlaveMap12 = 0x0;             /* Mapped at index 0x200B, subindex 0x00 */
00021 INTEGER16 SlaveMap13 = 0x4D2;           /* Mapped at index 0x200C, subindex 0x00 */
00022 
00023 /**************************************************************************/
00024 /* Declaration of the value range types                                   */
00025 /**************************************************************************/
00026 
00027 UNS32 TestSlave_valueRangeTest (UNS8 typeValue, void * value)
00028 {
00029   switch (typeValue) {
00030   }
00031   return 0;
00032 }
00033 
00034 /**************************************************************************/
00035 /* The node id                                                            */
00036 /**************************************************************************/
00037 /* node_id default value.*/
00038 UNS8 TestSlave_bDeviceNodeId = 0x02;
00039 
00040 /**************************************************************************/
00041 /* Array of message processing information */
00042 
00043 const UNS8 TestSlave_iam_a_slave = 1;
00044 
00045 TIMER_HANDLE TestSlave_heartBeatTimers[1];
00046 
00047 /*
00048 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
00049 
00050                                OBJECT DICTIONARY
00051 
00052 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
00053 */
00054 
00055 /* index 0x1000 :   Device Type. */
00056                     UNS32 TestSlave_obj1000 = 0x12D;    /* 301 */
00057                     subindex TestSlave_Index1000[] = 
00058                      {
00059                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1000 }
00060                      };
00061 
00062 /* index 0x1001 :   Error Register. */
00063                     UNS8 TestSlave_obj1001 = 0x0;       /* 0 */
00064                     subindex TestSlave_Index1001[] = 
00065                      {
00066                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_obj1001 }
00067                      };
00068 
00069 /* index 0x1005 :   SYNC COB ID. */
00070                     UNS32 TestSlave_obj1005 = 0x80;     /* 128 */
00071                     ODCallback_t TestSlave_Index1005_callbacks[] = 
00072                      {
00073                        NULL,
00074                      };
00075                     subindex TestSlave_Index1005[] = 
00076                      {
00077                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1005 }
00078                      };
00079 
00080 /* index 0x1006 :   Communication / Cycle Period. */
00081                     UNS32 TestSlave_obj1006 = 0x0;      /* 0 */
00082                     ODCallback_t TestSlave_Index1006_callbacks[] = 
00083                      {
00084                        NULL,
00085                      };
00086                     subindex TestSlave_Index1006[] = 
00087                      {
00088                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1006 }
00089                      };
00090 
00091 /* index 0x1010 :   Store parameters. */
00092                     UNS8 TestSlave_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/
00093                     UNS32 TestSlave_obj1010_Save_All_Parameters = 0x0;  /* 0 */
00094                     UNS32 TestSlave_obj1010_Save_Communication_Parameters = 0x0;        /* 0 */
00095                     UNS32 TestSlave_obj1010_Save_Application_Parameters = 0x0;  /* 0 */
00096                     UNS32 TestSlave_obj1010_Save_Manufacturer_Parameters = 0x0; /* 0 */
00097                     ODCallback_t TestSlave_Index1010_callbacks[] = 
00098                      {
00099                        NULL,
00100                        NULL,
00101                        NULL,
00102                        NULL,
00103                        NULL,
00104                      };
00105                     subindex TestSlave_Index1010[] = 
00106                      {
00107                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1010 },
00108                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_All_Parameters },
00109                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Communication_Parameters },
00110                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Application_Parameters },
00111                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Manufacturer_Parameters }
00112                      };
00113 
00114 /* index 0x1011 :   Restore Default Parameters. */
00115                     UNS8 TestSlave_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/
00116                     UNS32 TestSlave_obj1011_Restore_All_Default_Parameters = 0x0;       /* 0 */
00117                     UNS32 TestSlave_obj1011_Restore_Communication_Default_Parameters = 0x0;     /* 0 */
00118                     UNS32 TestSlave_obj1011_Restore_Application_Default_Parameters = 0x0;       /* 0 */
00119                     UNS32 TestSlave_obj1011_Restore_Manufacturer_Default_Parameters = 0x0;      /* 0 */
00120                     ODCallback_t TestSlave_Index1011_callbacks[] = 
00121                      {
00122                        NULL,
00123                        NULL,
00124                        NULL,
00125                        NULL,
00126                        NULL,
00127                      };
00128                     subindex TestSlave_Index1011[] = 
00129                      {
00130                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1011 },
00131                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_All_Default_Parameters },
00132                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Communication_Default_Parameters },
00133                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Application_Default_Parameters },
00134                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Manufacturer_Default_Parameters }
00135                      };
00136 
00137 /* index 0x1016 :   Consumer Heartbeat Time */
00138                     UNS8 TestSlave_highestSubIndex_obj1016 = 0;
00139                     UNS32 TestSlave_obj1016[]={0};
00140 
00141 /* index 0x1017 :   Producer Heartbeat Time. */
00142                     UNS16 TestSlave_obj1017 = 0x0;      /* 0 */
00143                     ODCallback_t TestSlave_Index1017_callbacks[] = 
00144                      {
00145                        NULL,
00146                      };
00147                     subindex TestSlave_Index1017[] = 
00148                      {
00149                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1017 }
00150                      };
00151 
00152 /* index 0x1018 :   Identity. */
00153                     UNS8 TestSlave_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
00154                     UNS32 TestSlave_obj1018_Vendor_ID = 0x0;    /* 0 */
00155                     UNS32 TestSlave_obj1018_Product_Code = 0x0; /* 0 */
00156                     UNS32 TestSlave_obj1018_Revision_Number = 0x0;      /* 0 */
00157                     UNS32 TestSlave_obj1018_Serial_Number = 0x0;        /* 0 */
00158                     subindex TestSlave_Index1018[] = 
00159                      {
00160                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1018 },
00161                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Vendor_ID },
00162                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Product_Code },
00163                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Revision_Number },
00164                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Serial_Number }
00165                      };
00166 
00167 /* index 0x1200 :   Server SDO Parameter. */
00168                     UNS8 TestSlave_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
00169                     UNS32 TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x601;        /* 1537 */
00170                     UNS32 TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x581;       /* 1409 */
00171                     subindex TestSlave_Index1200[] = 
00172                      {
00173                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1200 },
00174                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO },
00175                        { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
00176                      };
00177 
00178 /* index 0x1800 :   Transmit PDO 1 Parameter. */
00179                     UNS8 TestSlave_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/
00180                     UNS32 TestSlave_obj1800_COB_ID_used_by_PDO = 0x182; /* 386 */
00181                     UNS8 TestSlave_obj1800_Transmission_Type = 0x0;     /* 0 */
00182                     UNS16 TestSlave_obj1800_Inhibit_Time = 0x0; /* 0 */
00183                     UNS8 TestSlave_obj1800_Compatibility_Entry = 0x0;   /* 0 */
00184                     UNS16 TestSlave_obj1800_Event_Timer = 0x0;  /* 0 */
00185                     ODCallback_t TestSlave_Index1800_callbacks[] = 
00186                      {
00187                        NULL,
00188                        NULL,
00189                        NULL,
00190                        NULL,
00191                        NULL,
00192                        NULL,
00193                      };
00194                     subindex TestSlave_Index1800[] = 
00195                      {
00196                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1800 },
00197                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1800_COB_ID_used_by_PDO },
00198                        { RW|TO_BE_SAVE, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Transmission_Type },
00199                        { RW|TO_BE_SAVE, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Inhibit_Time },
00200                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Compatibility_Entry },
00201                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Event_Timer }
00202                      };
00203 
00204 /* index 0x1801 :   Transmit PDO 2 Parameter. */
00205                     UNS8 TestSlave_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/
00206                     UNS32 TestSlave_obj1801_COB_ID_used_by_PDO = 0x282; /* 642 */
00207                     UNS8 TestSlave_obj1801_Transmission_Type = 0x0;     /* 0 */
00208                     UNS16 TestSlave_obj1801_Inhibit_Time = 0x0; /* 0 */
00209                     UNS8 TestSlave_obj1801_Compatibility_Entry = 0x0;   /* 0 */
00210                     UNS16 TestSlave_obj1801_Event_Timer = 0x0;  /* 0 */
00211                     ODCallback_t TestSlave_Index1801_callbacks[] = 
00212                      {
00213                        NULL,
00214                        NULL,
00215                        NULL,
00216                        NULL,
00217                        NULL,
00218                        NULL,
00219                      };
00220                     subindex TestSlave_Index1801[] = 
00221                      {
00222                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1801 },
00223                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1801_COB_ID_used_by_PDO },
00224                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Transmission_Type },
00225                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Inhibit_Time },
00226                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Compatibility_Entry },
00227                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Event_Timer }
00228                      };
00229 
00230 /* index 0x1802 :   Transmit PDO 3 Parameter. */
00231                     UNS8 TestSlave_highestSubIndex_obj1802 = 5; /* number of subindex - 1*/
00232                     UNS32 TestSlave_obj1802_COB_ID_used_by_PDO = 0x382; /* 898 */
00233                     UNS8 TestSlave_obj1802_Transmission_Type = 0xFF;    /* 255 */
00234                     UNS16 TestSlave_obj1802_Inhibit_Time = 0x1388;      /* 5000 */
00235                     UNS8 TestSlave_obj1802_Compatibility_Entry = 0x0;   /* 0 */
00236                     UNS16 TestSlave_obj1802_Event_Timer = 0x3E8;        /* 1000 */
00237                     ODCallback_t TestSlave_Index1802_callbacks[] = 
00238                      {
00239                        NULL,
00240                        NULL,
00241                        NULL,
00242                        NULL,
00243                        NULL,
00244                        NULL,
00245                      };
00246                     subindex TestSlave_Index1802[] = 
00247                      {
00248                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1802 },
00249                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1802_COB_ID_used_by_PDO },
00250                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1802_Transmission_Type },
00251                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1802_Inhibit_Time },
00252                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1802_Compatibility_Entry },
00253                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1802_Event_Timer }
00254                      };
00255 
00256 /* index 0x1803 :   Transmit PDO 4 Parameter. */
00257                     UNS8 TestSlave_highestSubIndex_obj1803 = 5; /* number of subindex - 1*/
00258                     UNS32 TestSlave_obj1803_COB_ID_used_by_PDO = 0x482; /* 1154 */
00259                     UNS8 TestSlave_obj1803_Transmission_Type = 0xFC;    /* 252 */
00260                     UNS16 TestSlave_obj1803_Inhibit_Time = 0x0; /* 0 */
00261                     UNS8 TestSlave_obj1803_Compatibility_Entry = 0x0;   /* 0 */
00262                     UNS16 TestSlave_obj1803_Event_Timer = 0x0;  /* 0 */
00263                     ODCallback_t TestSlave_Index1803_callbacks[] = 
00264                      {
00265                        NULL,
00266                        NULL,
00267                        NULL,
00268                        NULL,
00269                        NULL,
00270                        NULL,
00271                      };
00272                     subindex TestSlave_Index1803[] = 
00273                      {
00274                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1803 },
00275                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1803_COB_ID_used_by_PDO },
00276                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1803_Transmission_Type },
00277                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1803_Inhibit_Time },
00278                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1803_Compatibility_Entry },
00279                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1803_Event_Timer }
00280                      };
00281 
00282 /* index 0x1804 :   Transmit PDO 5 Parameter. */
00283                     UNS8 TestSlave_highestSubIndex_obj1804 = 5; /* number of subindex - 1*/
00284                     UNS32 TestSlave_obj1804_COB_ID_used_by_PDO = 0x401; /* 1025 */
00285                     UNS8 TestSlave_obj1804_Transmission_Type = 0xFD;    /* 253 */
00286                     UNS16 TestSlave_obj1804_Inhibit_Time = 0x0; /* 0 */
00287                     UNS8 TestSlave_obj1804_Compatibility_Entry = 0x0;   /* 0 */
00288                     UNS16 TestSlave_obj1804_Event_Timer = 0x0;  /* 0 */
00289                     ODCallback_t TestSlave_Index1804_callbacks[] = 
00290                      {
00291                        NULL,
00292                        NULL,
00293                        NULL,
00294                        NULL,
00295                        NULL,
00296                        NULL,
00297                      };
00298                     subindex TestSlave_Index1804[] = 
00299                      {
00300                        { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1804 },
00301                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1804_COB_ID_used_by_PDO },
00302                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1804_Transmission_Type },
00303                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1804_Inhibit_Time },
00304                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1804_Compatibility_Entry },
00305                        { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1804_Event_Timer }
00306                      };
00307 
00308 /* index 0x1A00 :   Transmit PDO 1 Mapping. */
00309                     UNS8 TestSlave_highestSubIndex_obj1A00 = 10; /* number of subindex - 1*/
00310                     UNS32 TestSlave_obj1A00[] = 
00311                     {
00312                       0x20000001,       /* 536870913 */
00313                       0x20010001,       /* 536936449 */
00314                       0x20020001,       /* 537001985 */
00315                       0x20030001,       /* 537067521 */
00316                       0x20040001,       /* 537133057 */
00317                       0x20050001,       /* 537198593 */
00318                       0x20060001,       /* 537264129 */
00319                       0x20070001,       /* 537329665 */
00320                       0x20080008,       /* 537395208 */
00321                       0x20090020        /* 537460768 */
00322                     };
00323                     subindex TestSlave_Index1A00[] = 
00324                      {
00325                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A00 },
00326                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[0] },
00327                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[1] },
00328                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[2] },
00329                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[3] },
00330                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[4] },
00331                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[5] },
00332                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[6] },
00333                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[7] },
00334                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[8] },
00335                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[9] }
00336                      };
00337 
00338 /* index 0x1A01 :   Transmit PDO 2 Mapping. */
00339                     UNS8 TestSlave_highestSubIndex_obj1A01 = 1; /* number of subindex - 1*/
00340                     UNS32 TestSlave_obj1A01[] = 
00341                     {
00342                       0x200A0010        /* 537526288 */
00343                     };
00344                     subindex TestSlave_Index1A01[] = 
00345                      {
00346                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A01 },
00347                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A01[0] }
00348                      };
00349 
00350 /* index 0x1A02 :   Transmit PDO 3 Mapping. */
00351                     UNS8 TestSlave_highestSubIndex_obj1A02 = 1; /* number of subindex - 1*/
00352                     UNS32 TestSlave_obj1A02[] = 
00353                     {
00354                       0x200B0010        /* 537591824 */
00355                     };
00356                     subindex TestSlave_Index1A02[] = 
00357                      {
00358                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A02 },
00359                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A02[0] }
00360                      };
00361 
00362 /* index 0x1A03 :   Transmit PDO 4 Mapping. */
00363                     UNS8 TestSlave_highestSubIndex_obj1A03 = 1; /* number of subindex - 1*/
00364                     UNS32 TestSlave_obj1A03[] = 
00365                     {
00366                       0x200C0010        /* 537657360 */
00367                     };
00368                     subindex TestSlave_Index1A03[] = 
00369                      {
00370                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A03 },
00371                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A03[0] }
00372                      };
00373 
00374 /* index 0x1A04 :   Transmit PDO 5 Mapping. */
00375                     UNS8 TestSlave_highestSubIndex_obj1A04 = 1; /* number of subindex - 1*/
00376                     UNS32 TestSlave_obj1A04[] = 
00377                     {
00378                       0x200C0010        /* 537657360 */
00379                     };
00380                     subindex TestSlave_Index1A04[] = 
00381                      {
00382                        { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A04 },
00383                        { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A04[0] }
00384                      };
00385 
00386 /* index 0x2000 :   Mapped variable SlaveMap1 */
00387                     subindex TestSlave_Index2000[] = 
00388                      {
00389                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap1 }
00390                      };
00391 
00392 /* index 0x2001 :   Mapped variable SlaveMap2 */
00393                     subindex TestSlave_Index2001[] = 
00394                      {
00395                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap2 }
00396                      };
00397 
00398 /* index 0x2002 :   Mapped variable SlaveMap3 */
00399                     subindex TestSlave_Index2002[] = 
00400                      {
00401                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap3 }
00402                      };
00403 
00404 /* index 0x2003 :   Mapped variable SlaveMap4 */
00405                     subindex TestSlave_Index2003[] = 
00406                      {
00407                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap4 }
00408                      };
00409 
00410 /* index 0x2004 :   Mapped variable SlaveMap5 */
00411                     subindex TestSlave_Index2004[] = 
00412                      {
00413                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap5 }
00414                      };
00415 
00416 /* index 0x2005 :   Mapped variable SlaveMap6 */
00417                     subindex TestSlave_Index2005[] = 
00418                      {
00419                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap6 }
00420                      };
00421 
00422 /* index 0x2006 :   Mapped variable SlaveMap7 */
00423                     subindex TestSlave_Index2006[] = 
00424                      {
00425                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap7 }
00426                      };
00427 
00428 /* index 0x2007 :   Mapped variable SlaveMap8 */
00429                     subindex TestSlave_Index2007[] = 
00430                      {
00431                        { RW, boolean, sizeof (UNS8), (void*)&SlaveMap8 }
00432                      };
00433 
00434 /* index 0x2008 :   Mapped variable SlaveMap9 */
00435                     subindex TestSlave_Index2008[] = 
00436                      {
00437                        { RW, uint8, sizeof (UNS8), (void*)&SlaveMap9 }
00438                      };
00439 
00440 /* index 0x2009 :   Mapped variable SlaveMap10 */
00441                     subindex TestSlave_Index2009[] = 
00442                      {
00443                        { RW, uint32, sizeof (UNS32), (void*)&SlaveMap10 }
00444                      };
00445 
00446 /* index 0x200A :   Mapped variable SlaveMap11 */
00447                     subindex TestSlave_Index200A[] = 
00448                      {
00449                        { RW, uint16, sizeof (UNS16), (void*)&SlaveMap11 }
00450                      };
00451 
00452 /* index 0x200B :   Mapped variable SlaveMap12 */
00453                     subindex TestSlave_Index200B[] = 
00454                      {
00455                        { RW, int16, sizeof (INTEGER16), (void*)&SlaveMap12 }
00456                      };
00457 
00458 /* index 0x200C :   Mapped variable SlaveMap13 */
00459                     subindex TestSlave_Index200C[] = 
00460                      {
00461                        { RW, int16, sizeof (INTEGER16), (void*)&SlaveMap13 }
00462                      };
00463 
00464 const indextable TestSlave_objdict[] = 
00465 {
00466   { (subindex*)TestSlave_Index1000,sizeof(TestSlave_Index1000)/sizeof(TestSlave_Index1000[0]), 0x1000},
00467   { (subindex*)TestSlave_Index1001,sizeof(TestSlave_Index1001)/sizeof(TestSlave_Index1001[0]), 0x1001},
00468   { (subindex*)TestSlave_Index1005,sizeof(TestSlave_Index1005)/sizeof(TestSlave_Index1005[0]), 0x1005},
00469   { (subindex*)TestSlave_Index1006,sizeof(TestSlave_Index1006)/sizeof(TestSlave_Index1006[0]), 0x1006},
00470   { (subindex*)TestSlave_Index1010,sizeof(TestSlave_Index1010)/sizeof(TestSlave_Index1010[0]), 0x1010},
00471   { (subindex*)TestSlave_Index1011,sizeof(TestSlave_Index1011)/sizeof(TestSlave_Index1011[0]), 0x1011},
00472   { (subindex*)TestSlave_Index1017,sizeof(TestSlave_Index1017)/sizeof(TestSlave_Index1017[0]), 0x1017},
00473   { (subindex*)TestSlave_Index1018,sizeof(TestSlave_Index1018)/sizeof(TestSlave_Index1018[0]), 0x1018},
00474   { (subindex*)TestSlave_Index1200,sizeof(TestSlave_Index1200)/sizeof(TestSlave_Index1200[0]), 0x1200},
00475   { (subindex*)TestSlave_Index1800,sizeof(TestSlave_Index1800)/sizeof(TestSlave_Index1800[0]), 0x1800},
00476   { (subindex*)TestSlave_Index1801,sizeof(TestSlave_Index1801)/sizeof(TestSlave_Index1801[0]), 0x1801},
00477   { (subindex*)TestSlave_Index1802,sizeof(TestSlave_Index1802)/sizeof(TestSlave_Index1802[0]), 0x1802},
00478   { (subindex*)TestSlave_Index1803,sizeof(TestSlave_Index1803)/sizeof(TestSlave_Index1803[0]), 0x1803},
00479   { (subindex*)TestSlave_Index1804,sizeof(TestSlave_Index1804)/sizeof(TestSlave_Index1804[0]), 0x1804},
00480   { (subindex*)TestSlave_Index1A00,sizeof(TestSlave_Index1A00)/sizeof(TestSlave_Index1A00[0]), 0x1A00},
00481   { (subindex*)TestSlave_Index1A01,sizeof(TestSlave_Index1A01)/sizeof(TestSlave_Index1A01[0]), 0x1A01},
00482   { (subindex*)TestSlave_Index1A02,sizeof(TestSlave_Index1A02)/sizeof(TestSlave_Index1A02[0]), 0x1A02},
00483   { (subindex*)TestSlave_Index1A03,sizeof(TestSlave_Index1A03)/sizeof(TestSlave_Index1A03[0]), 0x1A03},
00484   { (subindex*)TestSlave_Index1A04,sizeof(TestSlave_Index1A04)/sizeof(TestSlave_Index1A04[0]), 0x1A04},
00485   { (subindex*)TestSlave_Index2000,sizeof(TestSlave_Index2000)/sizeof(TestSlave_Index2000[0]), 0x2000},
00486   { (subindex*)TestSlave_Index2001,sizeof(TestSlave_Index2001)/sizeof(TestSlave_Index2001[0]), 0x2001},
00487   { (subindex*)TestSlave_Index2002,sizeof(TestSlave_Index2002)/sizeof(TestSlave_Index2002[0]), 0x2002},
00488   { (subindex*)TestSlave_Index2003,sizeof(TestSlave_Index2003)/sizeof(TestSlave_Index2003[0]), 0x2003},
00489   { (subindex*)TestSlave_Index2004,sizeof(TestSlave_Index2004)/sizeof(TestSlave_Index2004[0]), 0x2004},
00490   { (subindex*)TestSlave_Index2005,sizeof(TestSlave_Index2005)/sizeof(TestSlave_Index2005[0]), 0x2005},
00491   { (subindex*)TestSlave_Index2006,sizeof(TestSlave_Index2006)/sizeof(TestSlave_Index2006[0]), 0x2006},
00492   { (subindex*)TestSlave_Index2007,sizeof(TestSlave_Index2007)/sizeof(TestSlave_Index2007[0]), 0x2007},
00493   { (subindex*)TestSlave_Index2008,sizeof(TestSlave_Index2008)/sizeof(TestSlave_Index2008[0]), 0x2008},
00494   { (subindex*)TestSlave_Index2009,sizeof(TestSlave_Index2009)/sizeof(TestSlave_Index2009[0]), 0x2009},
00495   { (subindex*)TestSlave_Index200A,sizeof(TestSlave_Index200A)/sizeof(TestSlave_Index200A[0]), 0x200A},
00496   { (subindex*)TestSlave_Index200B,sizeof(TestSlave_Index200B)/sizeof(TestSlave_Index200B[0]), 0x200B},
00497   { (subindex*)TestSlave_Index200C,sizeof(TestSlave_Index200C)/sizeof(TestSlave_Index200C[0]), 0x200C},
00498 };
00499 
00500 const indextable * TestSlave_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
00501 {
00502         int i;
00503         *callbacks = NULL;
00504         switch(wIndex){
00505                 case 0x1000: i = 0;break;
00506                 case 0x1001: i = 1;break;
00507                 case 0x1005: i = 2;*callbacks = TestSlave_Index1005_callbacks; break;
00508                 case 0x1006: i = 3;*callbacks = TestSlave_Index1006_callbacks; break;
00509                 case 0x1010: i = 4;*callbacks = TestSlave_Index1010_callbacks; break;
00510                 case 0x1011: i = 5;*callbacks = TestSlave_Index1011_callbacks; break;
00511                 case 0x1017: i = 6;*callbacks = TestSlave_Index1017_callbacks; break;
00512                 case 0x1018: i = 7;break;
00513                 case 0x1200: i = 8;break;
00514                 case 0x1800: i = 9;*callbacks = TestSlave_Index1800_callbacks; break;
00515                 case 0x1801: i = 10;*callbacks = TestSlave_Index1801_callbacks; break;
00516                 case 0x1802: i = 11;*callbacks = TestSlave_Index1802_callbacks; break;
00517                 case 0x1803: i = 12;*callbacks = TestSlave_Index1803_callbacks; break;
00518                 case 0x1804: i = 13;*callbacks = TestSlave_Index1804_callbacks; break;
00519                 case 0x1A00: i = 14;break;
00520                 case 0x1A01: i = 15;break;
00521                 case 0x1A02: i = 16;break;
00522                 case 0x1A03: i = 17;break;
00523                 case 0x1A04: i = 18;break;
00524                 case 0x2000: i = 19;break;
00525                 case 0x2001: i = 20;break;
00526                 case 0x2002: i = 21;break;
00527                 case 0x2003: i = 22;break;
00528                 case 0x2004: i = 23;break;
00529                 case 0x2005: i = 24;break;
00530                 case 0x2006: i = 25;break;
00531                 case 0x2007: i = 26;break;
00532                 case 0x2008: i = 27;break;
00533                 case 0x2009: i = 28;break;
00534                 case 0x200A: i = 29;break;
00535                 case 0x200B: i = 30;break;
00536                 case 0x200C: i = 31;break;
00537                 default:
00538                         *errorCode = OD_NO_SUCH_OBJECT;
00539                         return NULL;
00540         }
00541         *errorCode = OD_SUCCESSFUL;
00542         return &TestSlave_objdict[i];
00543 }
00544 
00545 /* 
00546  * To count at which received SYNC a PDO must be sent.
00547  * Even if no pdoTransmit are defined, at least one entry is computed
00548  * for compilations issues.
00549  */
00550 s_PDO_status TestSlave_PDO_status[5] = {s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer};
00551 
00552 quick_index TestSlave_firstIndex = {
00553   8, /* SDO_SVR */
00554   0, /* SDO_CLT */
00555   0, /* PDO_RCV */
00556   0, /* PDO_RCV_MAP */
00557   9, /* PDO_TRS */
00558   14 /* PDO_TRS_MAP */
00559 };
00560 
00561 quick_index TestSlave_lastIndex = {
00562   8, /* SDO_SVR */
00563   0, /* SDO_CLT */
00564   0, /* PDO_RCV */
00565   0, /* PDO_RCV_MAP */
00566   13, /* PDO_TRS */
00567   18 /* PDO_TRS_MAP */
00568 };
00569 
00570 UNS16 TestSlave_ObjdictSize = sizeof(TestSlave_objdict)/sizeof(TestSlave_objdict[0]); 
00571 
00572 CO_Data TestSlave_Data = CANOPEN_NODE_DATA_INITIALIZER(TestSlave);
00573 

Generated on Mon Jul 2 19:10:16 2007 for CanFestival by  doxygen 1.5.1