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