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

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