lbessard@281: lbessard@281: /* File generated by gen_cfile.py. Should not be modified. */ lbessard@281: lbessard@281: #include "example_objdict.h" etisserant@0: etisserant@0: /**************************************************************************/ laurent@623: /* Declaration of mapped variables */ etisserant@0: /**************************************************************************/ lbessard@281: UNS8 Time_seconds = 0x0; /* Mapped at index 0x2000, subindex 0x01 */ lbessard@281: UNS8 Time_minutes = 0x0; /* Mapped at index 0x2000, subindex 0x02 */ lbessard@281: UNS8 Time_hours = 0x0; /* Mapped at index 0x2000, subindex 0x03 */ lbessard@281: UNS8 Time_days = 0x0; /* Mapped at index 0x2000, subindex 0x04 */ lbessard@281: UNS32 canopenErrNB = 0x0; /* Mapped at index 0x2001, subindex 0x00 */ lbessard@281: UNS32 canopenErrVal = 0x0; /* Mapped at index 0x2002, subindex 0x00 */ laurent@623: INTEGER8 strTest[10] = ""; /* Mapped at index 0x2003, subindex 0x00 */ laurent@623: laurent@623: /**************************************************************************/ laurent@623: /* Declaration of value range types */ laurent@623: /**************************************************************************/ laurent@623: laurent@623: #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ lbessard@281: UNS32 Linux_slave_valueRangeTest (UNS8 typeValue, void * value) etisserant@0: { etisserant@0: switch (typeValue) { laurent@623: case valueRange_EMC: laurent@623: if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED; laurent@623: break; etisserant@0: } etisserant@0: return 0; etisserant@0: } etisserant@0: etisserant@0: /**************************************************************************/ etisserant@0: /* The node id */ etisserant@0: /**************************************************************************/ lbessard@281: /* node_id default value.*/ lbessard@281: UNS8 Linux_slave_bDeviceNodeId = 0x00; lbessard@281: lbessard@281: /**************************************************************************/ lbessard@281: /* Array of message processing information */ lbessard@281: lbessard@281: const UNS8 Linux_slave_iam_a_slave = 1; lbessard@281: laurent@623: TIMER_HANDLE Linux_slave_heartBeatTimers[1] = {TIMER_NONE}; lbessard@281: lbessard@281: /* lbessard@281: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ lbessard@281: lbessard@281: OBJECT DICTIONARY lbessard@281: lbessard@281: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ etisserant@0: */ lbessard@281: lbessard@281: /* index 0x1000 : Device Type. */ lbessard@281: UNS32 Linux_slave_obj1000 = 0x0; /* 0 */ lbessard@281: subindex Linux_slave_Index1000[] = lbessard@281: { lbessard@281: { RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1000 } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1001 : Error Register. */ lbessard@281: UNS8 Linux_slave_obj1001 = 0x0; /* 0 */ lbessard@281: subindex Linux_slave_Index1001[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1001 } lbessard@281: }; lbessard@281: laurent@623: /* index 0x1003 : Pre-defined Error Field */ laurent@623: UNS8 Linux_slave_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/ laurent@623: UNS32 Linux_slave_obj1003[] = laurent@623: { laurent@623: 0x0 /* 0 */ laurent@623: }; laurent@623: ODCallback_t Linux_slave_Index1003_callbacks[] = laurent@623: { laurent@623: NULL, laurent@623: NULL, laurent@623: }; laurent@623: subindex Linux_slave_Index1003[] = laurent@623: { laurent@623: { RW, valueRange_EMC, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1003 }, laurent@623: { RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1003[0] } laurent@623: }; laurent@623: lbessard@281: /* index 0x1005 : SYNC COB ID */ lbessard@281: UNS32 Linux_slave_obj1005 = 0x0; /* 0 */ lbessard@281: lbessard@281: /* index 0x1006 : Communication / Cycle Period */ lbessard@281: UNS32 Linux_slave_obj1006 = 0x0; /* 0 */ lbessard@281: lbessard@281: /* index 0x1008 : Manufacturer Device Name. */ laurent@623: INTEGER8 Linux_slave_obj1008[16] = "Appli_Slave_HC12"; lbessard@281: subindex Linux_slave_Index1008[] = lbessard@281: { lbessard@281: { RO, visible_string, 16, (void*)&Linux_slave_obj1008 } lbessard@281: }; lbessard@281: laurent@623: /* index 0x1014 : Emergency COB ID */ laurent@623: UNS32 Linux_slave_obj1014 = 0x80 + 0x00; /* 128 + NodeID */ laurent@623: lbessard@281: /* index 0x1016 : Consumer Heartbeat Time. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1016[] = lbessard@281: { lbessard@281: 0x0 /* 0 */ lbessard@281: }; etisserant@0: subindex Linux_slave_Index1016[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1016 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1016[0] } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1017 : Producer Heartbeat Time */ lbessard@281: UNS16 Linux_slave_obj1017 = 0x0; /* 0 */ lbessard@281: lbessard@281: /* index 0x1018 : Identity. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1018_Vendor_ID = 0x0; /* 0 */ lbessard@281: UNS32 Linux_slave_obj1018_Product_Code = 0x0; /* 0 */ lbessard@281: UNS32 Linux_slave_obj1018_Revision_Number = 0x0; /* 0 */ lbessard@281: UNS32 Linux_slave_obj1018_Serial_Number = 0x0; /* 0 */ lbessard@281: subindex Linux_slave_Index1018[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1018 }, lbessard@281: { RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1018_Vendor_ID }, lbessard@281: { RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1018_Product_Code }, lbessard@281: { RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1018_Revision_Number }, lbessard@281: { RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1018_Serial_Number } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1280 : Client SDO 1 Parameter. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x0; /* 0 */ lbessard@281: UNS32 Linux_slave_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x0; /* 0 */ lbessard@281: UNS8 Linux_slave_obj1280_Node_ID_of_the_SDO_Server = 0x0; /* 0 */ etisserant@0: subindex Linux_slave_Index1280[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1280 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1280_COB_ID_Server_to_Client_Receive_SDO }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1280_Node_ID_of_the_SDO_Server } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1400 : Receive PDO 1 Parameter. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1400_COB_ID_used_by_PDO = 0x200; /* 512 */ lbessard@281: UNS8 Linux_slave_obj1400_Transmission_Type = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1400_Inhibit_Time = 0x0; /* 0 */ lbessard@281: UNS8 Linux_slave_obj1400_Compatibility_Entry = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1400_Event_Timer = 0x0; /* 0 */ etisserant@0: subindex Linux_slave_Index1400[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1400 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1400_COB_ID_used_by_PDO }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1400_Transmission_Type }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1400_Inhibit_Time }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1400_Compatibility_Entry }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1400_Event_Timer } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1401 : Receive PDO 2 Parameter. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1401 = 5; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1401_COB_ID_used_by_PDO = 0x300; /* 768 */ lbessard@281: UNS8 Linux_slave_obj1401_Transmission_Type = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1401_Inhibit_Time = 0x0; /* 0 */ lbessard@281: UNS8 Linux_slave_obj1401_Compatibility_Entry = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1401_Event_Timer = 0x0; /* 0 */ etisserant@0: subindex Linux_slave_Index1401[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1401 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1401_COB_ID_used_by_PDO }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1401_Transmission_Type }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1401_Inhibit_Time }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1401_Compatibility_Entry }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1401_Event_Timer } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1402 : Receive PDO 3 Parameter. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1402 = 5; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1402_COB_ID_used_by_PDO = 0x400; /* 1024 */ lbessard@281: UNS8 Linux_slave_obj1402_Transmission_Type = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1402_Inhibit_Time = 0x0; /* 0 */ lbessard@281: UNS8 Linux_slave_obj1402_Compatibility_Entry = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1402_Event_Timer = 0x0; /* 0 */ etisserant@0: subindex Linux_slave_Index1402[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1402 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1402_COB_ID_used_by_PDO }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1402_Transmission_Type }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1402_Inhibit_Time }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1402_Compatibility_Entry }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1402_Event_Timer } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1403 : Receive PDO 4 Parameter. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1403 = 5; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1403_COB_ID_used_by_PDO = 0x500; /* 1280 */ lbessard@281: UNS8 Linux_slave_obj1403_Transmission_Type = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1403_Inhibit_Time = 0x0; /* 0 */ lbessard@281: UNS8 Linux_slave_obj1403_Compatibility_Entry = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1403_Event_Timer = 0x0; /* 0 */ lbessard@281: subindex Linux_slave_Index1403[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1403 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1403_COB_ID_used_by_PDO }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1403_Transmission_Type }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1403_Inhibit_Time }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1403_Compatibility_Entry }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1403_Event_Timer } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1600 : Receive PDO 1 Mapping. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1600 = 1; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1600[] = lbessard@281: { lbessard@281: 0x0 /* 0 */ lbessard@281: }; etisserant@0: subindex Linux_slave_Index1600[] = lbessard@281: { lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1600 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1600[0] } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1601 : Receive PDO 2 Mapping. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1601 = 1; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1601[] = lbessard@281: { lbessard@281: 0x0 /* 0 */ lbessard@281: }; etisserant@0: subindex Linux_slave_Index1601[] = lbessard@281: { lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1601 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1601[0] } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1602 : Receive PDO 3 Mapping. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1602 = 1; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1602[] = lbessard@281: { lbessard@281: 0x0 /* 0 */ lbessard@281: }; etisserant@0: subindex Linux_slave_Index1602[] = lbessard@281: { lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1602 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1602[0] } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1603 : Receive PDO 4 Mapping. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1603 = 1; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1603[] = lbessard@281: { lbessard@281: 0x0 /* 0 */ lbessard@281: }; lbessard@281: subindex Linux_slave_Index1603[] = lbessard@281: { lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1603 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1603[0] } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1800 : Transmit PDO 1 Parameter. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1800_COB_ID_used_by_PDO = 0x180; /* 384 */ lbessard@281: UNS8 Linux_slave_obj1800_Transmission_Type = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1800_Inhibit_Time = 0x0; /* 0 */ lbessard@281: UNS8 Linux_slave_obj1800_Compatibility_Entry = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1800_Event_Timer = 0x0; /* 0 */ lbessard@281: ODCallback_t Linux_slave_Index1800_callbacks[] = lbessard@281: { lbessard@281: NULL, lbessard@281: NULL, lbessard@281: NULL, lbessard@281: NULL, lbessard@281: NULL, lbessard@281: NULL, lbessard@281: }; etisserant@0: subindex Linux_slave_Index1800[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1800 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1800_COB_ID_used_by_PDO }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1800_Transmission_Type }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1800_Inhibit_Time }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1800_Compatibility_Entry }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1800_Event_Timer } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1801 : Transmit PDO 2 Parameter. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1801_COB_ID_used_by_PDO = 0x280; /* 640 */ lbessard@281: UNS8 Linux_slave_obj1801_Transmission_Type = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1801_Inhibit_Time = 0x0; /* 0 */ lbessard@281: UNS8 Linux_slave_obj1801_Compatibility_Entry = 0x0; /* 0 */ lbessard@281: UNS16 Linux_slave_obj1801_Event_Timer = 0x0; /* 0 */ lbessard@281: ODCallback_t Linux_slave_Index1801_callbacks[] = lbessard@281: { lbessard@281: NULL, lbessard@281: NULL, lbessard@281: NULL, lbessard@281: NULL, lbessard@281: NULL, lbessard@281: NULL, lbessard@281: }; etisserant@0: subindex Linux_slave_Index1801[] = lbessard@281: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1801 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1801_COB_ID_used_by_PDO }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1801_Transmission_Type }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1801_Inhibit_Time }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1801_Compatibility_Entry }, lbessard@281: { RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1801_Event_Timer } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1A00 : Transmit PDO 1 Mapping. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1A00[] = lbessard@281: { lbessard@281: 0x0 /* 0 */ lbessard@281: }; etisserant@0: subindex Linux_slave_Index1A00[] = lbessard@281: { lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1A00 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1A00[0] } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x1A01 : Transmit PDO 2 Mapping. */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj1A01 = 1; /* number of subindex - 1*/ lbessard@281: UNS32 Linux_slave_obj1A01[] = lbessard@281: { lbessard@281: 0x0 /* 0 */ lbessard@281: }; etisserant@0: subindex Linux_slave_Index1A01[] = lbessard@281: { lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1A01 }, lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1A01[0] } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x2000 : Mapped variable Time */ lbessard@281: UNS8 Linux_slave_highestSubIndex_obj2000 = 4; /* number of subindex - 1*/ etisserant@0: subindex Linux_slave_Index2000[] = etisserant@0: { lbessard@281: { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj2000 }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Time_seconds }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Time_minutes }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Time_hours }, lbessard@281: { RW, uint8, sizeof (UNS8), (void*)&Time_days } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x2001 : Mapped variable canopenErrNB */ lbessard@281: subindex Linux_slave_Index2001[] = etisserant@0: { etisserant@0: { RW, uint32, sizeof (UNS32), (void*)&canopenErrNB } etisserant@0: }; etisserant@0: lbessard@281: /* index 0x2002 : Mapped variable canopenErrVal */ lbessard@281: subindex Linux_slave_Index2002[] = lbessard@281: { lbessard@281: { RW, uint32, sizeof (UNS32), (void*)&canopenErrVal } lbessard@281: }; lbessard@281: lbessard@281: /* index 0x2003 : Mapped variable strTest */ lbessard@281: subindex Linux_slave_Index2003[] = lbessard@281: { laurent@623: { RW, visible_string, 10, (void*)&strTest } laurent@623: }; laurent@623: laurent@623: /**************************************************************************/ laurent@623: /* Declaration of pointed variables */ laurent@623: /**************************************************************************/ etisserant@0: etisserant@0: const indextable Linux_slave_objdict[] = etisserant@0: { lbessard@281: { (subindex*)Linux_slave_Index1000,sizeof(Linux_slave_Index1000)/sizeof(Linux_slave_Index1000[0]), 0x1000}, lbessard@281: { (subindex*)Linux_slave_Index1001,sizeof(Linux_slave_Index1001)/sizeof(Linux_slave_Index1001[0]), 0x1001}, lbessard@281: { (subindex*)Linux_slave_Index1008,sizeof(Linux_slave_Index1008)/sizeof(Linux_slave_Index1008[0]), 0x1008}, lbessard@281: { (subindex*)Linux_slave_Index1016,sizeof(Linux_slave_Index1016)/sizeof(Linux_slave_Index1016[0]), 0x1016}, lbessard@281: { (subindex*)Linux_slave_Index1018,sizeof(Linux_slave_Index1018)/sizeof(Linux_slave_Index1018[0]), 0x1018}, lbessard@281: { (subindex*)Linux_slave_Index1280,sizeof(Linux_slave_Index1280)/sizeof(Linux_slave_Index1280[0]), 0x1280}, lbessard@281: { (subindex*)Linux_slave_Index1400,sizeof(Linux_slave_Index1400)/sizeof(Linux_slave_Index1400[0]), 0x1400}, lbessard@281: { (subindex*)Linux_slave_Index1401,sizeof(Linux_slave_Index1401)/sizeof(Linux_slave_Index1401[0]), 0x1401}, lbessard@281: { (subindex*)Linux_slave_Index1402,sizeof(Linux_slave_Index1402)/sizeof(Linux_slave_Index1402[0]), 0x1402}, lbessard@281: { (subindex*)Linux_slave_Index1403,sizeof(Linux_slave_Index1403)/sizeof(Linux_slave_Index1403[0]), 0x1403}, lbessard@281: { (subindex*)Linux_slave_Index1600,sizeof(Linux_slave_Index1600)/sizeof(Linux_slave_Index1600[0]), 0x1600}, lbessard@281: { (subindex*)Linux_slave_Index1601,sizeof(Linux_slave_Index1601)/sizeof(Linux_slave_Index1601[0]), 0x1601}, lbessard@281: { (subindex*)Linux_slave_Index1602,sizeof(Linux_slave_Index1602)/sizeof(Linux_slave_Index1602[0]), 0x1602}, lbessard@281: { (subindex*)Linux_slave_Index1603,sizeof(Linux_slave_Index1603)/sizeof(Linux_slave_Index1603[0]), 0x1603}, lbessard@281: { (subindex*)Linux_slave_Index1800,sizeof(Linux_slave_Index1800)/sizeof(Linux_slave_Index1800[0]), 0x1800}, lbessard@281: { (subindex*)Linux_slave_Index1801,sizeof(Linux_slave_Index1801)/sizeof(Linux_slave_Index1801[0]), 0x1801}, lbessard@281: { (subindex*)Linux_slave_Index1A00,sizeof(Linux_slave_Index1A00)/sizeof(Linux_slave_Index1A00[0]), 0x1A00}, lbessard@281: { (subindex*)Linux_slave_Index1A01,sizeof(Linux_slave_Index1A01)/sizeof(Linux_slave_Index1A01[0]), 0x1A01}, lbessard@281: { (subindex*)Linux_slave_Index2000,sizeof(Linux_slave_Index2000)/sizeof(Linux_slave_Index2000[0]), 0x2000}, lbessard@281: { (subindex*)Linux_slave_Index2001,sizeof(Linux_slave_Index2001)/sizeof(Linux_slave_Index2001[0]), 0x2001}, lbessard@281: { (subindex*)Linux_slave_Index2002,sizeof(Linux_slave_Index2002)/sizeof(Linux_slave_Index2002[0]), 0x2002}, lbessard@281: { (subindex*)Linux_slave_Index2003,sizeof(Linux_slave_Index2003)/sizeof(Linux_slave_Index2003[0]), 0x2003}, etisserant@0: }; etisserant@0: lbessard@281: const indextable * Linux_slave_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) lbessard@281: { lbessard@281: int i; lbessard@281: *callbacks = NULL; lbessard@281: switch(wIndex){ lbessard@281: case 0x1000: i = 0;break; lbessard@281: case 0x1001: i = 1;break; lbessard@281: case 0x1008: i = 2;break; lbessard@281: case 0x1016: i = 3;break; lbessard@281: case 0x1018: i = 4;break; lbessard@281: case 0x1280: i = 5;break; lbessard@281: case 0x1400: i = 6;break; lbessard@281: case 0x1401: i = 7;break; lbessard@281: case 0x1402: i = 8;break; lbessard@281: case 0x1403: i = 9;break; lbessard@281: case 0x1600: i = 10;break; lbessard@281: case 0x1601: i = 11;break; lbessard@281: case 0x1602: i = 12;break; lbessard@281: case 0x1603: i = 13;break; lbessard@281: case 0x1800: i = 14;*callbacks = Linux_slave_Index1800_callbacks; break; lbessard@281: case 0x1801: i = 15;*callbacks = Linux_slave_Index1801_callbacks; break; lbessard@281: case 0x1A00: i = 16;break; lbessard@281: case 0x1A01: i = 17;break; lbessard@281: case 0x2000: i = 18;break; lbessard@281: case 0x2001: i = 19;break; lbessard@281: case 0x2002: i = 20;break; lbessard@281: case 0x2003: i = 21;break; lbessard@281: default: lbessard@281: *errorCode = OD_NO_SUCH_OBJECT; lbessard@281: return NULL; lbessard@281: } lbessard@281: *errorCode = OD_SUCCESSFUL; lbessard@281: return &Linux_slave_objdict[i]; lbessard@281: } lbessard@281: lbessard@281: /* lbessard@281: * To count at which received SYNC a PDO must be sent. lbessard@281: * Even if no pdoTransmit are defined, at least one entry is computed lbessard@281: * for compilations issues. lbessard@281: */ greg@369: s_PDO_status Linux_slave_PDO_status[2] = {s_PDO_status_Initializer,s_PDO_status_Initializer}; etisserant@0: laurent@623: const quick_index Linux_slave_firstIndex = { lbessard@281: 0, /* SDO_SVR */ lbessard@281: 5, /* SDO_CLT */ lbessard@281: 6, /* PDO_RCV */ lbessard@281: 10, /* PDO_RCV_MAP */ lbessard@281: 14, /* PDO_TRS */ lbessard@281: 16 /* PDO_TRS_MAP */ lbessard@281: }; lbessard@281: laurent@623: const quick_index Linux_slave_lastIndex = { lbessard@281: 0, /* SDO_SVR */ lbessard@281: 5, /* SDO_CLT */ lbessard@281: 9, /* PDO_RCV */ lbessard@281: 13, /* PDO_RCV_MAP */ lbessard@281: 15, /* PDO_TRS */ lbessard@281: 17 /* PDO_TRS_MAP */ lbessard@281: }; etisserant@0: laurent@623: const UNS16 Linux_slave_ObjdictSize = sizeof(Linux_slave_objdict)/sizeof(Linux_slave_objdict[0]); etisserant@0: lbessard@281: CO_Data Linux_slave_Data = CANOPEN_NODE_DATA_INITIALIZER(Linux_slave); lbessard@281: