etisserant@246: etisserant@246: /* File generated by gen_cfile.py. Should not be modified. */ etisserant@246: etisserant@246: #include "TestMaster.h" etisserant@246: etisserant@246: /**************************************************************************/ etisserant@246: /* Declaration of the mapped variables */ etisserant@246: /**************************************************************************/ etisserant@246: UNS8 DO = 0x0; /* Mapped at index 0x2000, subindex 0x00 */ etisserant@246: INTEGER16 AO1 = 0x0; /* Mapped at index 0x2001, subindex 0x00 */ etisserant@246: INTEGER16 AO2 = 0x0; /* Mapped at index 0x2002, subindex 0x00 */ etisserant@246: INTEGER16 AO3 = 0x0; /* Mapped at index 0x2003, subindex 0x00 */ etisserant@246: INTEGER16 AO4 = 0x0; /* Mapped at index 0x2004, subindex 0x00 */ etisserant@246: INTEGER16 AI1 = 0x0; /* Mapped at index 0x2005, subindex 0x00 */ etisserant@246: INTEGER16 AI2 = 0x0; /* Mapped at index 0x2006, subindex 0x00 */ etisserant@246: INTEGER16 AI3 = 0x0; /* Mapped at index 0x2007, subindex 0x00 */ etisserant@246: INTEGER16 AI4 = 0x0; /* Mapped at index 0x2008, subindex 0x00 */ etisserant@246: INTEGER16 AI5 = 0x0; /* Mapped at index 0x2009, subindex 0x00 */ etisserant@246: INTEGER16 AI6 = 0x0; /* Mapped at index 0x200A, subindex 0x00 */ etisserant@246: INTEGER16 AI7 = 0x0; /* Mapped at index 0x200B, subindex 0x00 */ etisserant@246: INTEGER16 AI8 = 0x0; /* Mapped at index 0x200C, subindex 0x00 */ etisserant@246: UNS8 DI1 = 0x0; /* Mapped at index 0x200F, subindex 0x00 */ etisserant@246: UNS8 DI2 = 0x0; /* Mapped at index 0x2010, subindex 0x00 */ etisserant@246: UNS8 DI3 = 0x0; /* Mapped at index 0x2011, subindex 0x00 */ etisserant@246: UNS8 DI4 = 0x0; /* Mapped at index 0x2012, subindex 0x00 */ etisserant@246: UNS8 DI5 = 0x0; /* Mapped at index 0x2013, subindex 0x00 */ etisserant@246: UNS8 DI6 = 0x0; /* Mapped at index 0x2014, subindex 0x00 */ etisserant@246: UNS8 DI7 = 0x0; /* Mapped at index 0x2015, subindex 0x00 */ etisserant@246: UNS8 DI8 = 0x0; /* Mapped at index 0x2016, subindex 0x00 */ etisserant@246: etisserant@246: /**************************************************************************/ etisserant@246: /* Declaration of the value range types */ etisserant@246: /**************************************************************************/ etisserant@246: etisserant@294: #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ etisserant@246: UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value) etisserant@246: { etisserant@246: switch (typeValue) { etisserant@294: case valueRange_EMC: etisserant@294: if (*(UNS8*)value > (UNS8)0) return OD_VALUE_TOO_HIGH; etisserant@294: 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@246: UNS8 TestMaster_bDeviceNodeId = 0x01; etisserant@246: etisserant@246: /**************************************************************************/ etisserant@246: /* Array of message processing information */ etisserant@246: etisserant@246: const UNS8 TestMaster_iam_a_slave = 0; etisserant@246: etisserant@246: TIMER_HANDLE TestMaster_heartBeatTimers[1] = {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 TestMaster_obj1000 = 0x191; /* 401 */ etisserant@246: subindex TestMaster_Index1000[] = etisserant@246: { etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1000 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1001 : Error Register. */ etisserant@246: UNS8 TestMaster_obj1001 = 0x0; /* 0 */ etisserant@246: subindex TestMaster_Index1001[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 } etisserant@246: }; etisserant@246: etisserant@294: /* index 0x1003 : Pre-defined Error Field */ etisserant@294: UNS8 TestMaster_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/ etisserant@294: UNS32 TestMaster_obj1003[] = etisserant@294: { etisserant@294: 0x0 /* 0 */ etisserant@294: }; etisserant@294: ODCallback_t TestMaster_Index1003_callbacks[] = etisserant@294: { etisserant@294: NULL, etisserant@294: NULL, etisserant@294: }; etisserant@294: subindex TestMaster_Index1003[] = etisserant@294: { etisserant@294: { RW, valueRange_EMC, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1003 }, etisserant@294: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1003[0] } etisserant@294: }; etisserant@294: etisserant@246: /* index 0x1005 : SYNC COB ID. */ etisserant@246: UNS32 TestMaster_obj1005 = 0x40000080; /* 1073741952 */ etisserant@246: ODCallback_t TestMaster_Index1005_callbacks[] = etisserant@246: { etisserant@246: NULL, etisserant@246: }; etisserant@246: subindex TestMaster_Index1005[] = etisserant@246: { etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1005 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1006 : Communication / Cycle Period. */ etisserant@246: UNS32 TestMaster_obj1006 = 0xC350; /* 50000 */ etisserant@246: ODCallback_t TestMaster_Index1006_callbacks[] = etisserant@246: { etisserant@246: NULL, etisserant@246: }; etisserant@246: subindex TestMaster_Index1006[] = etisserant@246: { etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1006 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1016 : Consumer Heartbeat Time. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1016[] = etisserant@246: { etisserant@246: 0x4005DC /* 4195804 */ etisserant@246: }; etisserant@246: subindex TestMaster_Index1016[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1016 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1016[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1017 : Producer Heartbeat Time */ etisserant@246: UNS16 TestMaster_obj1017 = 0x0; /* 0 */ etisserant@246: etisserant@246: /* index 0x1018 : Identity. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1018_Vendor_ID = 0x0; /* 0 */ etisserant@246: UNS32 TestMaster_obj1018_Product_Code = 0x0; /* 0 */ etisserant@246: UNS32 TestMaster_obj1018_Revision_Number = 0x0; /* 0 */ etisserant@246: UNS32 TestMaster_obj1018_Serial_Number = 0x0; /* 0 */ etisserant@246: subindex TestMaster_Index1018[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1018 }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Vendor_ID }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Product_Code }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Revision_Number }, etisserant@246: { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Serial_Number } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1280 : Client SDO 1 Parameter. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x640; /* 1600 */ etisserant@246: UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x5C0; /* 1472 */ etisserant@294: UNS8 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x40; /* 64 */ etisserant@246: subindex TestMaster_Index1280[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO }, etisserant@294: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1400 : Receive PDO 1 Parameter. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x1C0; /* 448 */ etisserant@246: UNS8 TestMaster_obj1400_Transmission_Type = 0x1; /* 1 */ etisserant@246: UNS16 TestMaster_obj1400_Inhibit_Time = 0x0; /* 0 */ etisserant@246: UNS8 TestMaster_obj1400_Compatibility_Entry = 0x0; /* 0 */ etisserant@246: UNS16 TestMaster_obj1400_Event_Timer = 0x0; /* 0 */ etisserant@246: subindex TestMaster_Index1400[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1400 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1400_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Transmission_Type }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Inhibit_Time }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Compatibility_Entry }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Event_Timer } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1401 : Receive PDO 2 Parameter. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1401 = 5; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1401_COB_ID_used_by_PDO = 0x2C0; /* 704 */ etisserant@246: UNS8 TestMaster_obj1401_Transmission_Type = 0x1; /* 1 */ etisserant@246: UNS16 TestMaster_obj1401_Inhibit_Time = 0x0; /* 0 */ etisserant@246: UNS8 TestMaster_obj1401_Compatibility_Entry = 0x0; /* 0 */ etisserant@246: UNS16 TestMaster_obj1401_Event_Timer = 0x0; /* 0 */ etisserant@246: subindex TestMaster_Index1401[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1401 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1401_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Transmission_Type }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Inhibit_Time }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1401_Compatibility_Entry }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1401_Event_Timer } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1402 : Receive PDO 3 Parameter. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1402 = 5; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1402_COB_ID_used_by_PDO = 0x3C0; /* 960 */ etisserant@246: UNS8 TestMaster_obj1402_Transmission_Type = 0x1; /* 1 */ etisserant@246: UNS16 TestMaster_obj1402_Inhibit_Time = 0x0; /* 0 */ etisserant@246: UNS8 TestMaster_obj1402_Compatibility_Entry = 0x0; /* 0 */ etisserant@246: UNS16 TestMaster_obj1402_Event_Timer = 0x0; /* 0 */ etisserant@246: subindex TestMaster_Index1402[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1402 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1402_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1402_Transmission_Type }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1402_Inhibit_Time }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1402_Compatibility_Entry }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1402_Event_Timer } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1600 : Receive PDO 1 Mapping. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1600 = 8; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1600[] = etisserant@246: { etisserant@246: 0x200F0001, /* 537853953 */ etisserant@246: 0x20100001, /* 537919489 */ etisserant@246: 0x20110001, /* 537985025 */ etisserant@246: 0x20120001, /* 538050561 */ etisserant@246: 0x20130001, /* 538116097 */ etisserant@246: 0x20140001, /* 538181633 */ etisserant@246: 0x20150001, /* 538247169 */ etisserant@246: 0x20160001 /* 538312705 */ etisserant@246: }; etisserant@246: subindex TestMaster_Index1600[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[2] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[3] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[4] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[5] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[6] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[7] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1601 : Receive PDO 2 Mapping. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1601 = 4; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1601[] = etisserant@246: { etisserant@246: 0x20050010, /* 537198608 */ etisserant@246: 0x20060010, /* 537264144 */ etisserant@246: 0x20070010, /* 537329680 */ etisserant@246: 0x20080010 /* 537395216 */ etisserant@246: }; etisserant@246: subindex TestMaster_Index1601[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1601 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[2] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1601[3] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1602 : Receive PDO 3 Mapping. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1602 = 4; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1602[] = etisserant@246: { etisserant@246: 0x20090010, /* 537460752 */ etisserant@246: 0x200A0010, /* 537526288 */ etisserant@246: 0x200B0010, /* 537591824 */ etisserant@246: 0x200C0010 /* 537657360 */ etisserant@246: }; etisserant@246: subindex TestMaster_Index1602[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1602 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1602[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1602[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1602[2] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1602[3] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1800 : Transmit PDO 1 Parameter. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1800_COB_ID_used_by_PDO = 0x240; /* 576 */ etisserant@246: UNS8 TestMaster_obj1800_Transmission_Type = 0x1; /* 1 */ etisserant@246: UNS16 TestMaster_obj1800_Inhibit_Time = 0x0; /* 0 */ etisserant@246: UNS8 TestMaster_obj1800_Compatibility_Entry = 0x0; /* 0 */ etisserant@246: UNS16 TestMaster_obj1800_Event_Timer = 0x0; /* 0 */ etisserant@294: ODCallback_t TestMaster_Index1800_callbacks[] = etisserant@294: { etisserant@294: NULL, etisserant@294: NULL, etisserant@294: NULL, etisserant@294: NULL, etisserant@294: NULL, etisserant@294: NULL, etisserant@294: }; etisserant@246: subindex TestMaster_Index1800[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1800 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1800_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1800_Transmission_Type }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1800_Inhibit_Time }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1800_Compatibility_Entry }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1800_Event_Timer } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1801 : Transmit PDO 2 Parameter. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1801_COB_ID_used_by_PDO = 0x340; /* 832 */ etisserant@246: UNS8 TestMaster_obj1801_Transmission_Type = 0x1; /* 1 */ etisserant@246: UNS16 TestMaster_obj1801_Inhibit_Time = 0x0; /* 0 */ etisserant@246: UNS8 TestMaster_obj1801_Compatibility_Entry = 0x0; /* 0 */ etisserant@246: UNS16 TestMaster_obj1801_Event_Timer = 0x0; /* 0 */ etisserant@294: ODCallback_t TestMaster_Index1801_callbacks[] = etisserant@294: { etisserant@294: NULL, etisserant@294: NULL, etisserant@294: NULL, etisserant@294: NULL, etisserant@294: NULL, etisserant@294: NULL, etisserant@294: }; etisserant@246: subindex TestMaster_Index1801[] = etisserant@246: { etisserant@246: { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1801 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1801_COB_ID_used_by_PDO }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1801_Transmission_Type }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1801_Inhibit_Time }, etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1801_Compatibility_Entry }, etisserant@246: { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1801_Event_Timer } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1A00 : Transmit PDO 1 Mapping. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1A00[] = etisserant@246: { etisserant@246: 0x20000008 /* 536870920 */ etisserant@246: }; etisserant@246: subindex TestMaster_Index1A00[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1A00 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1A00[0] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x1A01 : Transmit PDO 2 Mapping. */ etisserant@246: UNS8 TestMaster_highestSubIndex_obj1A01 = 4; /* number of subindex - 1*/ etisserant@246: UNS32 TestMaster_obj1A01[] = etisserant@246: { etisserant@246: 0x20010010, /* 536936464 */ etisserant@246: 0x20020010, /* 537002000 */ etisserant@246: 0x20030010, /* 537067536 */ etisserant@246: 0x20040010 /* 537133072 */ etisserant@246: }; etisserant@246: subindex TestMaster_Index1A01[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1A01 }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1A01[0] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1A01[1] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1A01[2] }, etisserant@246: { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1A01[3] } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2000 : Mapped variable DO */ etisserant@246: subindex TestMaster_Index2000[] = etisserant@246: { etisserant@246: { RW, uint8, sizeof (UNS8), (void*)&DO } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2001 : Mapped variable AO1 */ etisserant@246: subindex TestMaster_Index2001[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AO1 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2002 : Mapped variable AO2 */ etisserant@246: subindex TestMaster_Index2002[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AO2 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2003 : Mapped variable AO3 */ etisserant@246: subindex TestMaster_Index2003[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AO3 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2004 : Mapped variable AO4 */ etisserant@246: subindex TestMaster_Index2004[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AO4 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2005 : Mapped variable AI1 */ etisserant@246: subindex TestMaster_Index2005[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AI1 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2006 : Mapped variable AI2 */ etisserant@246: subindex TestMaster_Index2006[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AI2 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2007 : Mapped variable AI3 */ etisserant@246: subindex TestMaster_Index2007[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AI3 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2008 : Mapped variable AI4 */ etisserant@246: subindex TestMaster_Index2008[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AI4 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2009 : Mapped variable AI5 */ etisserant@246: subindex TestMaster_Index2009[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AI5 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x200A : Mapped variable AI6 */ etisserant@246: subindex TestMaster_Index200A[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AI6 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x200B : Mapped variable AI7 */ etisserant@246: subindex TestMaster_Index200B[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AI7 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x200C : Mapped variable AI8 */ etisserant@246: subindex TestMaster_Index200C[] = etisserant@246: { etisserant@246: { RW, int16, sizeof (INTEGER16), (void*)&AI8 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x200F : Mapped variable DI1 */ etisserant@246: subindex TestMaster_Index200F[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&DI1 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2010 : Mapped variable DI2 */ etisserant@246: subindex TestMaster_Index2010[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&DI2 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2011 : Mapped variable DI3 */ etisserant@246: subindex TestMaster_Index2011[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&DI3 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2012 : Mapped variable DI4 */ etisserant@246: subindex TestMaster_Index2012[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&DI4 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2013 : Mapped variable DI5 */ etisserant@246: subindex TestMaster_Index2013[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&DI5 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2014 : Mapped variable DI6 */ etisserant@246: subindex TestMaster_Index2014[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&DI6 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2015 : Mapped variable DI7 */ etisserant@246: subindex TestMaster_Index2015[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&DI7 } etisserant@246: }; etisserant@246: etisserant@246: /* index 0x2016 : Mapped variable DI8 */ etisserant@246: subindex TestMaster_Index2016[] = etisserant@246: { etisserant@246: { RW, boolean, sizeof (UNS8), (void*)&DI8 } etisserant@246: }; etisserant@246: etisserant@246: const indextable TestMaster_objdict[] = etisserant@246: { etisserant@246: { (subindex*)TestMaster_Index1000,sizeof(TestMaster_Index1000)/sizeof(TestMaster_Index1000[0]), 0x1000}, etisserant@246: { (subindex*)TestMaster_Index1001,sizeof(TestMaster_Index1001)/sizeof(TestMaster_Index1001[0]), 0x1001}, etisserant@246: { (subindex*)TestMaster_Index1005,sizeof(TestMaster_Index1005)/sizeof(TestMaster_Index1005[0]), 0x1005}, etisserant@246: { (subindex*)TestMaster_Index1006,sizeof(TestMaster_Index1006)/sizeof(TestMaster_Index1006[0]), 0x1006}, etisserant@246: { (subindex*)TestMaster_Index1016,sizeof(TestMaster_Index1016)/sizeof(TestMaster_Index1016[0]), 0x1016}, etisserant@246: { (subindex*)TestMaster_Index1018,sizeof(TestMaster_Index1018)/sizeof(TestMaster_Index1018[0]), 0x1018}, etisserant@246: { (subindex*)TestMaster_Index1280,sizeof(TestMaster_Index1280)/sizeof(TestMaster_Index1280[0]), 0x1280}, etisserant@246: { (subindex*)TestMaster_Index1400,sizeof(TestMaster_Index1400)/sizeof(TestMaster_Index1400[0]), 0x1400}, etisserant@246: { (subindex*)TestMaster_Index1401,sizeof(TestMaster_Index1401)/sizeof(TestMaster_Index1401[0]), 0x1401}, etisserant@246: { (subindex*)TestMaster_Index1402,sizeof(TestMaster_Index1402)/sizeof(TestMaster_Index1402[0]), 0x1402}, etisserant@246: { (subindex*)TestMaster_Index1600,sizeof(TestMaster_Index1600)/sizeof(TestMaster_Index1600[0]), 0x1600}, etisserant@246: { (subindex*)TestMaster_Index1601,sizeof(TestMaster_Index1601)/sizeof(TestMaster_Index1601[0]), 0x1601}, etisserant@246: { (subindex*)TestMaster_Index1602,sizeof(TestMaster_Index1602)/sizeof(TestMaster_Index1602[0]), 0x1602}, etisserant@246: { (subindex*)TestMaster_Index1800,sizeof(TestMaster_Index1800)/sizeof(TestMaster_Index1800[0]), 0x1800}, etisserant@246: { (subindex*)TestMaster_Index1801,sizeof(TestMaster_Index1801)/sizeof(TestMaster_Index1801[0]), 0x1801}, etisserant@246: { (subindex*)TestMaster_Index1A00,sizeof(TestMaster_Index1A00)/sizeof(TestMaster_Index1A00[0]), 0x1A00}, etisserant@246: { (subindex*)TestMaster_Index1A01,sizeof(TestMaster_Index1A01)/sizeof(TestMaster_Index1A01[0]), 0x1A01}, etisserant@246: { (subindex*)TestMaster_Index2000,sizeof(TestMaster_Index2000)/sizeof(TestMaster_Index2000[0]), 0x2000}, etisserant@246: { (subindex*)TestMaster_Index2001,sizeof(TestMaster_Index2001)/sizeof(TestMaster_Index2001[0]), 0x2001}, etisserant@246: { (subindex*)TestMaster_Index2002,sizeof(TestMaster_Index2002)/sizeof(TestMaster_Index2002[0]), 0x2002}, etisserant@246: { (subindex*)TestMaster_Index2003,sizeof(TestMaster_Index2003)/sizeof(TestMaster_Index2003[0]), 0x2003}, etisserant@246: { (subindex*)TestMaster_Index2004,sizeof(TestMaster_Index2004)/sizeof(TestMaster_Index2004[0]), 0x2004}, etisserant@246: { (subindex*)TestMaster_Index2005,sizeof(TestMaster_Index2005)/sizeof(TestMaster_Index2005[0]), 0x2005}, etisserant@246: { (subindex*)TestMaster_Index2006,sizeof(TestMaster_Index2006)/sizeof(TestMaster_Index2006[0]), 0x2006}, etisserant@246: { (subindex*)TestMaster_Index2007,sizeof(TestMaster_Index2007)/sizeof(TestMaster_Index2007[0]), 0x2007}, etisserant@246: { (subindex*)TestMaster_Index2008,sizeof(TestMaster_Index2008)/sizeof(TestMaster_Index2008[0]), 0x2008}, etisserant@246: { (subindex*)TestMaster_Index2009,sizeof(TestMaster_Index2009)/sizeof(TestMaster_Index2009[0]), 0x2009}, etisserant@246: { (subindex*)TestMaster_Index200A,sizeof(TestMaster_Index200A)/sizeof(TestMaster_Index200A[0]), 0x200A}, etisserant@246: { (subindex*)TestMaster_Index200B,sizeof(TestMaster_Index200B)/sizeof(TestMaster_Index200B[0]), 0x200B}, etisserant@246: { (subindex*)TestMaster_Index200C,sizeof(TestMaster_Index200C)/sizeof(TestMaster_Index200C[0]), 0x200C}, etisserant@246: { (subindex*)TestMaster_Index200F,sizeof(TestMaster_Index200F)/sizeof(TestMaster_Index200F[0]), 0x200F}, etisserant@246: { (subindex*)TestMaster_Index2010,sizeof(TestMaster_Index2010)/sizeof(TestMaster_Index2010[0]), 0x2010}, etisserant@246: { (subindex*)TestMaster_Index2011,sizeof(TestMaster_Index2011)/sizeof(TestMaster_Index2011[0]), 0x2011}, etisserant@246: { (subindex*)TestMaster_Index2012,sizeof(TestMaster_Index2012)/sizeof(TestMaster_Index2012[0]), 0x2012}, etisserant@246: { (subindex*)TestMaster_Index2013,sizeof(TestMaster_Index2013)/sizeof(TestMaster_Index2013[0]), 0x2013}, etisserant@246: { (subindex*)TestMaster_Index2014,sizeof(TestMaster_Index2014)/sizeof(TestMaster_Index2014[0]), 0x2014}, etisserant@246: { (subindex*)TestMaster_Index2015,sizeof(TestMaster_Index2015)/sizeof(TestMaster_Index2015[0]), 0x2015}, etisserant@246: { (subindex*)TestMaster_Index2016,sizeof(TestMaster_Index2016)/sizeof(TestMaster_Index2016[0]), 0x2016}, etisserant@246: }; etisserant@246: etisserant@246: const indextable * TestMaster_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 0x1005: i = 2;*callbacks = TestMaster_Index1005_callbacks; break; etisserant@246: case 0x1006: i = 3;*callbacks = TestMaster_Index1006_callbacks; break; etisserant@246: case 0x1016: i = 4;break; etisserant@246: case 0x1018: i = 5;break; etisserant@246: case 0x1280: i = 6;break; etisserant@246: case 0x1400: i = 7;break; etisserant@246: case 0x1401: i = 8;break; etisserant@246: case 0x1402: i = 9;break; etisserant@246: case 0x1600: i = 10;break; etisserant@246: case 0x1601: i = 11;break; etisserant@246: case 0x1602: i = 12;break; etisserant@294: case 0x1800: i = 13;*callbacks = TestMaster_Index1800_callbacks; break; etisserant@294: case 0x1801: i = 14;*callbacks = TestMaster_Index1801_callbacks; break; etisserant@246: case 0x1A00: i = 15;break; etisserant@246: case 0x1A01: i = 16;break; etisserant@246: case 0x2000: i = 17;break; etisserant@246: case 0x2001: i = 18;break; etisserant@246: case 0x2002: i = 19;break; etisserant@246: case 0x2003: i = 20;break; etisserant@246: case 0x2004: i = 21;break; etisserant@246: case 0x2005: i = 22;break; etisserant@246: case 0x2006: i = 23;break; etisserant@246: case 0x2007: i = 24;break; etisserant@246: case 0x2008: i = 25;break; etisserant@246: case 0x2009: i = 26;break; etisserant@246: case 0x200A: i = 27;break; etisserant@246: case 0x200B: i = 28;break; etisserant@246: case 0x200C: i = 29;break; etisserant@246: case 0x200F: i = 30;break; etisserant@246: case 0x2010: i = 31;break; etisserant@246: case 0x2011: i = 32;break; etisserant@246: case 0x2012: i = 33;break; etisserant@246: case 0x2013: i = 34;break; etisserant@246: case 0x2014: i = 35;break; etisserant@246: case 0x2015: i = 36;break; etisserant@246: case 0x2016: 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 &TestMaster_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@246: s_PDO_status TestMaster_PDO_status[2] = {s_PDO_staus_Initializer,s_PDO_staus_Initializer}; etisserant@246: etisserant@246: quick_index TestMaster_firstIndex = { etisserant@246: 0, /* SDO_SVR */ etisserant@246: 6, /* SDO_CLT */ etisserant@246: 7, /* PDO_RCV */ etisserant@246: 10, /* PDO_RCV_MAP */ etisserant@246: 13, /* PDO_TRS */ etisserant@246: 15 /* PDO_TRS_MAP */ etisserant@246: }; etisserant@246: etisserant@246: quick_index TestMaster_lastIndex = { etisserant@246: 0, /* SDO_SVR */ etisserant@246: 6, /* SDO_CLT */ etisserant@246: 9, /* PDO_RCV */ etisserant@246: 12, /* PDO_RCV_MAP */ etisserant@246: 14, /* PDO_TRS */ etisserant@246: 16 /* PDO_TRS_MAP */ etisserant@246: }; etisserant@246: etisserant@246: UNS16 TestMaster_ObjdictSize = sizeof(TestMaster_objdict)/sizeof(TestMaster_objdict[0]); etisserant@246: etisserant@246: CO_Data TestMaster_Data = CANOPEN_NODE_DATA_INITIALIZER(TestMaster); etisserant@246: