etisserant@391: etisserant@391: /* File generated by gen_cfile.py. Should not be modified. */ etisserant@391: etisserant@391: #include "TestMaster.h" etisserant@391: etisserant@391: /**************************************************************************/ etisserant@391: /* Declaration of the mapped variables */ etisserant@391: /**************************************************************************/ etisserant@391: UNS8 MasterMap1 = 0x0; /* Mapped at index 0x2000, subindex 0x00 */ etisserant@391: UNS8 MasterMap2 = 0x0; /* Mapped at index 0x2001, subindex 0x00 */ etisserant@391: UNS8 MasterMap3 = 0x0; /* Mapped at index 0x2002, subindex 0x00 */ etisserant@391: UNS8 MasterMap4 = 0x0; /* Mapped at index 0x2003, subindex 0x00 */ etisserant@391: UNS8 MasterMap5 = 0x0; /* Mapped at index 0x2004, subindex 0x00 */ etisserant@391: UNS8 MasterMap6 = 0x0; /* Mapped at index 0x2005, subindex 0x00 */ etisserant@391: UNS8 MasterMap7 = 0x0; /* Mapped at index 0x2006, subindex 0x00 */ etisserant@391: UNS8 MasterMap8 = 0x0; /* Mapped at index 0x2007, subindex 0x00 */ etisserant@391: UNS8 MasterMap9 = 0x0; /* Mapped at index 0x2008, subindex 0x00 */ etisserant@391: UNS32 MasterMap10 = 0x0; /* Mapped at index 0x2009, subindex 0x00 */ etisserant@391: UNS16 MasterMap11 = 0x0; /* Mapped at index 0x200A, subindex 0x00 */ etisserant@391: INTEGER16 MasterMap12 = 0x0; /* Mapped at index 0x200B, subindex 0x00 */ etisserant@391: INTEGER16 MasterMap13 = 0x0; /* Mapped at index 0x200C, subindex 0x00 */ etisserant@391: etisserant@391: /**************************************************************************/ etisserant@391: /* Declaration of the value range types */ etisserant@391: /**************************************************************************/ etisserant@391: etisserant@391: #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ etisserant@391: UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value) etisserant@391: { etisserant@391: switch (typeValue) { etisserant@391: case valueRange_EMC: etisserant@391: if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED; etisserant@391: break; etisserant@391: } etisserant@391: return 0; etisserant@391: } etisserant@391: etisserant@391: /**************************************************************************/ etisserant@391: /* The node id */ etisserant@391: /**************************************************************************/ etisserant@391: /* node_id default value.*/ etisserant@391: UNS8 TestMaster_bDeviceNodeId = 0x00; etisserant@391: etisserant@391: /**************************************************************************/ etisserant@391: /* Array of message processing information */ etisserant@391: etisserant@391: const UNS8 TestMaster_iam_a_slave = 0; etisserant@391: etisserant@391: TIMER_HANDLE TestMaster_heartBeatTimers[1] = {TIMER_NONE,}; etisserant@391: etisserant@391: /* etisserant@391: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ etisserant@391: etisserant@391: OBJECT DICTIONARY etisserant@391: etisserant@391: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ etisserant@391: */ etisserant@391: etisserant@391: /* index 0x1000 : Device Type. */ etisserant@391: UNS32 TestMaster_obj1000 = 0x12D; /* 301 */ etisserant@391: subindex TestMaster_Index1000[] = etisserant@391: { etisserant@391: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1000 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1001 : Error Register. */ etisserant@391: UNS8 TestMaster_obj1001 = 0x0; /* 0 */ etisserant@391: subindex TestMaster_Index1001[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1003 : Pre-defined Error Field */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1003[] = etisserant@391: { etisserant@391: 0x0 /* 0 */ etisserant@391: }; etisserant@391: ODCallback_t TestMaster_Index1003_callbacks[] = etisserant@391: { etisserant@391: NULL, etisserant@391: NULL, etisserant@391: }; etisserant@391: subindex TestMaster_Index1003[] = etisserant@391: { etisserant@391: { RW, valueRange_EMC, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1003 }, etisserant@391: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1003[0] } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1005 : SYNC COB ID. */ etisserant@391: UNS32 TestMaster_obj1005 = 0x40000080; /* 1073741952 */ etisserant@391: ODCallback_t TestMaster_Index1005_callbacks[] = etisserant@391: { etisserant@391: NULL, etisserant@391: }; etisserant@391: subindex TestMaster_Index1005[] = etisserant@391: { etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1005 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1006 : Communication / Cycle Period. */ etisserant@391: UNS32 TestMaster_obj1006 = 0xC350; /* 50000 */ etisserant@391: ODCallback_t TestMaster_Index1006_callbacks[] = etisserant@391: { etisserant@391: NULL, etisserant@391: }; etisserant@391: subindex TestMaster_Index1006[] = etisserant@391: { etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1006 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1010 : Store parameters. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1010_Save_All_Parameters = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1010_Save_Communication_Parameters = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1010_Save_Application_Parameters = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1010_Save_Manufacturer_Parameters = 0x0; /* 0 */ etisserant@391: subindex TestMaster_Index1010[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1010 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_All_Parameters }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Communication_Parameters }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Application_Parameters }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1010_Save_Manufacturer_Parameters } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1011 : Restore Default Parameters. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1011_Restore_All_Default_Parameters = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1011_Restore_Communication_Default_Parameters = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1011_Restore_Application_Default_Parameters = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1011_Restore_Manufacturer_Default_Parameters = 0x0; /* 0 */ etisserant@391: subindex TestMaster_Index1011[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1011 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_All_Default_Parameters }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Communication_Default_Parameters }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Application_Default_Parameters }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1011_Restore_Manufacturer_Default_Parameters } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1014 : Emergency COB ID. */ etisserant@391: UNS32 TestMaster_obj1014 = 0x80; /* 128 */ etisserant@391: subindex TestMaster_Index1014[] = etisserant@391: { etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1014 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1016 : Consumer Heartbeat Time. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1016[] = etisserant@391: { etisserant@391: 0x205DC /* 132572 */ etisserant@391: }; etisserant@391: subindex TestMaster_Index1016[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1016 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1016[0] } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1017 : Producer Heartbeat Time */ etisserant@391: UNS16 TestMaster_obj1017 = 0x0; /* 0 */ etisserant@391: etisserant@391: /* index 0x1018 : Identity. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1018_Vendor_ID = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1018_Product_Code = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1018_Revision_Number = 0x0; /* 0 */ etisserant@391: UNS32 TestMaster_obj1018_Serial_Number = 0x0; /* 0 */ etisserant@391: subindex TestMaster_Index1018[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1018 }, etisserant@391: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Vendor_ID }, etisserant@391: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Product_Code }, etisserant@391: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Revision_Number }, etisserant@391: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Serial_Number } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1280 : Client SDO 1 Parameter. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x602; /* 1538 */ etisserant@391: UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x582; /* 1410 */ etisserant@391: UNS8 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x2; /* 2 */ etisserant@391: subindex TestMaster_Index1280[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1400 : Receive PDO 1 Parameter. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x200; /* 512 */ etisserant@391: UNS8 TestMaster_obj1400_Transmission_Type = 0x1; /* 1 */ etisserant@391: UNS16 TestMaster_obj1400_Inhibit_Time = 0x0; /* 0 */ etisserant@391: UNS8 TestMaster_obj1400_Compatibility_Entry = 0x0; /* 0 */ etisserant@391: UNS16 TestMaster_obj1400_Event_Timer = 0x0; /* 0 */ etisserant@391: subindex TestMaster_Index1400[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1400 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1400_COB_ID_used_by_PDO }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Transmission_Type }, etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Inhibit_Time }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Compatibility_Entry }, etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Event_Timer } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1401 : Receive PDO 2 Parameter. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1401 = 5; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1401_COB_ID_used_by_PDO = 0x300; /* 768 */ etisserant@391: UNS8 TestMaster_obj1401_Transmission_Type = 0x0; /* 0 */ etisserant@391: UNS16 TestMaster_obj1401_Inhibit_Time = 0x0; /* 0 */ etisserant@391: UNS8 TestMaster_obj1401_Compatibility_Entry = 0x0; /* 0 */ etisserant@391: UNS16 TestMaster_obj1401_Event_Timer = 0x0; /* 0 */ etisserant@391: subindex TestMaster_Index1401[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1401 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1401_COB_ID_used_by_PDO }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Transmission_Type }, etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Inhibit_Time }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Compatibility_Entry }, etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Event_Timer } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1402 : Receive PDO 3 Parameter. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1402 = 5; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1402_COB_ID_used_by_PDO = 0x401; /* 1025 */ etisserant@391: UNS8 TestMaster_obj1402_Transmission_Type = 0x0; /* 0 */ etisserant@391: UNS16 TestMaster_obj1402_Inhibit_Time = 0x0; /* 0 */ etisserant@391: UNS8 TestMaster_obj1402_Compatibility_Entry = 0x0; /* 0 */ etisserant@391: UNS16 TestMaster_obj1402_Event_Timer = 0x0; /* 0 */ etisserant@391: subindex TestMaster_Index1402[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1402 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1402_COB_ID_used_by_PDO }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1402_Transmission_Type }, etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1402_Inhibit_Time }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1402_Compatibility_Entry }, etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1402_Event_Timer } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1403 : Receive PDO 4 Parameter. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1403 = 5; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1403_COB_ID_used_by_PDO = 0x482; /* 1154 */ etisserant@391: UNS8 TestMaster_obj1403_Transmission_Type = 0x0; /* 0 */ etisserant@391: UNS16 TestMaster_obj1403_Inhibit_Time = 0x0; /* 0 */ etisserant@391: UNS8 TestMaster_obj1403_Compatibility_Entry = 0x0; /* 0 */ etisserant@391: UNS16 TestMaster_obj1403_Event_Timer = 0x0; /* 0 */ etisserant@391: subindex TestMaster_Index1403[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1403 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1403_COB_ID_used_by_PDO }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1403_Transmission_Type }, etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1403_Inhibit_Time }, etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1403_Compatibility_Entry }, etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1403_Event_Timer } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1600 : Receive PDO 1 Mapping. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1600 = 10; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1600[] = etisserant@391: { etisserant@391: 0x20000001, /* 536870913 */ etisserant@391: 0x20010001, /* 536936449 */ etisserant@391: 0x20020001, /* 537001985 */ etisserant@391: 0x20030001, /* 537067521 */ etisserant@391: 0x20040001, /* 537133057 */ etisserant@391: 0x20050001, /* 537198593 */ etisserant@391: 0x20060001, /* 537264129 */ etisserant@391: 0x20070001, /* 537329665 */ etisserant@391: 0x20080008, /* 537395208 */ etisserant@391: 0x20090020 /* 537460768 */ etisserant@391: }; etisserant@391: subindex TestMaster_Index1600[] = etisserant@391: { etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[2] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[3] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[4] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[5] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[6] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[7] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[8] }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[9] } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1601 : Receive PDO 2 Mapping. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1601 = 1; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1601[] = etisserant@391: { etisserant@391: 0x200A0010 /* 537526288 */ etisserant@391: }; etisserant@391: subindex TestMaster_Index1601[] = etisserant@391: { etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1601 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[0] } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1602 : Receive PDO 3 Mapping. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1602 = 1; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1602[] = etisserant@391: { etisserant@391: 0x200B0010 /* 537591824 */ etisserant@391: }; etisserant@391: subindex TestMaster_Index1602[] = etisserant@391: { etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1602 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1602[0] } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1603 : Receive PDO 4 Mapping. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1603 = 1; /* number of subindex - 1*/ etisserant@391: UNS32 TestMaster_obj1603[] = etisserant@391: { etisserant@391: 0x200C0010 /* 537657360 */ etisserant@391: }; etisserant@391: subindex TestMaster_Index1603[] = etisserant@391: { etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1603 }, etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1603[0] } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x1F22 : Concise DCF. */ etisserant@391: UNS8 TestMaster_highestSubIndex_obj1F22 = 2; /* number of subindex - 1*/ etisserant@391: UNS8* TestMaster_obj1F22[] = etisserant@391: { etisserant@391: "", etisserant@391: "\x01\x00\x00\x00\x17\x10\x00\x02\x00\x00\x00\xe8\x03" etisserant@391: }; etisserant@391: subindex TestMaster_Index1F22[] = etisserant@391: { etisserant@391: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1F22 }, etisserant@391: { RW, domain, 0, (void*)&TestMaster_obj1F22[0] }, etisserant@391: { RW, domain, 13, (void*)&TestMaster_obj1F22[1] } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2000 : Mapped variable MasterMap1 */ etisserant@391: subindex TestMaster_Index2000[] = etisserant@391: { etisserant@391: { RW, boolean, sizeof (UNS8), (void*)&MasterMap1 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2001 : Mapped variable MasterMap2 */ etisserant@391: subindex TestMaster_Index2001[] = etisserant@391: { etisserant@391: { RW, boolean, sizeof (UNS8), (void*)&MasterMap2 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2002 : Mapped variable MasterMap3 */ etisserant@391: subindex TestMaster_Index2002[] = etisserant@391: { etisserant@391: { RW, boolean, sizeof (UNS8), (void*)&MasterMap3 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2003 : Mapped variable MasterMap4 */ etisserant@391: subindex TestMaster_Index2003[] = etisserant@391: { etisserant@391: { RW, boolean, sizeof (UNS8), (void*)&MasterMap4 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2004 : Mapped variable MasterMap5 */ etisserant@391: subindex TestMaster_Index2004[] = etisserant@391: { etisserant@391: { RW, boolean, sizeof (UNS8), (void*)&MasterMap5 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2005 : Mapped variable MasterMap6 */ etisserant@391: subindex TestMaster_Index2005[] = etisserant@391: { etisserant@391: { RW, boolean, sizeof (UNS8), (void*)&MasterMap6 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2006 : Mapped variable MasterMap7 */ etisserant@391: subindex TestMaster_Index2006[] = etisserant@391: { etisserant@391: { RW, boolean, sizeof (UNS8), (void*)&MasterMap7 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2007 : Mapped variable MasterMap8 */ etisserant@391: subindex TestMaster_Index2007[] = etisserant@391: { etisserant@391: { RW, boolean, sizeof (UNS8), (void*)&MasterMap8 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2008 : Mapped variable MasterMap9 */ etisserant@391: subindex TestMaster_Index2008[] = etisserant@391: { etisserant@391: { RW, uint8, sizeof (UNS8), (void*)&MasterMap9 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x2009 : Mapped variable MasterMap10 */ etisserant@391: subindex TestMaster_Index2009[] = etisserant@391: { etisserant@391: { RW, uint32, sizeof (UNS32), (void*)&MasterMap10 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x200A : Mapped variable MasterMap11 */ etisserant@391: subindex TestMaster_Index200A[] = etisserant@391: { etisserant@391: { RW, uint16, sizeof (UNS16), (void*)&MasterMap11 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x200B : Mapped variable MasterMap12 */ etisserant@391: subindex TestMaster_Index200B[] = etisserant@391: { etisserant@391: { RW, int16, sizeof (INTEGER16), (void*)&MasterMap12 } etisserant@391: }; etisserant@391: etisserant@391: /* index 0x200C : Mapped variable MasterMap13 */ etisserant@391: subindex TestMaster_Index200C[] = etisserant@391: { etisserant@391: { RW, int16, sizeof (INTEGER16), (void*)&MasterMap13 } etisserant@391: }; etisserant@391: etisserant@391: const indextable TestMaster_objdict[] = etisserant@391: { etisserant@391: { (subindex*)TestMaster_Index1000,sizeof(TestMaster_Index1000)/sizeof(TestMaster_Index1000[0]), 0x1000}, etisserant@391: { (subindex*)TestMaster_Index1001,sizeof(TestMaster_Index1001)/sizeof(TestMaster_Index1001[0]), 0x1001}, etisserant@391: { (subindex*)TestMaster_Index1005,sizeof(TestMaster_Index1005)/sizeof(TestMaster_Index1005[0]), 0x1005}, etisserant@391: { (subindex*)TestMaster_Index1006,sizeof(TestMaster_Index1006)/sizeof(TestMaster_Index1006[0]), 0x1006}, etisserant@391: { (subindex*)TestMaster_Index1010,sizeof(TestMaster_Index1010)/sizeof(TestMaster_Index1010[0]), 0x1010}, etisserant@391: { (subindex*)TestMaster_Index1011,sizeof(TestMaster_Index1011)/sizeof(TestMaster_Index1011[0]), 0x1011}, etisserant@391: { (subindex*)TestMaster_Index1014,sizeof(TestMaster_Index1014)/sizeof(TestMaster_Index1014[0]), 0x1014}, etisserant@391: { (subindex*)TestMaster_Index1016,sizeof(TestMaster_Index1016)/sizeof(TestMaster_Index1016[0]), 0x1016}, etisserant@391: { (subindex*)TestMaster_Index1018,sizeof(TestMaster_Index1018)/sizeof(TestMaster_Index1018[0]), 0x1018}, etisserant@391: { (subindex*)TestMaster_Index1280,sizeof(TestMaster_Index1280)/sizeof(TestMaster_Index1280[0]), 0x1280}, etisserant@391: { (subindex*)TestMaster_Index1400,sizeof(TestMaster_Index1400)/sizeof(TestMaster_Index1400[0]), 0x1400}, etisserant@391: { (subindex*)TestMaster_Index1401,sizeof(TestMaster_Index1401)/sizeof(TestMaster_Index1401[0]), 0x1401}, etisserant@391: { (subindex*)TestMaster_Index1402,sizeof(TestMaster_Index1402)/sizeof(TestMaster_Index1402[0]), 0x1402}, etisserant@391: { (subindex*)TestMaster_Index1403,sizeof(TestMaster_Index1403)/sizeof(TestMaster_Index1403[0]), 0x1403}, etisserant@391: { (subindex*)TestMaster_Index1600,sizeof(TestMaster_Index1600)/sizeof(TestMaster_Index1600[0]), 0x1600}, etisserant@391: { (subindex*)TestMaster_Index1601,sizeof(TestMaster_Index1601)/sizeof(TestMaster_Index1601[0]), 0x1601}, etisserant@391: { (subindex*)TestMaster_Index1602,sizeof(TestMaster_Index1602)/sizeof(TestMaster_Index1602[0]), 0x1602}, etisserant@391: { (subindex*)TestMaster_Index1603,sizeof(TestMaster_Index1603)/sizeof(TestMaster_Index1603[0]), 0x1603}, etisserant@391: { (subindex*)TestMaster_Index1F22,sizeof(TestMaster_Index1F22)/sizeof(TestMaster_Index1F22[0]), 0x1F22}, etisserant@391: { (subindex*)TestMaster_Index2000,sizeof(TestMaster_Index2000)/sizeof(TestMaster_Index2000[0]), 0x2000}, etisserant@391: { (subindex*)TestMaster_Index2001,sizeof(TestMaster_Index2001)/sizeof(TestMaster_Index2001[0]), 0x2001}, etisserant@391: { (subindex*)TestMaster_Index2002,sizeof(TestMaster_Index2002)/sizeof(TestMaster_Index2002[0]), 0x2002}, etisserant@391: { (subindex*)TestMaster_Index2003,sizeof(TestMaster_Index2003)/sizeof(TestMaster_Index2003[0]), 0x2003}, etisserant@391: { (subindex*)TestMaster_Index2004,sizeof(TestMaster_Index2004)/sizeof(TestMaster_Index2004[0]), 0x2004}, etisserant@391: { (subindex*)TestMaster_Index2005,sizeof(TestMaster_Index2005)/sizeof(TestMaster_Index2005[0]), 0x2005}, etisserant@391: { (subindex*)TestMaster_Index2006,sizeof(TestMaster_Index2006)/sizeof(TestMaster_Index2006[0]), 0x2006}, etisserant@391: { (subindex*)TestMaster_Index2007,sizeof(TestMaster_Index2007)/sizeof(TestMaster_Index2007[0]), 0x2007}, etisserant@391: { (subindex*)TestMaster_Index2008,sizeof(TestMaster_Index2008)/sizeof(TestMaster_Index2008[0]), 0x2008}, etisserant@391: { (subindex*)TestMaster_Index2009,sizeof(TestMaster_Index2009)/sizeof(TestMaster_Index2009[0]), 0x2009}, etisserant@391: { (subindex*)TestMaster_Index200A,sizeof(TestMaster_Index200A)/sizeof(TestMaster_Index200A[0]), 0x200A}, etisserant@391: { (subindex*)TestMaster_Index200B,sizeof(TestMaster_Index200B)/sizeof(TestMaster_Index200B[0]), 0x200B}, etisserant@391: { (subindex*)TestMaster_Index200C,sizeof(TestMaster_Index200C)/sizeof(TestMaster_Index200C[0]), 0x200C}, etisserant@391: }; etisserant@391: etisserant@391: const indextable * TestMaster_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) etisserant@391: { etisserant@391: int i; etisserant@391: *callbacks = NULL; etisserant@391: switch(wIndex){ etisserant@391: case 0x1000: i = 0;break; etisserant@391: case 0x1001: i = 1;break; etisserant@391: case 0x1005: i = 2;*callbacks = TestMaster_Index1005_callbacks; break; etisserant@391: case 0x1006: i = 3;*callbacks = TestMaster_Index1006_callbacks; break; etisserant@391: case 0x1010: i = 4;break; etisserant@391: case 0x1011: i = 5;break; etisserant@391: case 0x1014: i = 6;break; etisserant@391: case 0x1016: i = 7;break; etisserant@391: case 0x1018: i = 8;break; etisserant@391: case 0x1280: i = 9;break; etisserant@391: case 0x1400: i = 10;break; etisserant@391: case 0x1401: i = 11;break; etisserant@391: case 0x1402: i = 12;break; etisserant@391: case 0x1403: i = 13;break; etisserant@391: case 0x1600: i = 14;break; etisserant@391: case 0x1601: i = 15;break; etisserant@391: case 0x1602: i = 16;break; etisserant@391: case 0x1603: i = 17;break; etisserant@391: case 0x1F22: i = 18;break; etisserant@391: case 0x2000: i = 19;break; etisserant@391: case 0x2001: i = 20;break; etisserant@391: case 0x2002: i = 21;break; etisserant@391: case 0x2003: i = 22;break; etisserant@391: case 0x2004: i = 23;break; etisserant@391: case 0x2005: i = 24;break; etisserant@391: case 0x2006: i = 25;break; etisserant@391: case 0x2007: i = 26;break; etisserant@391: case 0x2008: i = 27;break; etisserant@391: case 0x2009: i = 28;break; etisserant@391: case 0x200A: i = 29;break; etisserant@391: case 0x200B: i = 30;break; etisserant@391: case 0x200C: i = 31;break; etisserant@391: default: etisserant@391: *errorCode = OD_NO_SUCH_OBJECT; etisserant@391: return NULL; etisserant@391: } etisserant@391: *errorCode = OD_SUCCESSFUL; etisserant@391: return &TestMaster_objdict[i]; etisserant@391: } etisserant@391: etisserant@391: /* etisserant@391: * To count at which received SYNC a PDO must be sent. etisserant@391: * Even if no pdoTransmit are defined, at least one entry is computed etisserant@391: * for compilations issues. etisserant@391: */ etisserant@391: s_PDO_status TestMaster_PDO_status[1] = {s_PDO_status_Initializer}; etisserant@391: etisserant@391: quick_index TestMaster_firstIndex = { etisserant@391: 0, /* SDO_SVR */ etisserant@391: 9, /* SDO_CLT */ etisserant@391: 10, /* PDO_RCV */ etisserant@391: 14, /* PDO_RCV_MAP */ etisserant@391: 0, /* PDO_TRS */ etisserant@391: 0 /* PDO_TRS_MAP */ etisserant@391: }; etisserant@391: etisserant@391: quick_index TestMaster_lastIndex = { etisserant@391: 0, /* SDO_SVR */ etisserant@391: 9, /* SDO_CLT */ etisserant@391: 13, /* PDO_RCV */ etisserant@391: 17, /* PDO_RCV_MAP */ etisserant@391: 0, /* PDO_TRS */ etisserant@391: 0 /* PDO_TRS_MAP */ etisserant@391: }; etisserant@391: etisserant@391: UNS16 TestMaster_ObjdictSize = sizeof(TestMaster_objdict)/sizeof(TestMaster_objdict[0]); etisserant@391: etisserant@391: CO_Data TestMaster_Data = CANOPEN_NODE_DATA_INITIALIZER(TestMaster); etisserant@391: