etisserant@145: etisserant@145: /* File generated by gen_cfile.py. Should not be modified. */ etisserant@145: etisserant@145: #include "win32test.h" etisserant@145: etisserant@145: /**************************************************************************/ etisserant@145: /* Declaration of the mapped variables */ etisserant@145: /**************************************************************************/ etisserant@145: etisserant@145: /**************************************************************************/ etisserant@145: /* Declaration of the value range types */ etisserant@145: /**************************************************************************/ etisserant@145: etisserant@145: UNS32 win32test_valueRangeTest (UNS8 typeValue, void * value) etisserant@145: { etisserant@145: switch (typeValue) { etisserant@145: } etisserant@145: return 0; etisserant@145: } etisserant@145: etisserant@145: /**************************************************************************/ etisserant@145: /* The node id */ etisserant@145: /**************************************************************************/ etisserant@145: /* node_id default value.*/ etisserant@145: UNS8 win32test_bDeviceNodeId = 0x01; etisserant@145: etisserant@145: /**************************************************************************/ etisserant@145: /* Array of message processing information */ etisserant@145: etisserant@145: const UNS8 win32test_iam_a_slave = 0; etisserant@145: etisserant@145: TIMER_HANDLE win32test_heartBeatTimers[1]; etisserant@145: etisserant@145: /* etisserant@145: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ etisserant@145: etisserant@145: OBJECT DICTIONARY etisserant@145: etisserant@145: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ etisserant@145: */ etisserant@145: etisserant@145: /* index 0x1000 : Device Type. */ etisserant@145: UNS32 win32test_obj1000 = 0x12D; /* 301 */ etisserant@145: subindex win32test_Index1000[] = etisserant@145: { etisserant@145: { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1000 } etisserant@145: }; etisserant@145: etisserant@145: /* index 0x1001 : Error Register. */ etisserant@145: UNS8 win32test_obj1001 = 0x0; /* 0 */ etisserant@145: subindex win32test_Index1001[] = etisserant@145: { etisserant@145: { RO, uint8, sizeof (UNS8), (void*)&win32test_obj1001 } etisserant@145: }; etisserant@145: etisserant@145: /* index 0x1005 : SYNC COB ID. */ etisserant@145: UNS32 win32test_obj1005 = 0x0; /* 0 */ etisserant@145: ODCallback_t win32test_Index1005_callbacks[] = etisserant@145: { etisserant@145: NULL, etisserant@145: }; etisserant@145: subindex win32test_Index1005[] = etisserant@145: { etisserant@145: { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1005 } etisserant@145: }; etisserant@145: etisserant@145: /* index 0x1006 : Communication / Cycle Period */ etisserant@145: UNS32 win32test_obj1006 = 0x0; /* 0 */ etisserant@145: etisserant@145: /* index 0x1016 : Consumer Heartbeat Time */ etisserant@145: UNS8 win32test_highestSubIndex_obj1016 = 0; etisserant@145: UNS32 win32test_obj1016[]={0}; etisserant@145: etisserant@145: /* index 0x1017 : Producer Heartbeat Time */ etisserant@145: UNS16 win32test_obj1017 = 0x0; /* 0 */ etisserant@145: etisserant@145: /* index 0x1018 : Identity. */ etisserant@145: UNS8 win32test_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ etisserant@145: UNS32 win32test_obj1018_Vendor_ID = 0x0; /* 0 */ etisserant@145: UNS32 win32test_obj1018_Product_Code = 0x0; /* 0 */ etisserant@145: UNS32 win32test_obj1018_Revision_Number = 0x0; /* 0 */ etisserant@145: UNS32 win32test_obj1018_Serial_Number = 0x0; /* 0 */ etisserant@145: subindex win32test_Index1018[] = etisserant@145: { etisserant@145: { RO, uint8, sizeof (UNS8), (void*)&win32test_highestSubIndex_obj1018 }, etisserant@145: { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Vendor_ID }, etisserant@145: { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Product_Code }, etisserant@145: { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Revision_Number }, etisserant@145: { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Serial_Number } etisserant@145: }; etisserant@145: etisserant@145: /* index 0x1280 : Client SDO 1 Parameter. */ etisserant@145: UNS8 win32test_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ etisserant@145: UNS32 win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x0; /* 0 */ etisserant@145: UNS32 win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x0; /* 0 */ leonid@255: INTEGER32 win32test_obj1280_Node_ID_of_the_SDO_Server = 0x0; /* 0 */ etisserant@145: subindex win32test_Index1280[] = etisserant@145: { etisserant@145: { RO, uint8, sizeof (UNS8), (void*)&win32test_highestSubIndex_obj1280 }, etisserant@145: { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, etisserant@145: { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO }, leonid@255: { RW, int32, sizeof (INTEGER32), (void*)&win32test_obj1280_Node_ID_of_the_SDO_Server } etisserant@145: }; etisserant@145: etisserant@145: const indextable win32test_objdict[] = etisserant@145: { etisserant@145: { (subindex*)win32test_Index1000,sizeof(win32test_Index1000)/sizeof(win32test_Index1000[0]), 0x1000}, etisserant@145: { (subindex*)win32test_Index1001,sizeof(win32test_Index1001)/sizeof(win32test_Index1001[0]), 0x1001}, etisserant@145: { (subindex*)win32test_Index1005,sizeof(win32test_Index1005)/sizeof(win32test_Index1005[0]), 0x1005}, etisserant@145: { (subindex*)win32test_Index1018,sizeof(win32test_Index1018)/sizeof(win32test_Index1018[0]), 0x1018}, etisserant@145: { (subindex*)win32test_Index1280,sizeof(win32test_Index1280)/sizeof(win32test_Index1280[0]), 0x1280}, etisserant@145: }; etisserant@145: etisserant@145: const indextable * win32test_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) etisserant@145: { etisserant@145: int i; etisserant@145: *callbacks = NULL; etisserant@145: switch(wIndex){ etisserant@145: case 0x1000: i = 0;break; etisserant@145: case 0x1001: i = 1;break; etisserant@145: case 0x1005: i = 2;*callbacks = win32test_Index1005_callbacks; break; etisserant@145: case 0x1018: i = 3;break; etisserant@145: case 0x1280: i = 4;break; etisserant@145: default: etisserant@145: *errorCode = OD_NO_SUCH_OBJECT; etisserant@145: return NULL; etisserant@145: } etisserant@145: *errorCode = OD_SUCCESSFUL; etisserant@145: return &win32test_objdict[i]; etisserant@145: } etisserant@145: leonid@255: /* leonid@255: * To count at which received SYNC a PDO must be sent. etisserant@145: * Even if no pdoTransmit are defined, at least one entry is computed etisserant@145: * for compilations issues. etisserant@145: */ leonid@255: s_PDO_status win32test_PDO_status[1] = {s_PDO_staus_Initializer}; etisserant@145: etisserant@145: quick_index win32test_firstIndex = { etisserant@145: 0, /* SDO_SVR */ etisserant@145: 4, /* SDO_CLT */ etisserant@145: 0, /* PDO_RCV */ etisserant@145: 0, /* PDO_RCV_MAP */ etisserant@145: 0, /* PDO_TRS */ etisserant@145: 0 /* PDO_TRS_MAP */ etisserant@145: }; etisserant@145: etisserant@145: quick_index win32test_lastIndex = { etisserant@145: 0, /* SDO_SVR */ etisserant@145: 4, /* SDO_CLT */ etisserant@145: 0, /* PDO_RCV */ etisserant@145: 0, /* PDO_RCV_MAP */ etisserant@145: 0, /* PDO_TRS */ etisserant@145: 0 /* PDO_TRS_MAP */ etisserant@145: }; etisserant@145: etisserant@145: UNS16 win32test_ObjdictSize = sizeof(win32test_objdict)/sizeof(win32test_objdict[0]); etisserant@145: etisserant@145: CO_Data win32test_Data = CANOPEN_NODE_DATA_INITIALIZER(win32test); etisserant@145: