examples/TestMasterSlave/TestMaster.c
changeset 79 9d8959095936
parent 23 6a5cdca4de01
equal deleted inserted replaced
78:ac05410cc1b8 79:9d8959095936
     1 /*
       
     2 This file is part of CanFestival, a library implementing CanOpen Stack. 
       
     3 
       
     4 Copyright (C): Edouard TISSERANT and Francis DUPIN
       
     5 
       
     6 See COPYING file for copyrights details.
       
     7 
       
     8 This library is free software; you can redistribute it and/or
       
     9 modify it under the terms of the GNU Lesser General Public
       
    10 License as published by the Free Software Foundation; either
       
    11 version 2.1 of the License, or (at your option) any later version.
       
    12 
       
    13 This library is distributed in the hope that it will be useful,
       
    14 but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    16 Lesser General Public License for more details.
       
    17 
       
    18 You should have received a copy of the GNU Lesser General Public
       
    19 License along with this library; if not, write to the Free Software
       
    20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    21 */
       
    22 
     1 
    23 /* File generated by gen_cfile.py. Should not be modified. */
     2 /* File generated by gen_cfile.py. Should not be modified. */
    24 
     3 
    25 #include "TestMaster.h"
     4 #include "TestMaster.h"
    26 
     5 
    27 /**************************************************************************/
     6 /**************************************************************************/
    28 /* Declaration of the mapped variables                                    */
     7 /* Declaration of the mapped variables                                    */
    29 /**************************************************************************/
     8 /**************************************************************************/
    30 UNS8 MasterMap1 = 0x0;		// Mapped at index 0x2000, subindex 0x00
     9 UNS8 MasterMap1 = 0x0;		/* Mapped at index 0x2000, subindex 0x00 */
    31 UNS8 MasterMap2 = 0x0;		// Mapped at index 0x2001, subindex 0x00
    10 UNS8 MasterMap2 = 0x0;		/* Mapped at index 0x2001, subindex 0x00 */
    32 UNS8 MasterMap3 = 0x0;		// Mapped at index 0x2002, subindex 0x00
    11 UNS8 MasterMap3 = 0x0;		/* Mapped at index 0x2002, subindex 0x00 */
    33 UNS8 MasterMap4 = 0x0;		// Mapped at index 0x2003, subindex 0x00
    12 UNS8 MasterMap4 = 0x0;		/* Mapped at index 0x2003, subindex 0x00 */
    34 
    13 
    35 /**************************************************************************/
    14 /**************************************************************************/
    36 /* Declaration of the value range types                                   */
    15 /* Declaration of the value range types                                   */
    37 /**************************************************************************/
    16 /**************************************************************************/
    38 
    17 
    47 /* The node id                                                            */
    26 /* The node id                                                            */
    48 /**************************************************************************/
    27 /**************************************************************************/
    49 /* node_id default value.*/
    28 /* node_id default value.*/
    50 UNS8 TestMaster_bDeviceNodeId = 0x00;
    29 UNS8 TestMaster_bDeviceNodeId = 0x00;
    51 
    30 
    52 //*****************************************************************************/
    31 /**************************************************************************/
    53 /* Array of message processing information */
    32 /* Array of message processing information */
    54 
    33 
    55 const UNS8 TestMaster_iam_a_slave = 0;
    34 const UNS8 TestMaster_iam_a_slave = 0;
    56 
    35 
    57 TIMER_HANDLE TestMaster_heartBeatTimers[1] = {TIMER_NONE,};
    36 TIMER_HANDLE TestMaster_heartBeatTimers[1] = {TIMER_NONE,};
    58 
    37 
    59 //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    38 /*
    60 //
    39 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    61 //                       OBJECT DICTIONARY
    40 
    62 //                   
    41                                OBJECT DICTIONARY
    63 //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    42 
       
    43 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
       
    44 */
    64 
    45 
    65 /* index 0x1000 :   Device Type. */
    46 /* index 0x1000 :   Device Type. */
    66                     UNS32 TestMaster_obj1000 = 0x12D;	// 301
    47                     UNS32 TestMaster_obj1000 = 0x12D;	/* 301 */
    67                     subindex TestMaster_Index1000[] = 
    48                     subindex TestMaster_Index1000[] = 
    68                      {
    49                      {
    69                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1000 }
    50                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1000 }
    70                      };
    51                      };
    71 
    52 
    72 /* index 0x1001 :   Error Register. */
    53 /* index 0x1001 :   Error Register. */
    73                     UNS8 TestMaster_obj1001 = 0x0;	// 0
    54                     UNS8 TestMaster_obj1001 = 0x0;	/* 0 */
    74                     subindex TestMaster_Index1001[] = 
    55                     subindex TestMaster_Index1001[] = 
    75                      {
    56                      {
    76                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 }
    57                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 }
    77                      };
    58                      };
    78 
    59 
    79 /* index 0x1005 :   SYNC COB ID. */
    60 /* index 0x1005 :   SYNC COB ID. */
    80                     UNS32 TestMaster_obj1005 = 0x40000080;	// 1073741952
    61                     UNS32 TestMaster_obj1005 = 0x40000080;	/* 1073741952 */
    81                     ODCallback_t TestMaster_Index1005_callbacks[] = 
    62                     ODCallback_t TestMaster_Index1005_callbacks[] = 
    82                      {
    63                      {
    83                        NULL,
    64                        NULL,
    84                      };
    65                      };
    85                     subindex TestMaster_Index1005[] = 
    66                     subindex TestMaster_Index1005[] = 
    86                      {
    67                      {
    87                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1005 }
    68                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1005 }
    88                      };
    69                      };
    89 
    70 
    90 /* index 0x1006 :   Communication / Cycle Period. */
    71 /* index 0x1006 :   Communication / Cycle Period. */
    91                     UNS32 TestMaster_obj1006 = 0xC350;	// 50000
    72                     UNS32 TestMaster_obj1006 = 0xC350;	/* 50000 */
    92                     ODCallback_t TestMaster_Index1006_callbacks[] = 
    73                     ODCallback_t TestMaster_Index1006_callbacks[] = 
    93                      {
    74                      {
    94                        NULL,
    75                        NULL,
    95                      };
    76                      };
    96                     subindex TestMaster_Index1006[] = 
    77                     subindex TestMaster_Index1006[] = 
    97                      {
    78                      {
    98                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1006 }
    79                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1006 }
    99                      };
    80                      };
   100 
    81 
   101 /* index 0x1010 :   Store parameters. */
    82 /* index 0x1010 :   Store parameters. */
   102                     UNS8 TestMaster_highestSubIndex_obj1010 = 4; // number of subindex - 1
    83                     UNS8 TestMaster_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/
   103                     UNS32 TestMaster_obj1010_Save_All_Parameters = 0x0;	// 0
    84                     UNS32 TestMaster_obj1010_Save_All_Parameters = 0x0;	/* 0 */
   104                     UNS32 TestMaster_obj1010_Save_Communication_Parameters = 0x0;	// 0
    85                     UNS32 TestMaster_obj1010_Save_Communication_Parameters = 0x0;	/* 0 */
   105                     UNS32 TestMaster_obj1010_Save_Application_Parameters = 0x0;	// 0
    86                     UNS32 TestMaster_obj1010_Save_Application_Parameters = 0x0;	/* 0 */
   106                     UNS32 TestMaster_obj1010_Save_Manufacturer_Parameters = 0x0;	// 0
    87                     UNS32 TestMaster_obj1010_Save_Manufacturer_Parameters = 0x0;	/* 0 */
   107                     ODCallback_t TestMaster_Index1010_callbacks[] = 
    88                     ODCallback_t TestMaster_Index1010_callbacks[] = 
   108                      {
    89                      {
   109                        NULL,
    90                        NULL,
   110                        NULL,
    91                        NULL,
   111                        NULL,
    92                        NULL,
   120                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Application_Parameters },
   101                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Application_Parameters },
   121                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Manufacturer_Parameters }
   102                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Manufacturer_Parameters }
   122                      };
   103                      };
   123 
   104 
   124 /* index 0x1011 :   Restore Default Parameters. */
   105 /* index 0x1011 :   Restore Default Parameters. */
   125                     UNS8 TestMaster_highestSubIndex_obj1011 = 4; // number of subindex - 1
   106                     UNS8 TestMaster_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/
   126                     UNS32 TestMaster_obj1011_Restore_All_Default_Parameters = 0x0;	// 0
   107                     UNS32 TestMaster_obj1011_Restore_All_Default_Parameters = 0x0;	/* 0 */
   127                     UNS32 TestMaster_obj1011_Restore_Communication_Default_Parameters = 0x0;	// 0
   108                     UNS32 TestMaster_obj1011_Restore_Communication_Default_Parameters = 0x0;	/* 0 */
   128                     UNS32 TestMaster_obj1011_Restore_Application_Default_Parameters = 0x0;	// 0
   109                     UNS32 TestMaster_obj1011_Restore_Application_Default_Parameters = 0x0;	/* 0 */
   129                     UNS32 TestMaster_obj1011_Restore_Manufacturer_Default_Parameters = 0x0;	// 0
   110                     UNS32 TestMaster_obj1011_Restore_Manufacturer_Default_Parameters = 0x0;	/* 0 */
   130                     ODCallback_t TestMaster_Index1011_callbacks[] = 
   111                     ODCallback_t TestMaster_Index1011_callbacks[] = 
   131                      {
   112                      {
   132                        NULL,
   113                        NULL,
   133                        NULL,
   114                        NULL,
   134                        NULL,
   115                        NULL,
   143                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Application_Default_Parameters },
   124                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Application_Default_Parameters },
   144                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Manufacturer_Default_Parameters }
   125                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Manufacturer_Default_Parameters }
   145                      };
   126                      };
   146 
   127 
   147 /* index 0x1016 :   Consumer Heartbeat Time. */
   128 /* index 0x1016 :   Consumer Heartbeat Time. */
   148                     UNS8 TestMaster_highestSubIndex_obj1016 = 1; // number of subindex - 1
   129                     UNS8 TestMaster_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/
   149                     UNS32 TestMaster_obj1016[] = 
   130                     UNS32 TestMaster_obj1016[] = 
   150                     {
   131                     {
   151                       0x20802	// 133122
   132                       0x20802	/* 133122 */
   152                     };
   133                     };
   153                     subindex TestMaster_Index1016[] = 
   134                     subindex TestMaster_Index1016[] = 
   154                      {
   135                      {
   155                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1016 },
   136                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1016 },
   156                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1016[0] }
   137                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1016[0] }
   157                      };
   138                      };
   158 
   139 
   159 /* index 0x1017 :   Producer Heartbeat Time */ 
   140 /* index 0x1017 :   Producer Heartbeat Time */ 
   160                     UNS16 TestMaster_obj1017 = 0x0;   // 0
   141                     UNS16 TestMaster_obj1017 = 0x0;   /* 0 */
   161 
   142 
   162 /* index 0x1018 :   Identity. */
   143 /* index 0x1018 :   Identity. */
   163                     UNS8 TestMaster_highestSubIndex_obj1018 = 4; // number of subindex - 1
   144                     UNS8 TestMaster_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
   164                     UNS32 TestMaster_obj1018_Vendor_ID = 0x0;	// 0
   145                     UNS32 TestMaster_obj1018_Vendor_ID = 0x0;	/* 0 */
   165                     UNS32 TestMaster_obj1018_Product_Code = 0x0;	// 0
   146                     UNS32 TestMaster_obj1018_Product_Code = 0x0;	/* 0 */
   166                     UNS32 TestMaster_obj1018_Revision_Number = 0x0;	// 0
   147                     UNS32 TestMaster_obj1018_Revision_Number = 0x0;	/* 0 */
   167                     UNS32 TestMaster_obj1018_Serial_Number = 0x0;	// 0
   148                     UNS32 TestMaster_obj1018_Serial_Number = 0x0;	/* 0 */
   168                     subindex TestMaster_Index1018[] = 
   149                     subindex TestMaster_Index1018[] = 
   169                      {
   150                      {
   170                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1018 },
   151                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1018 },
   171                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Vendor_ID },
   152                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Vendor_ID },
   172                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Product_Code },
   153                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Product_Code },
   173                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Revision_Number },
   154                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Revision_Number },
   174                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Serial_Number }
   155                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Serial_Number }
   175                      };
   156                      };
   176 
   157 
   177 /* index 0x1280 :   Client SDO 1 Parameter. */
   158 /* index 0x1280 :   Client SDO 1 Parameter. */
   178                     UNS8 TestMaster_highestSubIndex_obj1280 = 3; // number of subindex - 1
   159                     UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/
   179                     UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x602;	// 1538
   160                     UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x602;	/* 1538 */
   180                     UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x582;	// 1410
   161                     UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x582;	/* 1410 */
   181                     UNS32 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x2;	// 2
   162                     UNS32 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x2;	/* 2 */
   182                     subindex TestMaster_Index1280[] = 
   163                     subindex TestMaster_Index1280[] = 
   183                      {
   164                      {
   184                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 },
   165                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 },
   185                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO },
   166                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO },
   186                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO },
   167                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO },
   187                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server }
   168                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server }
   188                      };
   169                      };
   189 
   170 
   190 /* index 0x1400 :   Receive PDO 1 Parameter. */
   171 /* index 0x1400 :   Receive PDO 1 Parameter. */
   191                     UNS8 TestMaster_highestSubIndex_obj1400 = 5; // number of subindex - 1
   172                     UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/
   192                     UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x182;	// 386
   173                     UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x182;	/* 386 */
   193                     UNS8 TestMaster_obj1400_Transmission_Type = 0x1;	// 1
   174                     UNS8 TestMaster_obj1400_Transmission_Type = 0x1;	/* 1 */
   194                     UNS16 TestMaster_obj1400_Inhibit_Time = 0x0;	// 0
   175                     UNS16 TestMaster_obj1400_Inhibit_Time = 0x0;	/* 0 */
   195                     UNS16 TestMaster_obj1400_Compatibility_Entry = 0x0;	// 0
   176                     UNS16 TestMaster_obj1400_Compatibility_Entry = 0x0;	/* 0 */
   196                     UNS16 TestMaster_obj1400_Event_Timer = 0x0;	// 0
   177                     UNS16 TestMaster_obj1400_Event_Timer = 0x0;	/* 0 */
   197                     subindex TestMaster_Index1400[] = 
   178                     subindex TestMaster_Index1400[] = 
   198                      {
   179                      {
   199                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1400 },
   180                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1400 },
   200                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1400_COB_ID_used_by_PDO },
   181                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1400_COB_ID_used_by_PDO },
   201                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Transmission_Type },
   182                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Transmission_Type },
   203                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Compatibility_Entry },
   184                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Compatibility_Entry },
   204                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Event_Timer }
   185                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Event_Timer }
   205                      };
   186                      };
   206 
   187 
   207 /* index 0x1401 :   Receive PDO 2 Parameter. */
   188 /* index 0x1401 :   Receive PDO 2 Parameter. */
   208                     UNS8 TestMaster_highestSubIndex_obj1401 = 5; // number of subindex - 1
   189                     UNS8 TestMaster_highestSubIndex_obj1401 = 5; /* number of subindex - 1*/
   209                     UNS32 TestMaster_obj1401_COB_ID_used_by_PDO = 0x282;	// 642
   190                     UNS32 TestMaster_obj1401_COB_ID_used_by_PDO = 0x282;	/* 642 */
   210                     UNS8 TestMaster_obj1401_Transmission_Type = 0x1;	// 1
   191                     UNS8 TestMaster_obj1401_Transmission_Type = 0x1;	/* 1 */
   211                     UNS16 TestMaster_obj1401_Inhibit_Time = 0x0;	// 0
   192                     UNS16 TestMaster_obj1401_Inhibit_Time = 0x0;	/* 0 */
   212                     UNS16 TestMaster_obj1401_Compatibility_Entry = 0x0;	// 0
   193                     UNS16 TestMaster_obj1401_Compatibility_Entry = 0x0;	/* 0 */
   213                     UNS16 TestMaster_obj1401_Event_Timer = 0x0;	// 0
   194                     UNS16 TestMaster_obj1401_Event_Timer = 0x0;	/* 0 */
   214                     subindex TestMaster_Index1401[] = 
   195                     subindex TestMaster_Index1401[] = 
   215                      {
   196                      {
   216                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1401 },
   197                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1401 },
   217                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1401_COB_ID_used_by_PDO },
   198                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1401_COB_ID_used_by_PDO },
   218                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Transmission_Type },
   199                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Transmission_Type },
   220                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Compatibility_Entry },
   201                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Compatibility_Entry },
   221                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Event_Timer }
   202                        { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Event_Timer }
   222                      };
   203                      };
   223 
   204 
   224 /* index 0x1600 :   Receive PDO 1 Mapping. */
   205 /* index 0x1600 :   Receive PDO 1 Mapping. */
   225                     UNS8 TestMaster_highestSubIndex_obj1600 = 2; // number of subindex - 1
   206                     UNS8 TestMaster_highestSubIndex_obj1600 = 2; /* number of subindex - 1*/
   226                     UNS32 TestMaster_obj1600[] = 
   207                     UNS32 TestMaster_obj1600[] = 
   227                     {
   208                     {
   228                       0x20000008,	// 536870920
   209                       0x20000008,	/* 536870920 */
   229                       0x20010008	// 536936456
   210                       0x20010008	/* 536936456 */
   230                     };
   211                     };
   231                     subindex TestMaster_Index1600[] = 
   212                     subindex TestMaster_Index1600[] = 
   232                      {
   213                      {
   233                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 },
   214                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 },
   234                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] },
   215                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] },
   235                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] }
   216                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] }
   236                      };
   217                      };
   237 
   218 
   238 /* index 0x1601 :   Receive PDO 2 Mapping. */
   219 /* index 0x1601 :   Receive PDO 2 Mapping. */
   239                     UNS8 TestMaster_highestSubIndex_obj1601 = 2; // number of subindex - 1
   220                     UNS8 TestMaster_highestSubIndex_obj1601 = 2; /* number of subindex - 1*/
   240                     UNS32 TestMaster_obj1601[] = 
   221                     UNS32 TestMaster_obj1601[] = 
   241                     {
   222                     {
   242                       0x20020008,	// 537001992
   223                       0x20020008,	/* 537001992 */
   243                       0x20030008	// 537067528
   224                       0x20030008	/* 537067528 */
   244                     };
   225                     };
   245                     subindex TestMaster_Index1601[] = 
   226                     subindex TestMaster_Index1601[] = 
   246                      {
   227                      {
   247                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1601 },
   228                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1601 },
   248                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[0] },
   229                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[0] },
   249                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[1] }
   230                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[1] }
   250                      };
   231                      };
   251 
   232 
   252 /* index 0x2000 :   Mapped variable MasterMap1 */
   233 /* index 0x2000 :   Mapped variable MasterMap1 */
   326 	}
   307 	}
   327 	*errorCode = OD_SUCCESSFUL;
   308 	*errorCode = OD_SUCCESSFUL;
   328 	return &TestMaster_objdict[i];
   309 	return &TestMaster_objdict[i];
   329 }
   310 }
   330 
   311 
   331 // To count at which received SYNC a PDO must be sent.
   312 /* To count at which received SYNC a PDO must be sent.
   332 // Even if no pdoTransmit are defined, at least one entry is computed
   313  * Even if no pdoTransmit are defined, at least one entry is computed
   333 // for compilations issues.
   314  * for compilations issues.
       
   315  */
   334 UNS8 TestMaster_count_sync[1] = {0,};
   316 UNS8 TestMaster_count_sync[1] = {0,};
   335 
   317 
   336 quick_index TestMaster_firstIndex = {
   318 quick_index TestMaster_firstIndex = {
   337   SDO_SVR : 0,
   319   0, /* SDO_SVR */
   338   SDO_CLT : 8,
   320   8, /* SDO_CLT */
   339   PDO_RCV : 9,
   321   9, /* PDO_RCV */
   340   PDO_RCV_MAP : 11,
   322   11, /* PDO_RCV_MAP */
   341   PDO_TRS : 0,
   323   0, /* PDO_TRS */
   342   PDO_TRS_MAP : 0
   324   0 /* PDO_TRS_MAP */
   343 };
   325 };
   344 
   326 
   345 quick_index TestMaster_lastIndex = {
   327 quick_index TestMaster_lastIndex = {
   346   SDO_SVR : 0,
   328   0, /* SDO_SVR */
   347   SDO_CLT : 8,
   329   8, /* SDO_CLT */
   348   PDO_RCV : 10,
   330   10, /* PDO_RCV */
   349   PDO_RCV_MAP : 12,
   331   12, /* PDO_RCV_MAP */
   350   PDO_TRS : 0,
   332   0, /* PDO_TRS */
   351   PDO_TRS_MAP : 0
   333   0 /* PDO_TRS_MAP */
   352 };
   334 };
   353 
   335 
   354 UNS16 TestMaster_ObjdictSize = sizeof(TestMaster_objdict)/sizeof(TestMaster_objdict[0]); 
   336 UNS16 TestMaster_ObjdictSize = sizeof(TestMaster_objdict)/sizeof(TestMaster_objdict[0]); 
   355 
   337 
   356 CO_Data TestMaster_Data = CANOPEN_NODE_DATA_INITIALIZER(TestMaster);
   338 CO_Data TestMaster_Data = CANOPEN_NODE_DATA_INITIALIZER(TestMaster);