peter@413: peter@413: /* File generated by gen_cfile.py. Should not be modified. */ peter@413: peter@413: #include "ObjDict.h" peter@413: peter@413: /**************************************************************************/ peter@413: /* Declaration of the mapped variables */ peter@413: /**************************************************************************/ peter@413: UNS8 Read_Inputs_8_Bit[] = /* Mapped at index 0x6000, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: UNS8 Polarity_Input_8_Bit[] = /* Mapped at index 0x6002, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: UNS8 Filter_Constant_Input_8_Bit[] = /* Mapped at index 0x6003, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: UNS8 Global_Interrupt_Enable_Digital = 0x1; /* Mapped at index 0x6005, subindex 0x00 */ peter@413: UNS8 Interrupt_Mask_Any_Change_8_Bit[] = /* Mapped at index 0x6006, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0xFF /* 255 */ peter@413: }; peter@413: UNS8 Interrupt_Mask_Low_to_High_8_Bit[] = /* Mapped at index 0x6007, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: UNS8 Interrupt_Mask_High_to_Low_8_Bit[] = /* Mapped at index 0x6008, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: UNS8 Write_Outputs_8_Bit[] = /* Mapped at index 0x6200, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: UNS8 Change_Polarity_Outputs_8_Bit[] = /* Mapped at index 0x6202, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: UNS8 Error_Mode_Outputs_8_Bit[] = /* Mapped at index 0x6206, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: UNS8 Error_Value_Outputs_8_Bit[] = /* Mapped at index 0x6207, subindex 0x01 - 0x01 */ peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: peter@413: /**************************************************************************/ peter@413: /* Declaration of the value range types */ peter@413: /**************************************************************************/ peter@413: peter@413: #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ peter@413: UNS32 ObjDict_valueRangeTest (UNS8 typeValue, void * value) peter@413: { peter@413: switch (typeValue) { peter@413: case valueRange_EMC: peter@413: if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED; peter@413: break; peter@413: } peter@413: return 0; peter@413: } peter@413: peter@413: /**************************************************************************/ peter@413: /* The node id */ peter@413: /**************************************************************************/ peter@413: /* node_id default value.*/ peter@413: UNS8 ObjDict_bDeviceNodeId = 0x00; peter@413: peter@413: /**************************************************************************/ peter@413: /* Array of message processing information */ peter@413: peter@413: const UNS8 ObjDict_iam_a_slave = 1; peter@413: peter@413: TIMER_HANDLE ObjDict_heartBeatTimers[1] = {TIMER_NONE,}; peter@413: peter@413: /* peter@413: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ peter@413: peter@413: OBJECT DICTIONARY peter@413: peter@413: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ peter@413: */ peter@413: peter@413: /* index 0x1000 : Device Type. */ peter@413: UNS32 ObjDict_obj1000 = 0x30191; /* 197009 */ peter@413: subindex ObjDict_Index1000[] = peter@413: { peter@413: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1000 } peter@413: }; peter@413: peter@413: /* index 0x1001 : Error Register. */ peter@413: UNS8 ObjDict_obj1001 = 0x0; /* 0 */ peter@413: subindex ObjDict_Index1001[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_obj1001 } peter@413: }; peter@413: peter@413: /* index 0x1003 : Pre-defined Error Field. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1003[] = peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: ODCallback_t ObjDict_Index1003_callbacks[] = peter@413: { peter@413: NULL, peter@413: NULL, peter@413: }; peter@413: subindex ObjDict_Index1003[] = peter@413: { peter@413: { RW, valueRange_EMC, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1003 }, peter@413: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1003[0] } peter@413: }; peter@413: peter@413: /* index 0x1005 : SYNC COB ID. */ peter@413: UNS32 ObjDict_obj1005 = 0x80; /* 128 */ peter@413: ODCallback_t ObjDict_Index1005_callbacks[] = peter@413: { peter@413: NULL, peter@413: }; peter@413: subindex ObjDict_Index1005[] = peter@413: { peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1005 } peter@413: }; peter@413: peter@413: /* index 0x1006 : Communication / Cycle Period */ peter@413: UNS32 ObjDict_obj1006 = 0x0; /* 0 */ peter@413: peter@413: /* index 0x1008 : Manufacturer Device Name. */ peter@413: UNS8 ObjDict_obj1008[10] = ""; peter@413: subindex ObjDict_Index1008[] = peter@413: { peter@413: { RO, visible_string, 0, (void*)&ObjDict_obj1008 } peter@413: }; peter@413: peter@413: /* index 0x1009 : Manufacturer Hardware Version. */ peter@413: UNS8 ObjDict_obj1009[10] = ""; peter@413: subindex ObjDict_Index1009[] = peter@413: { peter@413: { RO, visible_string, 0, (void*)&ObjDict_obj1009 } peter@413: }; peter@413: peter@413: /* index 0x100A : Manufacturer Software Version. */ peter@413: UNS8 ObjDict_obj100A[10] = ""; peter@413: subindex ObjDict_Index100A[] = peter@413: { peter@413: { RO, visible_string, 0, (void*)&ObjDict_obj100A } peter@413: }; peter@413: peter@413: /* index 0x1010 : Store parameters. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1010_Save_All_Parameters = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1010_Save_Communication_Parameters = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1010_Save_Application_Parameters = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1010_Save_Manufacturer_Parameters = 0x0; /* 0 */ peter@413: subindex ObjDict_Index1010[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1010 }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_All_Parameters }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Communication_Parameters }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Application_Parameters }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Manufacturer_Parameters } peter@413: }; peter@413: peter@413: /* index 0x1011 : Restore Default Parameters. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1011_Restore_All_Default_Parameters = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1011_Restore_Communication_Default_Parameters = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1011_Restore_Application_Default_Parameters = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1011_Restore_Manufacturer_Default_Parameters = 0x0; /* 0 */ peter@413: subindex ObjDict_Index1011[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1011 }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_All_Default_Parameters }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Communication_Default_Parameters }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Application_Default_Parameters }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Manufacturer_Default_Parameters } peter@413: }; peter@413: peter@413: /* index 0x1014 : Emergency COB ID. */ peter@413: UNS32 ObjDict_obj1014 = 0x80; /* 128 */ peter@413: subindex ObjDict_Index1014[] = peter@413: { peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1014 } peter@413: }; peter@413: peter@413: /* index 0x1016 : Consumer Heartbeat Time. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1016[] = peter@413: { peter@413: 0x0 /* 0 */ peter@413: }; peter@413: subindex ObjDict_Index1016[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1016 }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[0] } peter@413: }; peter@413: peter@413: /* index 0x1017 : Producer Heartbeat Time. */ peter@413: UNS16 ObjDict_obj1017 = 0x2710; /* 10000 */ peter@413: ODCallback_t ObjDict_Index1017_callbacks[] = peter@413: { peter@413: NULL, peter@413: }; peter@413: subindex ObjDict_Index1017[] = peter@413: { peter@413: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1017 } peter@413: }; peter@413: peter@413: /* index 0x1018 : Identity. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1018_Vendor_ID = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1018_Product_Code = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1018_Revision_Number = 0x0; /* 0 */ peter@413: UNS32 ObjDict_obj1018_Serial_Number = 0x0; /* 0 */ peter@413: subindex ObjDict_Index1018[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1018 }, peter@413: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Vendor_ID }, peter@413: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Product_Code }, peter@413: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Revision_Number }, peter@413: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Serial_Number } peter@413: }; peter@413: peter@413: /* index 0x1200 : Server SDO Parameter. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x600; /* 1536 */ peter@413: UNS32 ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x580; /* 1408 */ peter@413: subindex ObjDict_Index1200[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1200 }, peter@413: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO }, peter@413: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO } peter@413: }; peter@413: peter@413: /* index 0x1400 : Receive PDO 1 Parameter. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1400_COB_ID_used_by_PDO = 0x200; /* 512 */ peter@413: UNS8 ObjDict_obj1400_Transmission_Type = 0x1; /* 1 */ peter@413: UNS16 ObjDict_obj1400_Inhibit_Time = 0x0; /* 0 */ peter@413: UNS8 ObjDict_obj1400_Compatibility_Entry = 0x0; /* 0 */ peter@413: UNS16 ObjDict_obj1400_Event_Timer = 0x0; /* 0 */ peter@413: subindex ObjDict_Index1400[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1400 }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1400_COB_ID_used_by_PDO }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Transmission_Type }, peter@413: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1400_Inhibit_Time }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Compatibility_Entry }, peter@413: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1400_Event_Timer } peter@413: }; peter@413: peter@413: /* index 0x1600 : Receive PDO 1 Mapping. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1600 = 1; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1600[] = peter@413: { peter@413: 0x62000108 /* 1644167432 */ peter@413: }; peter@413: subindex ObjDict_Index1600[] = peter@413: { peter@413: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1600 }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1600[0] } peter@413: }; peter@413: peter@413: /* index 0x1800 : Transmit PDO 1 Parameter. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1800_COB_ID_used_by_PDO = 0x180; /* 384 */ peter@413: UNS8 ObjDict_obj1800_Transmission_Type = 0xFF; /* 255 */ peter@413: UNS16 ObjDict_obj1800_Inhibit_Time = 0x0; /* 0 */ peter@413: UNS8 ObjDict_obj1800_Compatibility_Entry = 0x0; /* 0 */ peter@413: UNS16 ObjDict_obj1800_Event_Timer = 0x0; /* 0 */ peter@413: ODCallback_t ObjDict_Index1800_callbacks[] = peter@413: { peter@413: NULL, peter@413: NULL, peter@413: NULL, peter@413: NULL, peter@413: NULL, peter@413: NULL, peter@413: }; peter@413: subindex ObjDict_Index1800[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1800 }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1800_COB_ID_used_by_PDO }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Transmission_Type }, peter@413: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Inhibit_Time }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Compatibility_Entry }, peter@413: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Event_Timer } peter@413: }; peter@413: peter@413: /* index 0x1A00 : Transmit PDO 1 Mapping. */ peter@413: UNS8 ObjDict_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/ peter@413: UNS32 ObjDict_obj1A00[] = peter@413: { peter@413: 0x60000108 /* 1610613000 */ peter@413: }; peter@413: subindex ObjDict_Index1A00[] = peter@413: { peter@413: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A00 }, peter@413: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[0] } peter@413: }; peter@413: peter@413: /* index 0x6000 : Mapped variable Read Inputs 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6000 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6000[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6000 }, peter@413: { RO, uint8, sizeof (UNS8), (void*)&Read_Inputs_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6002 : Mapped variable Polarity Input 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6002 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6002[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6002 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Polarity_Input_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6003 : Mapped variable Filter Constant Input 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6003 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6003[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6003 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Filter_Constant_Input_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6005 : Mapped variable Global Interrupt Enable Digital */ peter@413: subindex ObjDict_Index6005[] = peter@413: { peter@413: { RW, boolean, sizeof (UNS8), (void*)&Global_Interrupt_Enable_Digital } peter@413: }; peter@413: peter@413: /* index 0x6006 : Mapped variable Interrupt Mask Any Change 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6006 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6006[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6006 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Interrupt_Mask_Any_Change_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6007 : Mapped variable Interrupt Mask Low to High 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6007 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6007[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6007 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Interrupt_Mask_Low_to_High_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6008 : Mapped variable Interrupt Mask High to Low 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6008 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6008[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6008 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Interrupt_Mask_High_to_Low_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6200 : Mapped variable Write Outputs 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6200 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6200[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6200 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Write_Outputs_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6202 : Mapped variable Change Polarity Outputs 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6202 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6202[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6202 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Change_Polarity_Outputs_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6206 : Mapped variable Error Mode Outputs 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6206 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6206[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6206 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Error_Mode_Outputs_8_Bit[0] } peter@413: }; peter@413: peter@413: /* index 0x6207 : Mapped variable Error Value Outputs 8 Bit */ peter@413: UNS8 ObjDict_highestSubIndex_obj6207 = 1; /* number of subindex - 1*/ peter@413: subindex ObjDict_Index6207[] = peter@413: { peter@413: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6207 }, peter@413: { RW, uint8, sizeof (UNS8), (void*)&Error_Value_Outputs_8_Bit[0] } peter@413: }; peter@413: peter@413: const indextable ObjDict_objdict[] = peter@413: { peter@413: { (subindex*)ObjDict_Index1000,sizeof(ObjDict_Index1000)/sizeof(ObjDict_Index1000[0]), 0x1000}, peter@413: { (subindex*)ObjDict_Index1001,sizeof(ObjDict_Index1001)/sizeof(ObjDict_Index1001[0]), 0x1001}, peter@413: { (subindex*)ObjDict_Index1003,sizeof(ObjDict_Index1003)/sizeof(ObjDict_Index1003[0]), 0x1003}, peter@413: { (subindex*)ObjDict_Index1005,sizeof(ObjDict_Index1005)/sizeof(ObjDict_Index1005[0]), 0x1005}, peter@413: { (subindex*)ObjDict_Index1008,sizeof(ObjDict_Index1008)/sizeof(ObjDict_Index1008[0]), 0x1008}, peter@413: { (subindex*)ObjDict_Index1009,sizeof(ObjDict_Index1009)/sizeof(ObjDict_Index1009[0]), 0x1009}, peter@413: { (subindex*)ObjDict_Index100A,sizeof(ObjDict_Index100A)/sizeof(ObjDict_Index100A[0]), 0x100A}, peter@413: { (subindex*)ObjDict_Index1010,sizeof(ObjDict_Index1010)/sizeof(ObjDict_Index1010[0]), 0x1010}, peter@413: { (subindex*)ObjDict_Index1011,sizeof(ObjDict_Index1011)/sizeof(ObjDict_Index1011[0]), 0x1011}, peter@413: { (subindex*)ObjDict_Index1014,sizeof(ObjDict_Index1014)/sizeof(ObjDict_Index1014[0]), 0x1014}, peter@413: { (subindex*)ObjDict_Index1016,sizeof(ObjDict_Index1016)/sizeof(ObjDict_Index1016[0]), 0x1016}, peter@413: { (subindex*)ObjDict_Index1017,sizeof(ObjDict_Index1017)/sizeof(ObjDict_Index1017[0]), 0x1017}, peter@413: { (subindex*)ObjDict_Index1018,sizeof(ObjDict_Index1018)/sizeof(ObjDict_Index1018[0]), 0x1018}, peter@413: { (subindex*)ObjDict_Index1200,sizeof(ObjDict_Index1200)/sizeof(ObjDict_Index1200[0]), 0x1200}, peter@413: { (subindex*)ObjDict_Index1400,sizeof(ObjDict_Index1400)/sizeof(ObjDict_Index1400[0]), 0x1400}, peter@413: { (subindex*)ObjDict_Index1600,sizeof(ObjDict_Index1600)/sizeof(ObjDict_Index1600[0]), 0x1600}, peter@413: { (subindex*)ObjDict_Index1800,sizeof(ObjDict_Index1800)/sizeof(ObjDict_Index1800[0]), 0x1800}, peter@413: { (subindex*)ObjDict_Index1A00,sizeof(ObjDict_Index1A00)/sizeof(ObjDict_Index1A00[0]), 0x1A00}, peter@413: { (subindex*)ObjDict_Index6000,sizeof(ObjDict_Index6000)/sizeof(ObjDict_Index6000[0]), 0x6000}, peter@413: { (subindex*)ObjDict_Index6002,sizeof(ObjDict_Index6002)/sizeof(ObjDict_Index6002[0]), 0x6002}, peter@413: { (subindex*)ObjDict_Index6003,sizeof(ObjDict_Index6003)/sizeof(ObjDict_Index6003[0]), 0x6003}, peter@413: { (subindex*)ObjDict_Index6005,sizeof(ObjDict_Index6005)/sizeof(ObjDict_Index6005[0]), 0x6005}, peter@413: { (subindex*)ObjDict_Index6006,sizeof(ObjDict_Index6006)/sizeof(ObjDict_Index6006[0]), 0x6006}, peter@413: { (subindex*)ObjDict_Index6007,sizeof(ObjDict_Index6007)/sizeof(ObjDict_Index6007[0]), 0x6007}, peter@413: { (subindex*)ObjDict_Index6008,sizeof(ObjDict_Index6008)/sizeof(ObjDict_Index6008[0]), 0x6008}, peter@413: { (subindex*)ObjDict_Index6200,sizeof(ObjDict_Index6200)/sizeof(ObjDict_Index6200[0]), 0x6200}, peter@413: { (subindex*)ObjDict_Index6202,sizeof(ObjDict_Index6202)/sizeof(ObjDict_Index6202[0]), 0x6202}, peter@413: { (subindex*)ObjDict_Index6206,sizeof(ObjDict_Index6206)/sizeof(ObjDict_Index6206[0]), 0x6206}, peter@413: { (subindex*)ObjDict_Index6207,sizeof(ObjDict_Index6207)/sizeof(ObjDict_Index6207[0]), 0x6207}, peter@413: }; peter@413: peter@413: const indextable * ObjDict_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) peter@413: { peter@413: int i; peter@413: *callbacks = NULL; peter@413: switch(wIndex){ peter@413: case 0x1000: i = 0;break; peter@413: case 0x1001: i = 1;break; peter@413: case 0x1003: i = 2;*callbacks = ObjDict_Index1003_callbacks; break; peter@413: case 0x1005: i = 3;*callbacks = ObjDict_Index1005_callbacks; break; peter@413: case 0x1008: i = 4;break; peter@413: case 0x1009: i = 5;break; peter@413: case 0x100A: i = 6;break; peter@413: case 0x1010: i = 7;break; peter@413: case 0x1011: i = 8;break; peter@413: case 0x1014: i = 9;break; peter@413: case 0x1016: i = 10;break; peter@413: case 0x1017: i = 11;*callbacks = ObjDict_Index1017_callbacks; break; peter@413: case 0x1018: i = 12;break; peter@413: case 0x1200: i = 13;break; peter@413: case 0x1400: i = 14;break; peter@413: case 0x1600: i = 15;break; peter@413: case 0x1800: i = 16;*callbacks = ObjDict_Index1800_callbacks; break; peter@413: case 0x1A00: i = 17;break; peter@413: case 0x6000: i = 18;break; peter@413: case 0x6002: i = 19;break; peter@413: case 0x6003: i = 20;break; peter@413: case 0x6005: i = 21;break; peter@413: case 0x6006: i = 22;break; peter@413: case 0x6007: i = 23;break; peter@413: case 0x6008: i = 24;break; peter@413: case 0x6200: i = 25;break; peter@413: case 0x6202: i = 26;break; peter@413: case 0x6206: i = 27;break; peter@413: case 0x6207: i = 28;break; peter@413: default: peter@413: *errorCode = OD_NO_SUCH_OBJECT; peter@413: return NULL; peter@413: } peter@413: *errorCode = OD_SUCCESSFUL; peter@413: return &ObjDict_objdict[i]; peter@413: } peter@413: peter@413: /* peter@413: * To count at which received SYNC a PDO must be sent. peter@413: * Even if no pdoTransmit are defined, at least one entry is computed peter@413: * for compilations issues. peter@413: */ peter@413: s_PDO_status ObjDict_PDO_status[1] = {s_PDO_status_Initializer}; peter@413: peter@413: quick_index ObjDict_firstIndex = { peter@413: 13, /* SDO_SVR */ peter@413: 0, /* SDO_CLT */ peter@413: 14, /* PDO_RCV */ peter@413: 15, /* PDO_RCV_MAP */ peter@413: 16, /* PDO_TRS */ peter@413: 17 /* PDO_TRS_MAP */ peter@413: }; peter@413: peter@413: quick_index ObjDict_lastIndex = { peter@413: 13, /* SDO_SVR */ peter@413: 0, /* SDO_CLT */ peter@413: 14, /* PDO_RCV */ peter@413: 15, /* PDO_RCV_MAP */ peter@413: 16, /* PDO_TRS */ peter@413: 17 /* PDO_TRS_MAP */ peter@413: }; peter@413: peter@413: UNS16 ObjDict_ObjdictSize = sizeof(ObjDict_objdict)/sizeof(ObjDict_objdict[0]); peter@413: peter@413: CO_Data ObjDict_Data = CANOPEN_NODE_DATA_INITIALIZER(ObjDict); peter@413: