etisserant@246: etisserant@246: /* File generated by gen_cfile.py. Should not be modified. */ etisserant@246: etisserant@246: #include "ObjDict.h" etisserant@246: etisserant@246: /**************************************************************************/ etisserant@246: /* Declaration of the mapped variables */ etisserant@246: /**************************************************************************/ etisserant@246: UNS8 Read_Inputs_8_Bit[] = /* Mapped at index 0x6000, subindex 0x01 - 0x01 */ etisserant@246: { etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: UNS8 Polarity_Input_8_Bit[] = /* Mapped at index 0x6002, subindex 0x01 - 0x01 */ etisserant@246: { etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: UNS8 Write_Outputs_8_Bit[] = /* Mapped at index 0x6200, subindex 0x01 - 0x01 */ etisserant@246: { etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: UNS8 Change_Polarity_Outputs_8_Bit[] = /* Mapped at index 0x6202, subindex 0x01 - 0x01 */ etisserant@246: { etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: UNS8 Error_Mode_Outputs_8_Bit[] = /* Mapped at index 0x6206, subindex 0x01 - 0x01 */ etisserant@246: { etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: UNS8 Error_Value_Outputs_8_Bit[] = /* Mapped at index 0x6207, subindex 0x01 - 0x01 */ etisserant@246: { etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: INTEGER16 Read_Analogue_Input_16_Bit[] = /* Mapped at index 0x6401, subindex 0x01 - 0x08 */ etisserant@246: { etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: INTEGER16 Write_Analogue_Output_16_Bit[] = /* Mapped at index 0x6411, subindex 0x01 - 0x04 */ etisserant@246: { etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: UNS8 Analogue_Input_Global_Interrupt_Enable = 0x0; /* Mapped at index 0x6423, subindex 0x00 */ etisserant@246: UNS32 Analogue_Input_Interrupt_Delta_Unsigned[] = /* Mapped at index 0x6426, subindex 0x01 - 0x08 */ etisserant@246: { etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: UNS8 Analogue_Output_Error_Mode[] = /* Mapped at index 0x6443, subindex 0x01 - 0x04 */ etisserant@246: { etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: INTEGER32 Analogue_Output_Error_Value_Integer[] = /* Mapped at index 0x6444, subindex 0x01 - 0x04 */ etisserant@246: { etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: etisserant@246: /**************************************************************************/ etisserant@246: /* Declaration of the value range types */ etisserant@246: /**************************************************************************/ etisserant@246: etisserant@295: #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ etisserant@246: UNS32 ObjDict_valueRangeTest (UNS8 typeValue, void * value) etisserant@246: { etisserant@246: switch (typeValue) { etisserant@295: case valueRange_EMC: etisserant@302: if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED; etisserant@295: break; etisserant@246: } etisserant@246: return 0; etisserant@246: } etisserant@246: etisserant@246: /**************************************************************************/ etisserant@246: /* The node id */ etisserant@246: /**************************************************************************/ etisserant@246: /* node_id default value.*/ etisserant@302: UNS8 ObjDict_bDeviceNodeId = 0x00; etisserant@246: etisserant@246: /**************************************************************************/ etisserant@246: /* Array of message processing information */ etisserant@246: etisserant@246: const UNS8 ObjDict_iam_a_slave = 1; etisserant@246: etisserant@246: TIMER_HANDLE ObjDict_heartBeatTimers[3] = {TIMER_NONE,}; etisserant@246: etisserant@246: /* etisserant@246: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ etisserant@246: etisserant@246: OBJECT DICTIONARY etisserant@246: etisserant@246: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ etisserant@246: */ etisserant@246: etisserant@246: /* index 0x1000 : Device Type. */ etisserant@246: UNS32 ObjDict_obj1000 = 0xF0191; /* 983441 */ etisserant@246: subindex ObjDict_Index1000[] = etisserant@246: { etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1000 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1001 : Error Register. */ etisserant@246: UNS8 ObjDict_obj1001 = 0x0; /* 0 */ etisserant@246: subindex ObjDict_Index1001[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_obj1001 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1002 : Manufacturer Status Register. */ etisserant@246: UNS32 ObjDict_obj1002 = 0x0; /* 0 */ etisserant@246: subindex ObjDict_Index1002[] = etisserant@246: { etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1002 } etisserant@246: }; etisserant@246: etisserant@295: /* index 0x1003 : Pre-defined Error Field */ etisserant@295: UNS8 ObjDict_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/ etisserant@295: UNS32 ObjDict_obj1003[] = etisserant@295: { etisserant@295: 0x0 /* 0 */ etisserant@295: }; etisserant@295: ODCallback_t ObjDict_Index1003_callbacks[] = etisserant@295: { etisserant@295: NULL, etisserant@295: NULL, etisserant@295: }; etisserant@295: subindex ObjDict_Index1003[] = etisserant@295: { etisserant@295: { RW, valueRange_EMC, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1003 }, etisserant@295: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1003[0] } etisserant@295: }; etisserant@295: etisserant@246: /* index 0x1005 : SYNC COB ID. */ etisserant@246: UNS32 ObjDict_obj1005 = 0x80; /* 128 */ etisserant@246: ODCallback_t ObjDict_Index1005_callbacks[] = etisserant@246: { etisserant@246: NULL, etisserant@246: }; etisserant@246: subindex ObjDict_Index1005[] = etisserant@246: { etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1005 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1006 : Communication / Cycle Period */ etisserant@246: UNS32 ObjDict_obj1006 = 0x0; /* 0 */ etisserant@246: etisserant@246: /* index 0x1008 : Manufacturer Device Name. */ etisserant@246: UNS8 ObjDict_obj1008[10] = ""; etisserant@246: subindex ObjDict_Index1008[] = etisserant@246: { etisserant@246: { RO, visible_string, 0, (void*)&ObjDict_obj1008 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1009 : Manufacturer Hardware Version. */ etisserant@246: UNS8 ObjDict_obj1009[10] = ""; etisserant@246: subindex ObjDict_Index1009[] = etisserant@246: { etisserant@246: { RO, visible_string, 0, (void*)&ObjDict_obj1009 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x100A : Manufacturer Software Version. */ etisserant@246: UNS8 ObjDict_obj100A[10] = ""; etisserant@246: subindex ObjDict_Index100A[] = etisserant@246: { etisserant@246: { RO, visible_string, 0, (void*)&ObjDict_obj100A } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x100C : Guard Time. */ etisserant@246: UNS16 ObjDict_obj100C = 0x0; /* 0 */ etisserant@246: subindex ObjDict_Index100C[] = etisserant@246: { etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj100C } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x100D : Life Time Factor. */ etisserant@246: UNS8 ObjDict_obj100D = 0x0; /* 0 */ etisserant@246: subindex ObjDict_Index100D[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj100D } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1010 : Store parameters. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1010 = 1; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1010_Save_All_Parameters = 0x0; /* 0 */ etisserant@246: subindex ObjDict_Index1010[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1010 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_All_Parameters } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1011 : Restore Default Parameters. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1011 = 1; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1011_Restore_All_Default_Parameters = 0x0; /* 0 */ etisserant@246: subindex ObjDict_Index1011[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1011 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_All_Default_Parameters } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1016 : Consumer Heartbeat Time. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1016 = 3; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1016[] = etisserant@246: { etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0, /* 0 */ etisserant@246: 0x0 /* 0 */ etisserant@246: }; etisserant@246: subindex ObjDict_Index1016[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1016 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[2] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1017 : Producer Heartbeat Time. */ etisserant@246: UNS16 ObjDict_obj1017 = 0x0; /* 0 */ etisserant@246: ODCallback_t ObjDict_Index1017_callbacks[] = etisserant@246: { etisserant@246: NULL, etisserant@246: }; etisserant@246: subindex ObjDict_Index1017[] = etisserant@246: { etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1017 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1018 : Identity. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1018 = 3; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1018_Vendor_ID = 0x175; /* 373 */ etisserant@246: UNS32 ObjDict_obj1018_Product_Code = 0x100000; /* 1048576 */ etisserant@246: UNS32 ObjDict_obj1018_Revision_Number = 0x10001; /* 65537 */ etisserant@246: subindex ObjDict_Index1018[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1018 }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Vendor_ID }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Product_Code }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Revision_Number } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1020 : Verify Configuration. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1020 = 2; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1020_Configuration_Date = 0x0; /* 0 */ etisserant@246: UNS32 ObjDict_obj1020_Configuration_Time = 0x0; /* 0 */ etisserant@246: subindex ObjDict_Index1020[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1020 }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1020_Configuration_Date }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1020_Configuration_Time } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1200 : Server SDO Parameter. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/ etisserant@302: UNS32 ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x600; /* 1536 */ etisserant@302: UNS32 ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x580; /* 1408 */ etisserant@246: subindex ObjDict_Index1200[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1200 }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1400 : Receive PDO 1 Parameter. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1400 = 2; /* number of subindex - 1*/ etisserant@302: UNS32 ObjDict_obj1400_COB_ID_used_by_PDO = 0x200; /* 512 */ etisserant@246: UNS8 ObjDict_obj1400_Transmission_Type = 0x1; /* 1 */ etisserant@246: subindex ObjDict_Index1400[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1400 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1400_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1400_Transmission_Type } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1401 : Receive PDO 2 Parameter. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1401 = 2; /* number of subindex - 1*/ etisserant@302: UNS32 ObjDict_obj1401_COB_ID_used_by_PDO = 0x300; /* 768 */ etisserant@246: UNS8 ObjDict_obj1401_Transmission_Type = 0x1; /* 1 */ etisserant@246: subindex ObjDict_Index1401[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1401 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1401_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1401_Transmission_Type } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1600 : Receive PDO 1 Mapping. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1600 = 1; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1600[] = etisserant@246: { etisserant@246: 0x62000108 /* 1644167432 */ etisserant@246: }; etisserant@246: subindex ObjDict_Index1600[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1600 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1600[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1601 : Receive PDO 2 Mapping. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1601 = 4; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1601[] = etisserant@246: { etisserant@246: 0x64110110, /* 1678835984 */ etisserant@246: 0x64110210, /* 1678836240 */ etisserant@246: 0x64110310, /* 1678836496 */ etisserant@246: 0x64110410 /* 1678836752 */ etisserant@246: }; etisserant@246: subindex ObjDict_Index1601[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1601 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[2] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1601[3] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1800 : Transmit PDO 1 Parameter. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/ etisserant@302: UNS32 ObjDict_obj1800_COB_ID_used_by_PDO = 0x180; /* 384 */ etisserant@246: UNS8 ObjDict_obj1800_Transmission_Type = 0x1; /* 1 */ etisserant@246: UNS16 ObjDict_obj1800_Inhibit_Time = 0x0; /* 0 */ etisserant@246: UNS8 ObjDict_obj1800_Compatibility_Entry = 0x0; /* 0 */ etisserant@246: UNS16 ObjDict_obj1800_Event_Timer = 0x0; /* 0 */ etisserant@295: ODCallback_t ObjDict_Index1800_callbacks[] = etisserant@295: { etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: }; etisserant@246: subindex ObjDict_Index1800[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1800 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1800_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Transmission_Type }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Inhibit_Time }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1800_Compatibility_Entry }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1800_Event_Timer } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1801 : Transmit PDO 2 Parameter. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/ etisserant@302: UNS32 ObjDict_obj1801_COB_ID_used_by_PDO = 0x280; /* 640 */ etisserant@246: UNS8 ObjDict_obj1801_Transmission_Type = 0x1; /* 1 */ etisserant@246: UNS16 ObjDict_obj1801_Inhibit_Time = 0x0; /* 0 */ etisserant@246: UNS8 ObjDict_obj1801_Compatibility_Entry = 0x0; /* 0 */ etisserant@246: UNS16 ObjDict_obj1801_Event_Timer = 0x0; /* 0 */ etisserant@295: ODCallback_t ObjDict_Index1801_callbacks[] = etisserant@295: { etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: }; etisserant@246: subindex ObjDict_Index1801[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1801 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1801_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1801_Transmission_Type }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1801_Inhibit_Time }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1801_Compatibility_Entry }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1801_Event_Timer } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1802 : Transmit PDO 3 Parameter. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1802 = 5; /* number of subindex - 1*/ etisserant@302: UNS32 ObjDict_obj1802_COB_ID_used_by_PDO = 0x380; /* 896 */ etisserant@246: UNS8 ObjDict_obj1802_Transmission_Type = 0x1; /* 1 */ etisserant@246: UNS16 ObjDict_obj1802_Inhibit_Time = 0x0; /* 0 */ etisserant@246: UNS8 ObjDict_obj1802_Compatibility_Entry = 0x0; /* 0 */ etisserant@246: UNS16 ObjDict_obj1802_Event_Timer = 0x0; /* 0 */ etisserant@295: ODCallback_t ObjDict_Index1802_callbacks[] = etisserant@295: { etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: NULL, etisserant@295: }; etisserant@246: subindex ObjDict_Index1802[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1802 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1802_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1802_Transmission_Type }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1802_Inhibit_Time }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_obj1802_Compatibility_Entry }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1802_Event_Timer } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1A00 : Transmit PDO 1 Mapping. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1A00[] = etisserant@246: { etisserant@246: 0x60000108 /* 1610613000 */ etisserant@246: }; etisserant@246: subindex ObjDict_Index1A00[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A00 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1A01 : Transmit PDO 2 Mapping. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1A01 = 4; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1A01[] = etisserant@246: { etisserant@246: 0x64010110, /* 1677787408 */ etisserant@246: 0x64010210, /* 1677787664 */ etisserant@246: 0x64010310, /* 1677787920 */ etisserant@246: 0x64010410 /* 1677788176 */ etisserant@246: }; etisserant@246: subindex ObjDict_Index1A01[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A01 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[2] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A01[3] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1A02 : Transmit PDO 3 Mapping. */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj1A02 = 4; /* number of subindex - 1*/ etisserant@246: UNS32 ObjDict_obj1A02[] = etisserant@246: { etisserant@246: 0x64010510, /* 1677788432 */ etisserant@246: 0x64010610, /* 1677788688 */ etisserant@246: 0x64010710, /* 1677788944 */ etisserant@246: 0x64010810 /* 1677789200 */ etisserant@246: }; etisserant@246: subindex ObjDict_Index1A02[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A02 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[2] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A02[3] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6000 : Mapped variable Read Inputs 8 Bit */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6000 = 1; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6000[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6000 }, etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&Read_Inputs_8_Bit[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6002 : Mapped variable Polarity Input 8 Bit */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6002 = 1; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6002[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6002 }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Polarity_Input_8_Bit[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6200 : Mapped variable Write Outputs 8 Bit */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6200 = 1; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6200[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6200 }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Write_Outputs_8_Bit[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6202 : Mapped variable Change Polarity Outputs 8 Bit */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6202 = 1; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6202[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6202 }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Change_Polarity_Outputs_8_Bit[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6206 : Mapped variable Error Mode Outputs 8 Bit */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6206 = 1; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6206[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6206 }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Error_Mode_Outputs_8_Bit[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6207 : Mapped variable Error Value Outputs 8 Bit */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6207 = 1; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6207[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6207 }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Error_Value_Outputs_8_Bit[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6401 : Mapped variable Read Analogue Input 16 Bit */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6401 = 8; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6401[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6401 }, etisserant@246: { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[0] }, etisserant@246: { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[1] }, etisserant@246: { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[2] }, etisserant@246: { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[3] }, etisserant@246: { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[4] }, etisserant@246: { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[5] }, etisserant@246: { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[6] }, etisserant@246: { RO, int16, sizeof (INTEGER16), (void*)&Read_Analogue_Input_16_Bit[7] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6411 : Mapped variable Write Analogue Output 16 Bit */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6411 = 4; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6411[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6411 }, etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[0] }, etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[1] }, etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[2] }, etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&Write_Analogue_Output_16_Bit[3] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6423 : Mapped variable Analogue Input Global Interrupt Enable */ etisserant@246: subindex ObjDict_Index6423[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&Analogue_Input_Global_Interrupt_Enable } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6426 : Mapped variable Analogue Input Interrupt Delta Unsigned */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6426 = 8; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6426[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6426 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[2] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[3] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[4] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[5] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[6] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&Analogue_Input_Interrupt_Delta_Unsigned[7] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6443 : Mapped variable Analogue Output Error Mode */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6443 = 4; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6443[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6443 }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[0] }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[1] }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[2] }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&Analogue_Output_Error_Mode[3] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x6444 : Mapped variable Analogue Output Error Value Integer */ etisserant@246: UNS8 ObjDict_highestSubIndex_obj6444 = 4; /* number of subindex - 1*/ etisserant@246: subindex ObjDict_Index6444[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj6444 }, etisserant@246: { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[0] }, etisserant@246: { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[1] }, etisserant@246: { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[2] }, etisserant@246: { RW, int32, sizeof (INTEGER32), (void*)&Analogue_Output_Error_Value_Integer[3] } etisserant@246: }; etisserant@246: etisserant@246: const indextable ObjDict_objdict[] = etisserant@246: { etisserant@246: { (subindex*)ObjDict_Index1000,sizeof(ObjDict_Index1000)/sizeof(ObjDict_Index1000[0]), 0x1000}, etisserant@246: { (subindex*)ObjDict_Index1001,sizeof(ObjDict_Index1001)/sizeof(ObjDict_Index1001[0]), 0x1001}, etisserant@246: { (subindex*)ObjDict_Index1002,sizeof(ObjDict_Index1002)/sizeof(ObjDict_Index1002[0]), 0x1002}, etisserant@246: { (subindex*)ObjDict_Index1005,sizeof(ObjDict_Index1005)/sizeof(ObjDict_Index1005[0]), 0x1005}, etisserant@246: { (subindex*)ObjDict_Index1008,sizeof(ObjDict_Index1008)/sizeof(ObjDict_Index1008[0]), 0x1008}, etisserant@246: { (subindex*)ObjDict_Index1009,sizeof(ObjDict_Index1009)/sizeof(ObjDict_Index1009[0]), 0x1009}, etisserant@246: { (subindex*)ObjDict_Index100A,sizeof(ObjDict_Index100A)/sizeof(ObjDict_Index100A[0]), 0x100A}, etisserant@246: { (subindex*)ObjDict_Index100C,sizeof(ObjDict_Index100C)/sizeof(ObjDict_Index100C[0]), 0x100C}, etisserant@246: { (subindex*)ObjDict_Index100D,sizeof(ObjDict_Index100D)/sizeof(ObjDict_Index100D[0]), 0x100D}, etisserant@246: { (subindex*)ObjDict_Index1010,sizeof(ObjDict_Index1010)/sizeof(ObjDict_Index1010[0]), 0x1010}, etisserant@246: { (subindex*)ObjDict_Index1011,sizeof(ObjDict_Index1011)/sizeof(ObjDict_Index1011[0]), 0x1011}, etisserant@246: { (subindex*)ObjDict_Index1016,sizeof(ObjDict_Index1016)/sizeof(ObjDict_Index1016[0]), 0x1016}, etisserant@246: { (subindex*)ObjDict_Index1017,sizeof(ObjDict_Index1017)/sizeof(ObjDict_Index1017[0]), 0x1017}, etisserant@246: { (subindex*)ObjDict_Index1018,sizeof(ObjDict_Index1018)/sizeof(ObjDict_Index1018[0]), 0x1018}, etisserant@246: { (subindex*)ObjDict_Index1020,sizeof(ObjDict_Index1020)/sizeof(ObjDict_Index1020[0]), 0x1020}, etisserant@246: { (subindex*)ObjDict_Index1200,sizeof(ObjDict_Index1200)/sizeof(ObjDict_Index1200[0]), 0x1200}, etisserant@246: { (subindex*)ObjDict_Index1400,sizeof(ObjDict_Index1400)/sizeof(ObjDict_Index1400[0]), 0x1400}, etisserant@246: { (subindex*)ObjDict_Index1401,sizeof(ObjDict_Index1401)/sizeof(ObjDict_Index1401[0]), 0x1401}, etisserant@246: { (subindex*)ObjDict_Index1600,sizeof(ObjDict_Index1600)/sizeof(ObjDict_Index1600[0]), 0x1600}, etisserant@246: { (subindex*)ObjDict_Index1601,sizeof(ObjDict_Index1601)/sizeof(ObjDict_Index1601[0]), 0x1601}, etisserant@246: { (subindex*)ObjDict_Index1800,sizeof(ObjDict_Index1800)/sizeof(ObjDict_Index1800[0]), 0x1800}, etisserant@246: { (subindex*)ObjDict_Index1801,sizeof(ObjDict_Index1801)/sizeof(ObjDict_Index1801[0]), 0x1801}, etisserant@246: { (subindex*)ObjDict_Index1802,sizeof(ObjDict_Index1802)/sizeof(ObjDict_Index1802[0]), 0x1802}, etisserant@246: { (subindex*)ObjDict_Index1A00,sizeof(ObjDict_Index1A00)/sizeof(ObjDict_Index1A00[0]), 0x1A00}, etisserant@246: { (subindex*)ObjDict_Index1A01,sizeof(ObjDict_Index1A01)/sizeof(ObjDict_Index1A01[0]), 0x1A01}, etisserant@246: { (subindex*)ObjDict_Index1A02,sizeof(ObjDict_Index1A02)/sizeof(ObjDict_Index1A02[0]), 0x1A02}, etisserant@246: { (subindex*)ObjDict_Index6000,sizeof(ObjDict_Index6000)/sizeof(ObjDict_Index6000[0]), 0x6000}, etisserant@246: { (subindex*)ObjDict_Index6002,sizeof(ObjDict_Index6002)/sizeof(ObjDict_Index6002[0]), 0x6002}, etisserant@246: { (subindex*)ObjDict_Index6200,sizeof(ObjDict_Index6200)/sizeof(ObjDict_Index6200[0]), 0x6200}, etisserant@246: { (subindex*)ObjDict_Index6202,sizeof(ObjDict_Index6202)/sizeof(ObjDict_Index6202[0]), 0x6202}, etisserant@246: { (subindex*)ObjDict_Index6206,sizeof(ObjDict_Index6206)/sizeof(ObjDict_Index6206[0]), 0x6206}, etisserant@246: { (subindex*)ObjDict_Index6207,sizeof(ObjDict_Index6207)/sizeof(ObjDict_Index6207[0]), 0x6207}, etisserant@246: { (subindex*)ObjDict_Index6401,sizeof(ObjDict_Index6401)/sizeof(ObjDict_Index6401[0]), 0x6401}, etisserant@246: { (subindex*)ObjDict_Index6411,sizeof(ObjDict_Index6411)/sizeof(ObjDict_Index6411[0]), 0x6411}, etisserant@246: { (subindex*)ObjDict_Index6423,sizeof(ObjDict_Index6423)/sizeof(ObjDict_Index6423[0]), 0x6423}, etisserant@246: { (subindex*)ObjDict_Index6426,sizeof(ObjDict_Index6426)/sizeof(ObjDict_Index6426[0]), 0x6426}, etisserant@246: { (subindex*)ObjDict_Index6443,sizeof(ObjDict_Index6443)/sizeof(ObjDict_Index6443[0]), 0x6443}, etisserant@246: { (subindex*)ObjDict_Index6444,sizeof(ObjDict_Index6444)/sizeof(ObjDict_Index6444[0]), 0x6444}, etisserant@246: }; etisserant@246: etisserant@246: const indextable * ObjDict_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) etisserant@246: { etisserant@246: int i; etisserant@246: *callbacks = NULL; etisserant@246: switch(wIndex){ etisserant@246: case 0x1000: i = 0;break; etisserant@246: case 0x1001: i = 1;break; etisserant@246: case 0x1002: i = 2;break; etisserant@246: case 0x1005: i = 3;*callbacks = ObjDict_Index1005_callbacks; break; etisserant@246: case 0x1008: i = 4;break; etisserant@246: case 0x1009: i = 5;break; etisserant@246: case 0x100A: i = 6;break; etisserant@246: case 0x100C: i = 7;break; etisserant@246: case 0x100D: i = 8;break; etisserant@246: case 0x1010: i = 9;break; etisserant@246: case 0x1011: i = 10;break; etisserant@246: case 0x1016: i = 11;break; etisserant@246: case 0x1017: i = 12;*callbacks = ObjDict_Index1017_callbacks; break; etisserant@246: case 0x1018: i = 13;break; etisserant@246: case 0x1020: i = 14;break; etisserant@246: case 0x1200: i = 15;break; etisserant@246: case 0x1400: i = 16;break; etisserant@246: case 0x1401: i = 17;break; etisserant@302: case 0x1600: i = 18;break; etisserant@302: case 0x1601: i = 19;break; etisserant@302: case 0x1800: i = 20;*callbacks = ObjDict_Index1800_callbacks; break; etisserant@302: case 0x1801: i = 21;*callbacks = ObjDict_Index1801_callbacks; break; etisserant@302: case 0x1802: i = 22;*callbacks = ObjDict_Index1802_callbacks; break; etisserant@302: case 0x1A00: i = 23;break; etisserant@302: case 0x1A01: i = 24;break; etisserant@302: case 0x1A02: i = 25;break; etisserant@302: case 0x6000: i = 26;break; etisserant@302: case 0x6002: i = 27;break; etisserant@302: case 0x6200: i = 28;break; etisserant@302: case 0x6202: i = 29;break; etisserant@302: case 0x6206: i = 30;break; etisserant@302: case 0x6207: i = 31;break; etisserant@302: case 0x6401: i = 32;break; etisserant@302: case 0x6411: i = 33;break; etisserant@302: case 0x6423: i = 34;break; etisserant@302: case 0x6426: i = 35;break; etisserant@302: case 0x6443: i = 36;break; etisserant@302: case 0x6444: i = 37;break; etisserant@246: default: etisserant@246: *errorCode = OD_NO_SUCH_OBJECT; etisserant@246: return NULL; etisserant@246: } etisserant@246: *errorCode = OD_SUCCESSFUL; etisserant@246: return &ObjDict_objdict[i]; etisserant@246: } etisserant@246: etisserant@246: /* etisserant@246: * To count at which received SYNC a PDO must be sent. etisserant@246: * Even if no pdoTransmit are defined, at least one entry is computed etisserant@246: * for compilations issues. etisserant@246: */ etisserant@302: s_PDO_status ObjDict_PDO_status[3] = {s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer}; etisserant@246: etisserant@246: quick_index ObjDict_firstIndex = { etisserant@246: 15, /* SDO_SVR */ etisserant@246: 0, /* SDO_CLT */ etisserant@246: 16, /* PDO_RCV */ etisserant@302: 18, /* PDO_RCV_MAP */ etisserant@302: 20, /* PDO_TRS */ etisserant@302: 23 /* PDO_TRS_MAP */ etisserant@246: }; etisserant@246: etisserant@246: quick_index ObjDict_lastIndex = { etisserant@246: 15, /* SDO_SVR */ etisserant@246: 0, /* SDO_CLT */ etisserant@302: 17, /* PDO_RCV */ etisserant@302: 19, /* PDO_RCV_MAP */ etisserant@302: 22, /* PDO_TRS */ etisserant@302: 25 /* PDO_TRS_MAP */ etisserant@246: }; etisserant@246: etisserant@246: UNS16 ObjDict_ObjdictSize = sizeof(ObjDict_objdict)/sizeof(ObjDict_objdict[0]); etisserant@246: etisserant@246: CO_Data ObjDict_Data = CANOPEN_NODE_DATA_INITIALIZER(ObjDict); etisserant@246: