examples/DS401_Slave_Gui/ObjDict.c
changeset 754 4715f4ed8e0c
parent 748 18ed0f3b030a
parent 753 072787c24bec
child 755 66ceb88411ab
equal deleted inserted replaced
748:18ed0f3b030a 754:4715f4ed8e0c
     1 
       
     2 /* File generated by gen_cfile.py. Should not be modified. */
       
     3 
       
     4 #include "ObjDict.h"
       
     5 
       
     6 /**************************************************************************/
       
     7 /* Declaration of the mapped variables                                    */
       
     8 /**************************************************************************/
       
     9 UNS8 Read_Inputs_8_Bit[] =		/* Mapped at index 0x6000, subindex 0x01 - 0x01 */
       
    10   {
       
    11     0x0	/* 0 */
       
    12   };
       
    13 UNS8 Polarity_Input_8_Bit[] =		/* Mapped at index 0x6002, subindex 0x01 - 0x01 */
       
    14   {
       
    15     0x0	/* 0 */
       
    16   };
       
    17 UNS8 Write_Outputs_8_Bit[] =		/* Mapped at index 0x6200, subindex 0x01 - 0x01 */
       
    18   {
       
    19     0x0	/* 0 */
       
    20   };
       
    21 UNS8 Change_Polarity_Outputs_8_Bit[] =		/* Mapped at index 0x6202, subindex 0x01 - 0x01 */
       
    22   {
       
    23     0x0	/* 0 */
       
    24   };
       
    25 UNS8 Error_Mode_Outputs_8_Bit[] =		/* Mapped at index 0x6206, subindex 0x01 - 0x01 */
       
    26   {
       
    27     0x0	/* 0 */
       
    28   };
       
    29 UNS8 Error_Value_Outputs_8_Bit[] =		/* Mapped at index 0x6207, subindex 0x01 - 0x01 */
       
    30   {
       
    31     0x0	/* 0 */
       
    32   };
       
    33 INTEGER16 Read_Analogue_Input_16_Bit[] =		/* Mapped at index 0x6401, subindex 0x01 - 0x08 */
       
    34   {
       
    35     0x0,	/* 0 */
       
    36     0x0,	/* 0 */
       
    37     0x0,	/* 0 */
       
    38     0x0,	/* 0 */
       
    39     0x0,	/* 0 */
       
    40     0x0,	/* 0 */
       
    41     0x0,	/* 0 */
       
    42     0x0	/* 0 */
       
    43   };
       
    44 INTEGER16 Write_Analogue_Output_16_Bit[] =		/* Mapped at index 0x6411, subindex 0x01 - 0x04 */
       
    45   {
       
    46     0x0,	/* 0 */
       
    47     0x0,	/* 0 */
       
    48     0x0,	/* 0 */
       
    49     0x0	/* 0 */
       
    50   };
       
    51 UNS8 Analogue_Input_Global_Interrupt_Enable = 0x0;		/* Mapped at index 0x6423, subindex 0x00 */
       
    52 UNS32 Analogue_Input_Interrupt_Delta_Unsigned[] =		/* Mapped at index 0x6426, subindex 0x01 - 0x08 */
       
    53   {
       
    54     0x0,	/* 0 */
       
    55     0x0,	/* 0 */
       
    56     0x0,	/* 0 */
       
    57     0x0,	/* 0 */
       
    58     0x0,	/* 0 */
       
    59     0x0,	/* 0 */
       
    60     0x0,	/* 0 */
       
    61     0x0	/* 0 */
       
    62   };
       
    63 UNS8 Analogue_Output_Error_Mode[] =		/* Mapped at index 0x6443, subindex 0x01 - 0x04 */
       
    64   {
       
    65     0x0,	/* 0 */
       
    66     0x0,	/* 0 */
       
    67     0x0,	/* 0 */
       
    68     0x0	/* 0 */
       
    69   };
       
    70 INTEGER32 Analogue_Output_Error_Value_Integer[] =		/* Mapped at index 0x6444, subindex 0x01 - 0x04 */
       
    71   {
       
    72     0x0,	/* 0 */
       
    73     0x0,	/* 0 */
       
    74     0x0,	/* 0 */
       
    75     0x0	/* 0 */
       
    76   };
       
    77 
       
    78 /**************************************************************************/
       
    79 /* Declaration of the value range types                                   */
       
    80 /**************************************************************************/
       
    81 
       
    82 #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */
       
    83 UNS32 ObjDict_valueRangeTest (UNS8 typeValue, void * value)
       
    84 {
       
    85   switch (typeValue) {
       
    86     case valueRange_EMC:
       
    87       if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED;
       
    88       break;
       
    89   }
       
    90   return 0;
       
    91 }
       
    92 
       
    93 /**************************************************************************/
       
    94 /* The node id                                                            */
       
    95 /**************************************************************************/
       
    96 /* node_id default value.*/
       
    97 UNS8 ObjDict_bDeviceNodeId = 0x00;
       
    98 
       
    99 /**************************************************************************/
       
   100 /* Array of message processing information */
       
   101 
       
   102 const UNS8 ObjDict_iam_a_slave = 1;
       
   103 
       
   104 TIMER_HANDLE ObjDict_heartBeatTimers[3] = {TIMER_NONE,TIMER_NONE,TIMER_NONE};
       
   105 
       
   106 /*
       
   107 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
       
   108 
       
   109                                OBJECT DICTIONARY
       
   110 
       
   111 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
       
   112 */
       
   113 
       
   114 /* index 0x1000 :   Device Type. */
       
   115                     UNS32 ObjDict_obj1000 = 0xF0191;	/* 983441 */
       
   116                     subindex ObjDict_Index1000[] = 
       
   117                      {
       
   118                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1000 }
       
   119                      };
       
   120 
       
   121 /* index 0x1001 :   Error Register. */
       
   122                     UNS8 ObjDict_obj1001 = 0x0;	/* 0 */
       
   123                     subindex ObjDict_Index1001[] = 
       
   124                      {
       
   125                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_obj1001 }
       
   126                      };
       
   127 
       
   128 /* index 0x1002 :   Manufacturer Status Register. */
       
   129                     UNS32 ObjDict_obj1002 = 0x0;	/* 0 */
       
   130                     subindex ObjDict_Index1002[] = 
       
   131                      {
       
   132                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1002 }
       
   133                      };
       
   134 
       
   135 /* index 0x1003 :   Pre-defined Error Field */
       
   136                     UNS8 ObjDict_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
       
   137                     UNS32 ObjDict_obj1003[] = 
       
   138                     {
       
   139                       0x0	/* 0 */
       
   140                     };
       
   141                     ODCallback_t ObjDict_Index1003_callbacks[] = 
       
   142                      {
       
   143                        NULL,
       
   144                        NULL,
       
   145                      };
       
   146                     subindex ObjDict_Index1003[] = 
       
   147                      {
       
   148                        { RW, valueRange_EMC, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1003 },
       
   149                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1003[0] }
       
   150                      };
       
   151 
       
   152 /* index 0x1005 :   SYNC COB ID. */
       
   153                     UNS32 ObjDict_obj1005 = 0x80;	/* 128 */
       
   154                     ODCallback_t ObjDict_Index1005_callbacks[] = 
       
   155                      {
       
   156                        NULL,
       
   157                      };
       
   158                     subindex ObjDict_Index1005[] = 
       
   159                      {
       
   160                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1005 }
       
   161                      };
       
   162 
       
   163 /* index 0x1006 :   Communication / Cycle Period */
       
   164                     UNS32 ObjDict_obj1006 = 0x0;   /* 0 */
       
   165 
       
   166 /* index 0x1008 :   Manufacturer Device Name. */
       
   167                     UNS8 ObjDict_obj1008[10] = "";
       
   168                     subindex ObjDict_Index1008[] = 
       
   169                      {
       
   170                        { RO, visible_string, 10, (void*)&ObjDict_obj1008 }
       
   171                      };
       
   172 
       
   173 /* index 0x1009 :   Manufacturer Hardware Version. */
       
   174                     UNS8 ObjDict_obj1009[10] = "";
       
   175                     subindex ObjDict_Index1009[] = 
       
   176                      {
       
   177                        { RO, visible_string, 10, (void*)&ObjDict_obj1009 }
       
   178                      };
       
   179 
       
   180 /* index 0x100A :   Manufacturer Software Version. */
       
   181                     UNS8 ObjDict_obj100A[10] = "";
       
   182                     subindex ObjDict_Index100A[] = 
       
   183                      {
       
   184                        { RO, visible_string, 10, (void*)&ObjDict_obj100A }
       
   185                      };
       
   186 
       
   187 /* index 0x100C :   Guard Time. */
       
   188                     UNS16 ObjDict_obj100C = 0x0;	/* 0 */
       
   189                     subindex ObjDict_Index100C[] = 
       
   190                      {
       
   191                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj100C }
       
   192                      };
       
   193 
       
   194 /* index 0x100D :   Life Time Factor. */
       
   195                     UNS8 ObjDict_obj100D = 0x0;	/* 0 */
       
   196                     subindex ObjDict_Index100D[] = 
       
   197                      {
       
   198                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj100D }
       
   199                      };
       
   200 
       
   201 /* index 0x1010 :   Store parameters. */
       
   202                     UNS8 ObjDict_highestSubIndex_obj1010 = 1; /* number of subindex - 1*/
       
   203                     UNS32 ObjDict_obj1010_Save_All_Parameters = 0x0;	/* 0 */
       
   204                     subindex ObjDict_Index1010[] = 
       
   205                      {
       
   206                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1010 },
       
   207                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_All_Parameters }
       
   208                      };
       
   209 
       
   210 /* index 0x1011 :   Restore Default Parameters. */
       
   211                     UNS8 ObjDict_highestSubIndex_obj1011 = 1; /* number of subindex - 1*/
       
   212                     UNS32 ObjDict_obj1011_Restore_All_Default_Parameters = 0x0;	/* 0 */
       
   213                     subindex ObjDict_Index1011[] = 
       
   214                      {
       
   215                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1011 },
       
   216                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_All_Default_Parameters }
       
   217                      };
       
   218 
       
   219 /* index 0x1014 :   Emergency COB ID */
       
   220                     UNS32 ObjDict_obj1014 = 0x0;   /* 0 */
       
   221 
       
   222 /* index 0x1016 :   Consumer Heartbeat Time. */
       
   223                     UNS8 ObjDict_highestSubIndex_obj1016 = 3; /* number of subindex - 1*/
       
   224                     UNS32 ObjDict_obj1016[] = 
       
   225                     {
       
   226                       0x0,	/* 0 */
       
   227                       0x0,	/* 0 */
       
   228                       0x0	/* 0 */
       
   229                     };
       
   230                     subindex ObjDict_Index1016[] = 
       
   231                      {
       
   232                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1016 },
       
   233                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[0] },
       
   234                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[1] },
       
   235                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[2] }
       
   236                      };
       
   237 
       
   238 /* index 0x1017 :   Producer Heartbeat Time. */
       
   239                     UNS16 ObjDict_obj1017 = 0x0;	/* 0 */
       
   240                     ODCallback_t ObjDict_Index1017_callbacks[] = 
       
   241                      {
       
   242                        NULL,
       
   243                      };
       
   244                     subindex ObjDict_Index1017[] = 
       
   245                      {
       
   246                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1017 }
       
   247                      };
       
   248 
       
   249 /* index 0x1018 :   Identity. */
       
   250                     UNS8 ObjDict_highestSubIndex_obj1018 = 3; /* number of subindex - 1*/
       
   251                     UNS32 ObjDict_obj1018_Vendor_ID = 0x175;	/* 373 */
       
   252                     UNS32 ObjDict_obj1018_Product_Code = 0x100000;	/* 1048576 */
       
   253                     UNS32 ObjDict_obj1018_Revision_Number = 0x10001;	/* 65537 */
       
   254                     subindex ObjDict_Index1018[] = 
       
   255                      {
       
   256                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1018 },
       
   257                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Vendor_ID },
       
   258                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Product_Code },
       
   259                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Revision_Number }
       
   260                      };
       
   261 
       
   262 /* index 0x1020 :   Verify Configuration. */
       
   263                     UNS8 ObjDict_highestSubIndex_obj1020 = 2; /* number of subindex - 1*/
       
   264                     UNS32 ObjDict_obj1020_Configuration_Date = 0x0;	/* 0 */
       
   265                     UNS32 ObjDict_obj1020_Configuration_Time = 0x0;	/* 0 */
       
   266                     subindex ObjDict_Index1020[] = 
       
   267                      {
       
   268                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1020 },
       
   269                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1020_Configuration_Date },
       
   270                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1020_Configuration_Time }
       
   271                      };
       
   272 
       
   273 /* index 0x1200 :   Server SDO Parameter. */
       
   274                     UNS8 ObjDict_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
       
   275                     UNS32 ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x600;	/* 1536 */
       
   276                     UNS32 ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x580;	/* 1408 */
       
   277                     subindex ObjDict_Index1200[] = 
       
   278                      {
       
   279                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1200 },
       
   280                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO },
       
   281                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
       
   282                      };
       
   283 
       
   284 /* index 0x1400 :   Receive PDO 1 Parameter. */
       
   285                     UNS8 ObjDict_highestSubIndex_obj1400 = 2; /* number of subindex - 1*/
       
   286                     UNS32 ObjDict_obj1400_COB_ID_used_by_PDO = 0x200;	/* 512 */
       
   287                     UNS8 ObjDict_obj1400_Transmission_Type = 0x1;	/* 1 */
       
   288                     subindex ObjDict_Index1400[] = 
       
   289                      {
       
   290                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1400 },
       
   291                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1400_COB_ID_used_by_PDO },
       
   292                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Transmission_Type }
       
   293                      };
       
   294 
       
   295 /* index 0x1401 :   Receive PDO 2 Parameter. */
       
   296                     UNS8 ObjDict_highestSubIndex_obj1401 = 2; /* number of subindex - 1*/
       
   297                     UNS32 ObjDict_obj1401_COB_ID_used_by_PDO = 0x300;	/* 768 */
       
   298                     UNS8 ObjDict_obj1401_Transmission_Type = 0x1;	/* 1 */
       
   299                     subindex ObjDict_Index1401[] = 
       
   300                      {
       
   301                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1401 },
       
   302                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1401_COB_ID_used_by_PDO },
       
   303                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1401_Transmission_Type }
       
   304                      };
       
   305 
       
   306 /* index 0x1600 :   Receive PDO 1 Mapping. */
       
   307                     UNS8 ObjDict_highestSubIndex_obj1600 = 1; /* number of subindex - 1*/
       
   308                     UNS32 ObjDict_obj1600[] = 
       
   309                     {
       
   310                       0x62000108	/* 1644167432 */
       
   311                     };
       
   312                     subindex ObjDict_Index1600[] = 
       
   313                      {
       
   314                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1600 },
       
   315                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1600[0] }
       
   316                      };
       
   317 
       
   318 /* index 0x1601 :   Receive PDO 2 Mapping. */
       
   319                     UNS8 ObjDict_highestSubIndex_obj1601 = 4; /* number of subindex - 1*/
       
   320                     UNS32 ObjDict_obj1601[] = 
       
   321                     {
       
   322                       0x64110110,	/* 1678835984 */
       
   323                       0x64110210,	/* 1678836240 */
       
   324                       0x64110310,	/* 1678836496 */
       
   325                       0x64110410	/* 1678836752 */
       
   326                     };
       
   327                     subindex ObjDict_Index1601[] = 
       
   328                      {
       
   329                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1601 },
       
   330                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[0] },
       
   331                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[1] },
       
   332                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[2] },
       
   333                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[3] }
       
   334                      };
       
   335 
       
   336 /* index 0x1800 :   Transmit PDO 1 Parameter. */
       
   337                     UNS8 ObjDict_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/
       
   338                     UNS32 ObjDict_obj1800_COB_ID_used_by_PDO = 0x180;	/* 384 */
       
   339                     UNS8 ObjDict_obj1800_Transmission_Type = 0x1;	/* 1 */
       
   340                     UNS16 ObjDict_obj1800_Inhibit_Time = 0x0;	/* 0 */
       
   341                     UNS8 ObjDict_obj1800_Compatibility_Entry = 0x0;	/* 0 */
       
   342                     UNS16 ObjDict_obj1800_Event_Timer = 0x0;	/* 0 */
       
   343                     ODCallback_t ObjDict_Index1800_callbacks[] = 
       
   344                      {
       
   345                        NULL,
       
   346                        NULL,
       
   347                        NULL,
       
   348                        NULL,
       
   349                        NULL,
       
   350                        NULL,
       
   351                      };
       
   352                     subindex ObjDict_Index1800[] = 
       
   353                      {
       
   354                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1800 },
       
   355                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1800_COB_ID_used_by_PDO },
       
   356                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Transmission_Type },
       
   357                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Inhibit_Time },
       
   358                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Compatibility_Entry },
       
   359                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Event_Timer }
       
   360                      };
       
   361 
       
   362 /* index 0x1801 :   Transmit PDO 2 Parameter. */
       
   363                     UNS8 ObjDict_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/
       
   364                     UNS32 ObjDict_obj1801_COB_ID_used_by_PDO = 0x280;	/* 640 */
       
   365                     UNS8 ObjDict_obj1801_Transmission_Type = 0x1;	/* 1 */
       
   366                     UNS16 ObjDict_obj1801_Inhibit_Time = 0x0;	/* 0 */
       
   367                     UNS8 ObjDict_obj1801_Compatibility_Entry = 0x0;	/* 0 */
       
   368                     UNS16 ObjDict_obj1801_Event_Timer = 0x0;	/* 0 */
       
   369                     ODCallback_t ObjDict_Index1801_callbacks[] = 
       
   370                      {
       
   371                        NULL,
       
   372                        NULL,
       
   373                        NULL,
       
   374                        NULL,
       
   375                        NULL,
       
   376                        NULL,
       
   377                      };
       
   378                     subindex ObjDict_Index1801[] = 
       
   379                      {
       
   380                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1801 },
       
   381                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1801_COB_ID_used_by_PDO },
       
   382                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1801_Transmission_Type },
       
   383                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1801_Inhibit_Time },
       
   384                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1801_Compatibility_Entry },
       
   385                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1801_Event_Timer }
       
   386                      };
       
   387 
       
   388 /* index 0x1802 :   Transmit PDO 3 Parameter. */
       
   389                     UNS8 ObjDict_highestSubIndex_obj1802 = 5; /* number of subindex - 1*/
       
   390                     UNS32 ObjDict_obj1802_COB_ID_used_by_PDO = 0x380;	/* 896 */
       
   391                     UNS8 ObjDict_obj1802_Transmission_Type = 0x1;	/* 1 */
       
   392                     UNS16 ObjDict_obj1802_Inhibit_Time = 0x0;	/* 0 */
       
   393                     UNS8 ObjDict_obj1802_Compatibility_Entry = 0x0;	/* 0 */
       
   394                     UNS16 ObjDict_obj1802_Event_Timer = 0x0;	/* 0 */
       
   395                     ODCallback_t ObjDict_Index1802_callbacks[] = 
       
   396                      {
       
   397                        NULL,
       
   398                        NULL,
       
   399                        NULL,
       
   400                        NULL,
       
   401                        NULL,
       
   402                        NULL,
       
   403                      };
       
   404                     subindex ObjDict_Index1802[] = 
       
   405                      {
       
   406                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1802 },
       
   407                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1802_COB_ID_used_by_PDO },
       
   408                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1802_Transmission_Type },
       
   409                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1802_Inhibit_Time },
       
   410                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1802_Compatibility_Entry },
       
   411                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1802_Event_Timer }
       
   412                      };
       
   413 
       
   414 /* index 0x1A00 :   Transmit PDO 1 Mapping. */
       
   415                     UNS8 ObjDict_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/
       
   416                     UNS32 ObjDict_obj1A00[] = 
       
   417                     {
       
   418                       0x60000108	/* 1610613000 */
       
   419                     };
       
   420                     subindex ObjDict_Index1A00[] = 
       
   421                      {
       
   422                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A00 },
       
   423                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[0] }
       
   424                      };
       
   425 
       
   426 /* index 0x1A01 :   Transmit PDO 2 Mapping. */
       
   427                     UNS8 ObjDict_highestSubIndex_obj1A01 = 4; /* number of subindex - 1*/
       
   428                     UNS32 ObjDict_obj1A01[] = 
       
   429                     {
       
   430                       0x64010110,	/* 1677787408 */
       
   431                       0x64010210,	/* 1677787664 */
       
   432                       0x64010310,	/* 1677787920 */
       
   433                       0x64010410	/* 1677788176 */
       
   434                     };
       
   435                     subindex ObjDict_Index1A01[] = 
       
   436                      {
       
   437                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A01 },
       
   438                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[0] },
       
   439                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[1] },
       
   440                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[2] },
       
   441                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[3] }
       
   442                      };
       
   443 
       
   444 /* index 0x1A02 :   Transmit PDO 3 Mapping. */
       
   445                     UNS8 ObjDict_highestSubIndex_obj1A02 = 4; /* number of subindex - 1*/
       
   446                     UNS32 ObjDict_obj1A02[] = 
       
   447                     {
       
   448                       0x64010510,	/* 1677788432 */
       
   449                       0x64010610,	/* 1677788688 */
       
   450                       0x64010710,	/* 1677788944 */
       
   451                       0x64010810	/* 1677789200 */
       
   452                     };
       
   453                     subindex ObjDict_Index1A02[] = 
       
   454                      {
       
   455                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A02 },
       
   456                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[0] },
       
   457                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[1] },
       
   458                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[2] },
       
   459                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[3] }
       
   460                      };
       
   461 
       
   462 /* index 0x6000 :   Mapped variable Read Inputs 8 Bit */
       
   463                     UNS8 ObjDict_highestSubIndex_obj6000 = 1; /* number of subindex - 1*/
       
   464                     subindex ObjDict_Index6000[] = 
       
   465                      {
       
   466                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6000 },
       
   467                        { RO, uint8, sizeof (UNS8), (void*)&Read_Inputs_8_Bit[0] }
       
   468                      };
       
   469 
       
   470 /* index 0x6002 :   Mapped variable Polarity Input 8 Bit */
       
   471                     UNS8 ObjDict_highestSubIndex_obj6002 = 1; /* number of subindex - 1*/
       
   472                     subindex ObjDict_Index6002[] = 
       
   473                      {
       
   474                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6002 },
       
   475                        { RW, uint8, sizeof (UNS8), (void*)&Polarity_Input_8_Bit[0] }
       
   476                      };
       
   477 
       
   478 /* index 0x6200 :   Mapped variable Write Outputs 8 Bit */
       
   479                     UNS8 ObjDict_highestSubIndex_obj6200 = 1; /* number of subindex - 1*/
       
   480                     subindex ObjDict_Index6200[] = 
       
   481                      {
       
   482                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6200 },
       
   483                        { RW, uint8, sizeof (UNS8), (void*)&Write_Outputs_8_Bit[0] }
       
   484                      };
       
   485 
       
   486 /* index 0x6202 :   Mapped variable Change Polarity Outputs 8 Bit */
       
   487                     UNS8 ObjDict_highestSubIndex_obj6202 = 1; /* number of subindex - 1*/
       
   488                     subindex ObjDict_Index6202[] = 
       
   489                      {
       
   490                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6202 },
       
   491                        { RW, uint8, sizeof (UNS8), (void*)&Change_Polarity_Outputs_8_Bit[0] }
       
   492                      };
       
   493 
       
   494 /* index 0x6206 :   Mapped variable Error Mode Outputs 8 Bit */
       
   495                     UNS8 ObjDict_highestSubIndex_obj6206 = 1; /* number of subindex - 1*/
       
   496                     subindex ObjDict_Index6206[] = 
       
   497                      {
       
   498                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6206 },
       
   499                        { RW, uint8, sizeof (UNS8), (void*)&Error_Mode_Outputs_8_Bit[0] }
       
   500                      };
       
   501 
       
   502 /* index 0x6207 :   Mapped variable Error Value Outputs 8 Bit */
       
   503                     UNS8 ObjDict_highestSubIndex_obj6207 = 1; /* number of subindex - 1*/
       
   504                     subindex ObjDict_Index6207[] = 
       
   505                      {
       
   506                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6207 },
       
   507                        { RW, uint8, sizeof (UNS8), (void*)&Error_Value_Outputs_8_Bit[0] }
       
   508                      };
       
   509 
       
   510 /* index 0x6401 :   Mapped variable Read Analogue Input 16 Bit */
       
   511                     UNS8 ObjDict_highestSubIndex_obj6401 = 8; /* number of subindex - 1*/
       
   512                     subindex ObjDict_Index6401[] = 
       
   513                      {
       
   514                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6401 },
       
   515                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[0] },
       
   516                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[1] },
       
   517                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[2] },
       
   518                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[3] },
       
   519                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[4] },
       
   520                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[5] },
       
   521                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[6] },
       
   522                        { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[7] }
       
   523                      };
       
   524 
       
   525 /* index 0x6411 :   Mapped variable Write Analogue Output 16 Bit */
       
   526                     UNS8 ObjDict_highestSubIndex_obj6411 = 4; /* number of subindex - 1*/
       
   527                     subindex ObjDict_Index6411[] = 
       
   528                      {
       
   529                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6411 },
       
   530                        { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[0] },
       
   531                        { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[1] },
       
   532                        { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[2] },
       
   533                        { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[3] }
       
   534                      };
       
   535 
       
   536 /* index 0x6423 :   Mapped variable Analogue Input Global Interrupt Enable */
       
   537                     subindex ObjDict_Index6423[] = 
       
   538                      {
       
   539                        { RW, boolean, sizeof (UNS8), (void*)&Analogue_Input_Global_Interrupt_Enable }
       
   540                      };
       
   541 
       
   542 /* index 0x6426 :   Mapped variable Analogue Input Interrupt Delta Unsigned */
       
   543                     UNS8 ObjDict_highestSubIndex_obj6426 = 8; /* number of subindex - 1*/
       
   544                     subindex ObjDict_Index6426[] = 
       
   545                      {
       
   546                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6426 },
       
   547                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[0] },
       
   548                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[1] },
       
   549                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[2] },
       
   550                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[3] },
       
   551                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[4] },
       
   552                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[5] },
       
   553                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[6] },
       
   554                        { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[7] }
       
   555                      };
       
   556 
       
   557 /* index 0x6443 :   Mapped variable Analogue Output Error Mode */
       
   558                     UNS8 ObjDict_highestSubIndex_obj6443 = 4; /* number of subindex - 1*/
       
   559                     subindex ObjDict_Index6443[] = 
       
   560                      {
       
   561                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6443 },
       
   562                        { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[0] },
       
   563                        { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[1] },
       
   564                        { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[2] },
       
   565                        { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[3] }
       
   566                      };
       
   567 
       
   568 /* index 0x6444 :   Mapped variable Analogue Output Error Value Integer */
       
   569                     UNS8 ObjDict_highestSubIndex_obj6444 = 4; /* number of subindex - 1*/
       
   570                     subindex ObjDict_Index6444[] = 
       
   571                      {
       
   572                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6444 },
       
   573                        { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[0] },
       
   574                        { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[1] },
       
   575                        { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[2] },
       
   576                        { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[3] }
       
   577                      };
       
   578 
       
   579 const indextable ObjDict_objdict[] = 
       
   580 {
       
   581   { (subindex*)ObjDict_Index1000,sizeof(ObjDict_Index1000)/sizeof(ObjDict_Index1000[0]), 0x1000},
       
   582   { (subindex*)ObjDict_Index1001,sizeof(ObjDict_Index1001)/sizeof(ObjDict_Index1001[0]), 0x1001},
       
   583   { (subindex*)ObjDict_Index1002,sizeof(ObjDict_Index1002)/sizeof(ObjDict_Index1002[0]), 0x1002},
       
   584   { (subindex*)ObjDict_Index1005,sizeof(ObjDict_Index1005)/sizeof(ObjDict_Index1005[0]), 0x1005},
       
   585   { (subindex*)ObjDict_Index1008,sizeof(ObjDict_Index1008)/sizeof(ObjDict_Index1008[0]), 0x1008},
       
   586   { (subindex*)ObjDict_Index1009,sizeof(ObjDict_Index1009)/sizeof(ObjDict_Index1009[0]), 0x1009},
       
   587   { (subindex*)ObjDict_Index100A,sizeof(ObjDict_Index100A)/sizeof(ObjDict_Index100A[0]), 0x100A},
       
   588   { (subindex*)ObjDict_Index100C,sizeof(ObjDict_Index100C)/sizeof(ObjDict_Index100C[0]), 0x100C},
       
   589   { (subindex*)ObjDict_Index100D,sizeof(ObjDict_Index100D)/sizeof(ObjDict_Index100D[0]), 0x100D},
       
   590   { (subindex*)ObjDict_Index1010,sizeof(ObjDict_Index1010)/sizeof(ObjDict_Index1010[0]), 0x1010},
       
   591   { (subindex*)ObjDict_Index1011,sizeof(ObjDict_Index1011)/sizeof(ObjDict_Index1011[0]), 0x1011},
       
   592   { (subindex*)ObjDict_Index1016,sizeof(ObjDict_Index1016)/sizeof(ObjDict_Index1016[0]), 0x1016},
       
   593   { (subindex*)ObjDict_Index1017,sizeof(ObjDict_Index1017)/sizeof(ObjDict_Index1017[0]), 0x1017},
       
   594   { (subindex*)ObjDict_Index1018,sizeof(ObjDict_Index1018)/sizeof(ObjDict_Index1018[0]), 0x1018},
       
   595   { (subindex*)ObjDict_Index1020,sizeof(ObjDict_Index1020)/sizeof(ObjDict_Index1020[0]), 0x1020},
       
   596   { (subindex*)ObjDict_Index1200,sizeof(ObjDict_Index1200)/sizeof(ObjDict_Index1200[0]), 0x1200},
       
   597   { (subindex*)ObjDict_Index1400,sizeof(ObjDict_Index1400)/sizeof(ObjDict_Index1400[0]), 0x1400},
       
   598   { (subindex*)ObjDict_Index1401,sizeof(ObjDict_Index1401)/sizeof(ObjDict_Index1401[0]), 0x1401},
       
   599   { (subindex*)ObjDict_Index1600,sizeof(ObjDict_Index1600)/sizeof(ObjDict_Index1600[0]), 0x1600},
       
   600   { (subindex*)ObjDict_Index1601,sizeof(ObjDict_Index1601)/sizeof(ObjDict_Index1601[0]), 0x1601},
       
   601   { (subindex*)ObjDict_Index1800,sizeof(ObjDict_Index1800)/sizeof(ObjDict_Index1800[0]), 0x1800},
       
   602   { (subindex*)ObjDict_Index1801,sizeof(ObjDict_Index1801)/sizeof(ObjDict_Index1801[0]), 0x1801},
       
   603   { (subindex*)ObjDict_Index1802,sizeof(ObjDict_Index1802)/sizeof(ObjDict_Index1802[0]), 0x1802},
       
   604   { (subindex*)ObjDict_Index1A00,sizeof(ObjDict_Index1A00)/sizeof(ObjDict_Index1A00[0]), 0x1A00},
       
   605   { (subindex*)ObjDict_Index1A01,sizeof(ObjDict_Index1A01)/sizeof(ObjDict_Index1A01[0]), 0x1A01},
       
   606   { (subindex*)ObjDict_Index1A02,sizeof(ObjDict_Index1A02)/sizeof(ObjDict_Index1A02[0]), 0x1A02},
       
   607   { (subindex*)ObjDict_Index6000,sizeof(ObjDict_Index6000)/sizeof(ObjDict_Index6000[0]), 0x6000},
       
   608   { (subindex*)ObjDict_Index6002,sizeof(ObjDict_Index6002)/sizeof(ObjDict_Index6002[0]), 0x6002},
       
   609   { (subindex*)ObjDict_Index6200,sizeof(ObjDict_Index6200)/sizeof(ObjDict_Index6200[0]), 0x6200},
       
   610   { (subindex*)ObjDict_Index6202,sizeof(ObjDict_Index6202)/sizeof(ObjDict_Index6202[0]), 0x6202},
       
   611   { (subindex*)ObjDict_Index6206,sizeof(ObjDict_Index6206)/sizeof(ObjDict_Index6206[0]), 0x6206},
       
   612   { (subindex*)ObjDict_Index6207,sizeof(ObjDict_Index6207)/sizeof(ObjDict_Index6207[0]), 0x6207},
       
   613   { (subindex*)ObjDict_Index6401,sizeof(ObjDict_Index6401)/sizeof(ObjDict_Index6401[0]), 0x6401},
       
   614   { (subindex*)ObjDict_Index6411,sizeof(ObjDict_Index6411)/sizeof(ObjDict_Index6411[0]), 0x6411},
       
   615   { (subindex*)ObjDict_Index6423,sizeof(ObjDict_Index6423)/sizeof(ObjDict_Index6423[0]), 0x6423},
       
   616   { (subindex*)ObjDict_Index6426,sizeof(ObjDict_Index6426)/sizeof(ObjDict_Index6426[0]), 0x6426},
       
   617   { (subindex*)ObjDict_Index6443,sizeof(ObjDict_Index6443)/sizeof(ObjDict_Index6443[0]), 0x6443},
       
   618   { (subindex*)ObjDict_Index6444,sizeof(ObjDict_Index6444)/sizeof(ObjDict_Index6444[0]), 0x6444},
       
   619 };
       
   620 
       
   621 const indextable * ObjDict_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
       
   622 {
       
   623 	int i;
       
   624 	*callbacks = NULL;
       
   625 	switch(wIndex){
       
   626 		case 0x1000: i = 0;break;
       
   627 		case 0x1001: i = 1;break;
       
   628 		case 0x1002: i = 2;break;
       
   629 		case 0x1005: i = 3;*callbacks = ObjDict_Index1005_callbacks; break;
       
   630 		case 0x1008: i = 4;break;
       
   631 		case 0x1009: i = 5;break;
       
   632 		case 0x100A: i = 6;break;
       
   633 		case 0x100C: i = 7;break;
       
   634 		case 0x100D: i = 8;break;
       
   635 		case 0x1010: i = 9;break;
       
   636 		case 0x1011: i = 10;break;
       
   637 		case 0x1016: i = 11;break;
       
   638 		case 0x1017: i = 12;*callbacks = ObjDict_Index1017_callbacks; break;
       
   639 		case 0x1018: i = 13;break;
       
   640 		case 0x1020: i = 14;break;
       
   641 		case 0x1200: i = 15;break;
       
   642 		case 0x1400: i = 16;break;
       
   643 		case 0x1401: i = 17;break;
       
   644 		case 0x1600: i = 18;break;
       
   645 		case 0x1601: i = 19;break;
       
   646 		case 0x1800: i = 20;*callbacks = ObjDict_Index1800_callbacks; break;
       
   647 		case 0x1801: i = 21;*callbacks = ObjDict_Index1801_callbacks; break;
       
   648 		case 0x1802: i = 22;*callbacks = ObjDict_Index1802_callbacks; break;
       
   649 		case 0x1A00: i = 23;break;
       
   650 		case 0x1A01: i = 24;break;
       
   651 		case 0x1A02: i = 25;break;
       
   652 		case 0x6000: i = 26;break;
       
   653 		case 0x6002: i = 27;break;
       
   654 		case 0x6200: i = 28;break;
       
   655 		case 0x6202: i = 29;break;
       
   656 		case 0x6206: i = 30;break;
       
   657 		case 0x6207: i = 31;break;
       
   658 		case 0x6401: i = 32;break;
       
   659 		case 0x6411: i = 33;break;
       
   660 		case 0x6423: i = 34;break;
       
   661 		case 0x6426: i = 35;break;
       
   662 		case 0x6443: i = 36;break;
       
   663 		case 0x6444: i = 37;break;
       
   664 		default:
       
   665 			*errorCode = OD_NO_SUCH_OBJECT;
       
   666 			return NULL;
       
   667 	}
       
   668 	*errorCode = OD_SUCCESSFUL;
       
   669 	return &ObjDict_objdict[i];
       
   670 }
       
   671 
       
   672 /* 
       
   673  * To count at which received SYNC a PDO must be sent.
       
   674  * Even if no pdoTransmit are defined, at least one entry is computed
       
   675  * for compilations issues.
       
   676  */
       
   677 s_PDO_status ObjDict_PDO_status[3] = {s_PDO_status_Initializer,s_PDO_status_Initializer,s_PDO_status_Initializer};
       
   678 
       
   679 quick_index ObjDict_firstIndex = {
       
   680   15, /* SDO_SVR */
       
   681   0, /* SDO_CLT */
       
   682   16, /* PDO_RCV */
       
   683   18, /* PDO_RCV_MAP */
       
   684   20, /* PDO_TRS */
       
   685   23 /* PDO_TRS_MAP */
       
   686 };
       
   687 
       
   688 quick_index ObjDict_lastIndex = {
       
   689   15, /* SDO_SVR */
       
   690   0, /* SDO_CLT */
       
   691   17, /* PDO_RCV */
       
   692   19, /* PDO_RCV_MAP */
       
   693   22, /* PDO_TRS */
       
   694   25 /* PDO_TRS_MAP */
       
   695 };
       
   696 
       
   697 UNS16 ObjDict_ObjdictSize = sizeof(ObjDict_objdict)/sizeof(ObjDict_objdict[0]); 
       
   698 
       
   699 CO_Data ObjDict_Data = CANOPEN_NODE_DATA_INITIALIZER(ObjDict);
       
   700