examples/AVR/DS401_Slave/ObjDict.c
changeset 415 ac9d693fc589
parent 414 d6d31c35676b
child 416 9ef58fa2c66a
equal deleted inserted replaced
414:d6d31c35676b 415:ac9d693fc589
     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 Filter_Constant_Input_8_Bit[] =		/* Mapped at index 0x6003, subindex 0x01 - 0x01 */
       
    18   {
       
    19     0x0	/* 0 */
       
    20   };
       
    21 UNS8 Global_Interrupt_Enable_Digital = 0x1;		/* Mapped at index 0x6005, subindex 0x00 */
       
    22 UNS8 Interrupt_Mask_Any_Change_8_Bit[] =		/* Mapped at index 0x6006, subindex 0x01 - 0x01 */
       
    23   {
       
    24     0xFF	/* 255 */
       
    25   };
       
    26 UNS8 Write_Outputs_8_Bit[] =		/* Mapped at index 0x6200, subindex 0x01 - 0x01 */
       
    27   {
       
    28     0x0	/* 0 */
       
    29   };
       
    30 
       
    31 /**************************************************************************/
       
    32 /* Declaration of the value range types                                   */
       
    33 /**************************************************************************/
       
    34 
       
    35 #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */
       
    36 UNS32 ObjDict_valueRangeTest (UNS8 typeValue, void * value)
       
    37 {
       
    38   switch (typeValue) {
       
    39     case valueRange_EMC:
       
    40       if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED;
       
    41       break;
       
    42   }
       
    43   return 0;
       
    44 }
       
    45 
       
    46 /**************************************************************************/
       
    47 /* The node id                                                            */
       
    48 /**************************************************************************/
       
    49 /* node_id default value.*/
       
    50 UNS8 ObjDict_bDeviceNodeId = 0x00;
       
    51 
       
    52 /**************************************************************************/
       
    53 /* Array of message processing information */
       
    54 
       
    55 const UNS8 ObjDict_iam_a_slave = 1;
       
    56 
       
    57 TIMER_HANDLE ObjDict_heartBeatTimers[1] = {TIMER_NONE,};
       
    58 
       
    59 /*
       
    60 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
       
    61 
       
    62                                OBJECT DICTIONARY
       
    63 
       
    64 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
       
    65 */
       
    66 
       
    67 /* index 0x1000 :   Device Type. */
       
    68                     UNS32 ObjDict_obj1000 = 0x30191;	/* 197009 */
       
    69                     subindex ObjDict_Index1000[] = 
       
    70                      {
       
    71                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1000 }
       
    72                      };
       
    73 
       
    74 /* index 0x1001 :   Error Register. */
       
    75                     UNS8 ObjDict_obj1001 = 0x0;	/* 0 */
       
    76                     subindex ObjDict_Index1001[] = 
       
    77                      {
       
    78                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_obj1001 }
       
    79                      };
       
    80 
       
    81 /* index 0x1003 :   Pre-defined Error Field. */
       
    82                     UNS8 ObjDict_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
       
    83                     UNS32 ObjDict_obj1003[] = 
       
    84                     {
       
    85                       0x0	/* 0 */
       
    86                     };
       
    87                     ODCallback_t ObjDict_Index1003_callbacks[] = 
       
    88                      {
       
    89                        NULL,
       
    90                        NULL,
       
    91                      };
       
    92                     subindex ObjDict_Index1003[] = 
       
    93                      {
       
    94                        { RW, valueRange_EMC, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1003 },
       
    95                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1003[0] }
       
    96                      };
       
    97 
       
    98 /* index 0x1005 :   SYNC COB ID. */
       
    99                     UNS32 ObjDict_obj1005 = 0x80;	/* 128 */
       
   100                     ODCallback_t ObjDict_Index1005_callbacks[] = 
       
   101                      {
       
   102                        NULL,
       
   103                      };
       
   104                     subindex ObjDict_Index1005[] = 
       
   105                      {
       
   106                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1005 }
       
   107                      };
       
   108 
       
   109 /* index 0x1006 :   Communication / Cycle Period */
       
   110                     UNS32 ObjDict_obj1006 = 0x0;   /* 0 */
       
   111 
       
   112 /* index 0x1008 :   Manufacturer Device Name. */
       
   113                     UNS8 ObjDict_obj1008[10] = "";
       
   114                     subindex ObjDict_Index1008[] = 
       
   115                      {
       
   116                        { RO, visible_string, 0, (void*)&ObjDict_obj1008 }
       
   117                      };
       
   118 
       
   119 /* index 0x1009 :   Manufacturer Hardware Version. */
       
   120                     UNS8 ObjDict_obj1009[10] = "";
       
   121                     subindex ObjDict_Index1009[] = 
       
   122                      {
       
   123                        { RO, visible_string, 0, (void*)&ObjDict_obj1009 }
       
   124                      };
       
   125 
       
   126 /* index 0x100A :   Manufacturer Software Version. */
       
   127                     UNS8 ObjDict_obj100A[10] = "";
       
   128                     subindex ObjDict_Index100A[] = 
       
   129                      {
       
   130                        { RO, visible_string, 0, (void*)&ObjDict_obj100A }
       
   131                      };
       
   132 
       
   133 /* index 0x1010 :   Store parameters. */
       
   134                     UNS8 ObjDict_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/
       
   135                     UNS32 ObjDict_obj1010_Save_All_Parameters = 0x0;	/* 0 */
       
   136                     UNS32 ObjDict_obj1010_Save_Communication_Parameters = 0x0;	/* 0 */
       
   137                     UNS32 ObjDict_obj1010_Save_Application_Parameters = 0x0;	/* 0 */
       
   138                     UNS32 ObjDict_obj1010_Save_Manufacturer_Parameters = 0x0;	/* 0 */
       
   139                     subindex ObjDict_Index1010[] = 
       
   140                      {
       
   141                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1010 },
       
   142                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_All_Parameters },
       
   143                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Communication_Parameters },
       
   144                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Application_Parameters },
       
   145                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Manufacturer_Parameters }
       
   146                      };
       
   147 
       
   148 /* index 0x1011 :   Restore Default Parameters. */
       
   149                     UNS8 ObjDict_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/
       
   150                     UNS32 ObjDict_obj1011_Restore_All_Default_Parameters = 0x0;	/* 0 */
       
   151                     UNS32 ObjDict_obj1011_Restore_Communication_Default_Parameters = 0x0;	/* 0 */
       
   152                     UNS32 ObjDict_obj1011_Restore_Application_Default_Parameters = 0x0;	/* 0 */
       
   153                     UNS32 ObjDict_obj1011_Restore_Manufacturer_Default_Parameters = 0x0;	/* 0 */
       
   154                     subindex ObjDict_Index1011[] = 
       
   155                      {
       
   156                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1011 },
       
   157                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_All_Default_Parameters },
       
   158                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Communication_Default_Parameters },
       
   159                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Application_Default_Parameters },
       
   160                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Manufacturer_Default_Parameters }
       
   161                      };
       
   162 
       
   163 /* index 0x1014 :   Emergency COB ID. */
       
   164                     UNS32 ObjDict_obj1014 = 0x80;	/* 128 */
       
   165                     subindex ObjDict_Index1014[] = 
       
   166                      {
       
   167                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1014 }
       
   168                      };
       
   169 
       
   170 /* index 0x1016 :   Consumer Heartbeat Time. */
       
   171                     UNS8 ObjDict_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/
       
   172                     UNS32 ObjDict_obj1016[] = 
       
   173                     {
       
   174                       0x0	/* 0 */
       
   175                     };
       
   176                     subindex ObjDict_Index1016[] = 
       
   177                      {
       
   178                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1016 },
       
   179                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[0] }
       
   180                      };
       
   181 
       
   182 /* index 0x1017 :   Producer Heartbeat Time. */
       
   183                     UNS16 ObjDict_obj1017 = 0x3E8;	/* 1000 */
       
   184                     ODCallback_t ObjDict_Index1017_callbacks[] = 
       
   185                      {
       
   186                        NULL,
       
   187                      };
       
   188                     subindex ObjDict_Index1017[] = 
       
   189                      {
       
   190                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1017 }
       
   191                      };
       
   192 
       
   193 /* index 0x1018 :   Identity. */
       
   194                     UNS8 ObjDict_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
       
   195                     UNS32 ObjDict_obj1018_Vendor_ID = 0x0;	/* 0 */
       
   196                     UNS32 ObjDict_obj1018_Product_Code = 0x0;	/* 0 */
       
   197                     UNS32 ObjDict_obj1018_Revision_Number = 0x0;	/* 0 */
       
   198                     UNS32 ObjDict_obj1018_Serial_Number = 0x0;	/* 0 */
       
   199                     subindex ObjDict_Index1018[] = 
       
   200                      {
       
   201                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1018 },
       
   202                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Vendor_ID },
       
   203                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Product_Code },
       
   204                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Revision_Number },
       
   205                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Serial_Number }
       
   206                      };
       
   207 
       
   208 /* index 0x1200 :   Server SDO Parameter. */
       
   209                     UNS8 ObjDict_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
       
   210                     UNS32 ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x600;	/* 1536 */
       
   211                     UNS32 ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x580;	/* 1408 */
       
   212                     subindex ObjDict_Index1200[] = 
       
   213                      {
       
   214                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1200 },
       
   215                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO },
       
   216                        { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
       
   217                      };
       
   218 
       
   219 /* index 0x1400 :   Receive PDO 1 Parameter. */
       
   220                     UNS8 ObjDict_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/
       
   221                     UNS32 ObjDict_obj1400_COB_ID_used_by_PDO = 0x200;	/* 512 */
       
   222                     UNS8 ObjDict_obj1400_Transmission_Type = 0x1;	/* 1 */
       
   223                     UNS16 ObjDict_obj1400_Inhibit_Time = 0x0;	/* 0 */
       
   224                     UNS8 ObjDict_obj1400_Compatibility_Entry = 0x0;	/* 0 */
       
   225                     UNS16 ObjDict_obj1400_Event_Timer = 0x0;	/* 0 */
       
   226                     subindex ObjDict_Index1400[] = 
       
   227                      {
       
   228                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1400 },
       
   229                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1400_COB_ID_used_by_PDO },
       
   230                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Transmission_Type },
       
   231                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1400_Inhibit_Time },
       
   232                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Compatibility_Entry },
       
   233                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1400_Event_Timer }
       
   234                      };
       
   235 
       
   236 /* index 0x1600 :   Receive PDO 1 Mapping. */
       
   237                     UNS8 ObjDict_highestSubIndex_obj1600 = 1; /* number of subindex - 1*/
       
   238                     UNS32 ObjDict_obj1600[] = 
       
   239                     {
       
   240                       0x62000108	/* 1644167432 */
       
   241                     };
       
   242                     subindex ObjDict_Index1600[] = 
       
   243                      {
       
   244                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1600 },
       
   245                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1600[0] }
       
   246                      };
       
   247 
       
   248 /* index 0x1800 :   Transmit PDO 1 Parameter. */
       
   249                     UNS8 ObjDict_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/
       
   250                     UNS32 ObjDict_obj1800_COB_ID_used_by_PDO = 0x180;	/* 384 */
       
   251                     UNS8 ObjDict_obj1800_Transmission_Type = 0x0;	/* 0 */
       
   252                     UNS16 ObjDict_obj1800_Inhibit_Time = 0x0;	/* 0 */
       
   253                     UNS8 ObjDict_obj1800_Compatibility_Entry = 0x0;	/* 0 */
       
   254                     UNS16 ObjDict_obj1800_Event_Timer = 0x0;	/* 0 */
       
   255                     ODCallback_t ObjDict_Index1800_callbacks[] = 
       
   256                      {
       
   257                        NULL,
       
   258                        NULL,
       
   259                        NULL,
       
   260                        NULL,
       
   261                        NULL,
       
   262                        NULL,
       
   263                      };
       
   264                     subindex ObjDict_Index1800[] = 
       
   265                      {
       
   266                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1800 },
       
   267                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1800_COB_ID_used_by_PDO },
       
   268                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Transmission_Type },
       
   269                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Inhibit_Time },
       
   270                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Compatibility_Entry },
       
   271                        { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Event_Timer }
       
   272                      };
       
   273 
       
   274 /* index 0x1A00 :   Transmit PDO 1 Mapping. */
       
   275                     UNS8 ObjDict_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/
       
   276                     UNS32 ObjDict_obj1A00[] = 
       
   277                     {
       
   278                       0x60000108	/* 1610613000 */
       
   279                     };
       
   280                     subindex ObjDict_Index1A00[] = 
       
   281                      {
       
   282                        { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A00 },
       
   283                        { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[0] }
       
   284                      };
       
   285 
       
   286 /* index 0x6000 :   Mapped variable Read Inputs 8 Bit */
       
   287                     UNS8 ObjDict_highestSubIndex_obj6000 = 1; /* number of subindex - 1*/
       
   288                     subindex ObjDict_Index6000[] = 
       
   289                      {
       
   290                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6000 },
       
   291                        { RO, uint8, sizeof (UNS8), (void*)&Read_Inputs_8_Bit[0] }
       
   292                      };
       
   293 
       
   294 /* index 0x6002 :   Mapped variable Polarity Input 8 Bit */
       
   295                     UNS8 ObjDict_highestSubIndex_obj6002 = 1; /* number of subindex - 1*/
       
   296                     subindex ObjDict_Index6002[] = 
       
   297                      {
       
   298                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6002 },
       
   299                        { RW, uint8, sizeof (UNS8), (void*)&Polarity_Input_8_Bit[0] }
       
   300                      };
       
   301 
       
   302 /* index 0x6003 :   Mapped variable Filter Constant Input 8 Bit */
       
   303                     UNS8 ObjDict_highestSubIndex_obj6003 = 1; /* number of subindex - 1*/
       
   304                     subindex ObjDict_Index6003[] = 
       
   305                      {
       
   306                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6003 },
       
   307                        { RW, uint8, sizeof (UNS8), (void*)&Filter_Constant_Input_8_Bit[0] }
       
   308                      };
       
   309 
       
   310 /* index 0x6005 :   Mapped variable Global Interrupt Enable Digital */
       
   311                     subindex ObjDict_Index6005[] = 
       
   312                      {
       
   313                        { RW, boolean, sizeof (UNS8), (void*)&Global_Interrupt_Enable_Digital }
       
   314                      };
       
   315 
       
   316 /* index 0x6006 :   Mapped variable Interrupt Mask Any Change 8 Bit */
       
   317                     UNS8 ObjDict_highestSubIndex_obj6006 = 1; /* number of subindex - 1*/
       
   318                     subindex ObjDict_Index6006[] = 
       
   319                      {
       
   320                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6006 },
       
   321                        { RW, uint8, sizeof (UNS8), (void*)&Interrupt_Mask_Any_Change_8_Bit[0] }
       
   322                      };
       
   323 
       
   324 /* index 0x6200 :   Mapped variable Write Outputs 8 Bit */
       
   325                     UNS8 ObjDict_highestSubIndex_obj6200 = 1; /* number of subindex - 1*/
       
   326                     subindex ObjDict_Index6200[] = 
       
   327                      {
       
   328                        { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6200 },
       
   329                        { RW, uint8, sizeof (UNS8), (void*)&Write_Outputs_8_Bit[0] }
       
   330                      };
       
   331 
       
   332 const indextable ObjDict_objdict[] = 
       
   333 {
       
   334   { (subindex*)ObjDict_Index1000,sizeof(ObjDict_Index1000)/sizeof(ObjDict_Index1000[0]), 0x1000},
       
   335   { (subindex*)ObjDict_Index1001,sizeof(ObjDict_Index1001)/sizeof(ObjDict_Index1001[0]), 0x1001},
       
   336   { (subindex*)ObjDict_Index1003,sizeof(ObjDict_Index1003)/sizeof(ObjDict_Index1003[0]), 0x1003},
       
   337   { (subindex*)ObjDict_Index1005,sizeof(ObjDict_Index1005)/sizeof(ObjDict_Index1005[0]), 0x1005},
       
   338   { (subindex*)ObjDict_Index1008,sizeof(ObjDict_Index1008)/sizeof(ObjDict_Index1008[0]), 0x1008},
       
   339   { (subindex*)ObjDict_Index1009,sizeof(ObjDict_Index1009)/sizeof(ObjDict_Index1009[0]), 0x1009},
       
   340   { (subindex*)ObjDict_Index100A,sizeof(ObjDict_Index100A)/sizeof(ObjDict_Index100A[0]), 0x100A},
       
   341   { (subindex*)ObjDict_Index1010,sizeof(ObjDict_Index1010)/sizeof(ObjDict_Index1010[0]), 0x1010},
       
   342   { (subindex*)ObjDict_Index1011,sizeof(ObjDict_Index1011)/sizeof(ObjDict_Index1011[0]), 0x1011},
       
   343   { (subindex*)ObjDict_Index1014,sizeof(ObjDict_Index1014)/sizeof(ObjDict_Index1014[0]), 0x1014},
       
   344   { (subindex*)ObjDict_Index1016,sizeof(ObjDict_Index1016)/sizeof(ObjDict_Index1016[0]), 0x1016},
       
   345   { (subindex*)ObjDict_Index1017,sizeof(ObjDict_Index1017)/sizeof(ObjDict_Index1017[0]), 0x1017},
       
   346   { (subindex*)ObjDict_Index1018,sizeof(ObjDict_Index1018)/sizeof(ObjDict_Index1018[0]), 0x1018},
       
   347   { (subindex*)ObjDict_Index1200,sizeof(ObjDict_Index1200)/sizeof(ObjDict_Index1200[0]), 0x1200},
       
   348   { (subindex*)ObjDict_Index1400,sizeof(ObjDict_Index1400)/sizeof(ObjDict_Index1400[0]), 0x1400},
       
   349   { (subindex*)ObjDict_Index1600,sizeof(ObjDict_Index1600)/sizeof(ObjDict_Index1600[0]), 0x1600},
       
   350   { (subindex*)ObjDict_Index1800,sizeof(ObjDict_Index1800)/sizeof(ObjDict_Index1800[0]), 0x1800},
       
   351   { (subindex*)ObjDict_Index1A00,sizeof(ObjDict_Index1A00)/sizeof(ObjDict_Index1A00[0]), 0x1A00},
       
   352   { (subindex*)ObjDict_Index6000,sizeof(ObjDict_Index6000)/sizeof(ObjDict_Index6000[0]), 0x6000},
       
   353   { (subindex*)ObjDict_Index6002,sizeof(ObjDict_Index6002)/sizeof(ObjDict_Index6002[0]), 0x6002},
       
   354   { (subindex*)ObjDict_Index6003,sizeof(ObjDict_Index6003)/sizeof(ObjDict_Index6003[0]), 0x6003},
       
   355   { (subindex*)ObjDict_Index6005,sizeof(ObjDict_Index6005)/sizeof(ObjDict_Index6005[0]), 0x6005},
       
   356   { (subindex*)ObjDict_Index6006,sizeof(ObjDict_Index6006)/sizeof(ObjDict_Index6006[0]), 0x6006},
       
   357   { (subindex*)ObjDict_Index6200,sizeof(ObjDict_Index6200)/sizeof(ObjDict_Index6200[0]), 0x6200},
       
   358 };
       
   359 
       
   360 const indextable * ObjDict_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
       
   361 {
       
   362 	int i;
       
   363 	*callbacks = NULL;
       
   364 	switch(wIndex){
       
   365 		case 0x1000: i = 0;break;
       
   366 		case 0x1001: i = 1;break;
       
   367 		case 0x1003: i = 2;*callbacks = ObjDict_Index1003_callbacks; break;
       
   368 		case 0x1005: i = 3;*callbacks = ObjDict_Index1005_callbacks; break;
       
   369 		case 0x1008: i = 4;break;
       
   370 		case 0x1009: i = 5;break;
       
   371 		case 0x100A: i = 6;break;
       
   372 		case 0x1010: i = 7;break;
       
   373 		case 0x1011: i = 8;break;
       
   374 		case 0x1014: i = 9;break;
       
   375 		case 0x1016: i = 10;break;
       
   376 		case 0x1017: i = 11;*callbacks = ObjDict_Index1017_callbacks; break;
       
   377 		case 0x1018: i = 12;break;
       
   378 		case 0x1200: i = 13;break;
       
   379 		case 0x1400: i = 14;break;
       
   380 		case 0x1600: i = 15;break;
       
   381 		case 0x1800: i = 16;*callbacks = ObjDict_Index1800_callbacks; break;
       
   382 		case 0x1A00: i = 17;break;
       
   383 		case 0x6000: i = 18;break;
       
   384 		case 0x6002: i = 19;break;
       
   385 		case 0x6003: i = 20;break;
       
   386 		case 0x6005: i = 21;break;
       
   387 		case 0x6006: i = 22;break;
       
   388 		case 0x6200: i = 23;break;
       
   389 		default:
       
   390 			*errorCode = OD_NO_SUCH_OBJECT;
       
   391 			return NULL;
       
   392 	}
       
   393 	*errorCode = OD_SUCCESSFUL;
       
   394 	return &ObjDict_objdict[i];
       
   395 }
       
   396 
       
   397 /* 
       
   398  * To count at which received SYNC a PDO must be sent.
       
   399  * Even if no pdoTransmit are defined, at least one entry is computed
       
   400  * for compilations issues.
       
   401  */
       
   402 s_PDO_status ObjDict_PDO_status[1] = {s_PDO_status_Initializer};
       
   403 
       
   404 quick_index ObjDict_firstIndex = {
       
   405   13, /* SDO_SVR */
       
   406   0, /* SDO_CLT */
       
   407   14, /* PDO_RCV */
       
   408   15, /* PDO_RCV_MAP */
       
   409   16, /* PDO_TRS */
       
   410   17 /* PDO_TRS_MAP */
       
   411 };
       
   412 
       
   413 quick_index ObjDict_lastIndex = {
       
   414   13, /* SDO_SVR */
       
   415   0, /* SDO_CLT */
       
   416   14, /* PDO_RCV */
       
   417   15, /* PDO_RCV_MAP */
       
   418   16, /* PDO_TRS */
       
   419   17 /* PDO_TRS_MAP */
       
   420 };
       
   421 
       
   422 UNS16 ObjDict_ObjdictSize = sizeof(ObjDict_objdict)/sizeof(ObjDict_objdict[0]); 
       
   423 
       
   424 CO_Data ObjDict_Data = CANOPEN_NODE_DATA_INITIALIZER(ObjDict);
       
   425