📄 objdict.c
字号:
/* File generated by gen_cfile.py. Should not be modified. */#include "ObjDict.h"/**************************************************************************//* Declaration of the mapped variables *//**************************************************************************/UNS8 Read_Inputs_8_Bit[] = /* Mapped at index 0x6000, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };UNS8 Polarity_Input_8_Bit[] = /* Mapped at index 0x6002, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };UNS8 Filter_Constant_Input_8_Bit[] = /* Mapped at index 0x6003, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };UNS8 Global_Interrupt_Enable_Digital = 0x1; /* Mapped at index 0x6005, subindex 0x00 */UNS8 Interrupt_Mask_Any_Change_8_Bit[] = /* Mapped at index 0x6006, subindex 0x01 - 0x01 */ { 0xFF /* 255 */ };UNS8 Interrupt_Mask_Low_to_High_8_Bit[] = /* Mapped at index 0x6007, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };UNS8 Interrupt_Mask_High_to_Low_8_Bit[] = /* Mapped at index 0x6008, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };UNS8 Write_Outputs_8_Bit[] = /* Mapped at index 0x6200, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };UNS8 Change_Polarity_Outputs_8_Bit[] = /* Mapped at index 0x6202, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };UNS8 Error_Mode_Outputs_8_Bit[] = /* Mapped at index 0x6206, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };UNS8 Error_Value_Outputs_8_Bit[] = /* Mapped at index 0x6207, subindex 0x01 - 0x01 */ { 0x0 /* 0 */ };/**************************************************************************//* Declaration of the value range types *//**************************************************************************/#define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */UNS32 ObjDict_valueRangeTest (UNS8 typeValue, void * value){ switch (typeValue) { case valueRange_EMC: if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED; break; } return 0;}/**************************************************************************//* The node id *//**************************************************************************//* node_id default value.*/UNS8 ObjDict_bDeviceNodeId = 0x00;/**************************************************************************//* Array of message processing information */const UNS8 ObjDict_iam_a_slave = 1;TIMER_HANDLE ObjDict_heartBeatTimers[1] = {TIMER_NONE,};/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ OBJECT DICTIONARY$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*//* index 0x1000 : Device Type. */ UNS32 ObjDict_obj1000 = 0x30191; /* 197009 */ subindex ObjDict_Index1000[] = { { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1000 } };/* index 0x1001 : Error Register. */ UNS8 ObjDict_obj1001 = 0x0; /* 0 */ subindex ObjDict_Index1001[] = { { RO, uint8, sizeof (UNS8), (void*)&ObjDict_obj1001 } };/* index 0x1003 : Pre-defined Error Field. */ UNS8 ObjDict_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/ UNS32 ObjDict_obj1003[] = { 0x0 /* 0 */ }; ODCallback_t ObjDict_Index1003_callbacks[] = { NULL, NULL, }; subindex ObjDict_Index1003[] = { { RW, valueRange_EMC, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1003 }, { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1003[0] } };/* index 0x1005 : SYNC COB ID. */ UNS32 ObjDict_obj1005 = 0x80; /* 128 */ ODCallback_t ObjDict_Index1005_callbacks[] = { NULL, }; subindex ObjDict_Index1005[] = { { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1005 } };/* index 0x1006 : Communication / Cycle Period */ UNS32 ObjDict_obj1006 = 0x0; /* 0 *//* index 0x1008 : Manufacturer Device Name. */ UNS8 ObjDict_obj1008[10] = ""; subindex ObjDict_Index1008[] = { { RO, visible_string, 0, (void*)&ObjDict_obj1008 } };/* index 0x1009 : Manufacturer Hardware Version. */ UNS8 ObjDict_obj1009[10] = ""; subindex ObjDict_Index1009[] = { { RO, visible_string, 0, (void*)&ObjDict_obj1009 } };/* index 0x100A : Manufacturer Software Version. */ UNS8 ObjDict_obj100A[10] = ""; subindex ObjDict_Index100A[] = { { RO, visible_string, 0, (void*)&ObjDict_obj100A } };/* index 0x1010 : Store parameters. */ UNS8 ObjDict_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/ UNS32 ObjDict_obj1010_Save_All_Parameters = 0x0; /* 0 */ UNS32 ObjDict_obj1010_Save_Communication_Parameters = 0x0; /* 0 */ UNS32 ObjDict_obj1010_Save_Application_Parameters = 0x0; /* 0 */ UNS32 ObjDict_obj1010_Save_Manufacturer_Parameters = 0x0; /* 0 */ subindex ObjDict_Index1010[] = { { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1010 }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_All_Parameters }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Communication_Parameters }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Application_Parameters }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1010_Save_Manufacturer_Parameters } };/* index 0x1011 : Restore Default Parameters. */ UNS8 ObjDict_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/ UNS32 ObjDict_obj1011_Restore_All_Default_Parameters = 0x0; /* 0 */ UNS32 ObjDict_obj1011_Restore_Communication_Default_Parameters = 0x0; /* 0 */ UNS32 ObjDict_obj1011_Restore_Application_Default_Parameters = 0x0; /* 0 */ UNS32 ObjDict_obj1011_Restore_Manufacturer_Default_Parameters = 0x0; /* 0 */ subindex ObjDict_Index1011[] = { { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1011 }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_All_Default_Parameters }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Communication_Default_Parameters }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Application_Default_Parameters }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1011_Restore_Manufacturer_Default_Parameters } };/* index 0x1014 : Emergency COB ID. */ UNS32 ObjDict_obj1014 = 0x80; /* 128 */ subindex ObjDict_Index1014[] = { { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1014 } };/* index 0x1016 : Consumer Heartbeat Time. */ UNS8 ObjDict_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ UNS32 ObjDict_obj1016[] = { 0x0 /* 0 */ }; subindex ObjDict_Index1016[] = { { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1016 }, { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1016[0] } };/* index 0x1017 : Producer Heartbeat Time. */ UNS16 ObjDict_obj1017 = 0x2710; /* 10000 */ ODCallback_t ObjDict_Index1017_callbacks[] = { NULL, }; subindex ObjDict_Index1017[] = { { RW, uint16, sizeof (UNS16), (void*)&ObjDict_obj1017 } };/* index 0x1018 : Identity. */ UNS8 ObjDict_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ UNS32 ObjDict_obj1018_Vendor_ID = 0x0; /* 0 */ UNS32 ObjDict_obj1018_Product_Code = 0x0; /* 0 */ UNS32 ObjDict_obj1018_Revision_Number = 0x0; /* 0 */ UNS32 ObjDict_obj1018_Serial_Number = 0x0; /* 0 */ subindex ObjDict_Index1018[] = { { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1018 }, { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Vendor_ID }, { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Product_Code }, { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Revision_Number }, { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1018_Serial_Number } };/* index 0x1200 : Server SDO Parameter. */ UNS8 ObjDict_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/ UNS32 ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x600; /* 1536 */ UNS32 ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x580; /* 1408 */ subindex ObjDict_Index1200[] = { { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1200 }, { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Client_to_Server_Receive_SDO }, { RO, uint32, sizeof (UNS32), (void*)&ObjDict_obj1200_COB_ID_Server_to_Client_Transmit_SDO } };/* index 0x1400 : Receive PDO 1 Parameter. */ UNS8 ObjDict_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ UNS32 ObjDict_obj1400_COB_ID_used_by_PDO = 0x200; /* 512 */ UNS8 ObjDict_obj1400_Transmission_Type = 0x1; /* 1 */ UNS16 ObjDict_obj1400_Inhibit_Time = 0x0; /* 0 */ UNS8 ObjDict_obj1400_Compatibility_Entry = 0x0; /* 0 */ UNS16 ObjDict_obj1400_Event_Timer = 0x0; /* 0 */ subindex ObjDict_Index1400[] = { { RO, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1400 },
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -