91 |
91 |
92 /* index 0x1280 : Client SDO 1 Parameter. */ |
92 /* index 0x1280 : Client SDO 1 Parameter. */ |
93 UNS8 win32test_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ |
93 UNS8 win32test_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ |
94 UNS32 win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x0; /* 0 */ |
94 UNS32 win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x0; /* 0 */ |
95 UNS32 win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x0; /* 0 */ |
95 UNS32 win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x0; /* 0 */ |
96 UNS32 win32test_obj1280_Node_ID_of_the_SDO_Server = 0x0; /* 0 */ |
96 INTEGER32 win32test_obj1280_Node_ID_of_the_SDO_Server = 0x0; /* 0 */ |
97 subindex win32test_Index1280[] = |
97 subindex win32test_Index1280[] = |
98 { |
98 { |
99 { RO, uint8, sizeof (UNS8), (void*)&win32test_highestSubIndex_obj1280 }, |
99 { RO, uint8, sizeof (UNS8), (void*)&win32test_highestSubIndex_obj1280 }, |
100 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, |
100 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, |
101 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO }, |
101 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO }, |
102 { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_Node_ID_of_the_SDO_Server } |
102 { RW, int32, sizeof (INTEGER32), (void*)&win32test_obj1280_Node_ID_of_the_SDO_Server } |
103 }; |
103 }; |
104 |
104 |
105 const indextable win32test_objdict[] = |
105 const indextable win32test_objdict[] = |
106 { |
106 { |
107 { (subindex*)win32test_Index1000,sizeof(win32test_Index1000)/sizeof(win32test_Index1000[0]), 0x1000}, |
107 { (subindex*)win32test_Index1000,sizeof(win32test_Index1000)/sizeof(win32test_Index1000[0]), 0x1000}, |
127 } |
127 } |
128 *errorCode = OD_SUCCESSFUL; |
128 *errorCode = OD_SUCCESSFUL; |
129 return &win32test_objdict[i]; |
129 return &win32test_objdict[i]; |
130 } |
130 } |
131 |
131 |
132 /* To count at which received SYNC a PDO must be sent. |
132 /* |
|
133 * To count at which received SYNC a PDO must be sent. |
133 * Even if no pdoTransmit are defined, at least one entry is computed |
134 * Even if no pdoTransmit are defined, at least one entry is computed |
134 * for compilations issues. |
135 * for compilations issues. |
135 */ |
136 */ |
136 UNS8 win32test_count_sync[1] = {0,}; |
137 s_PDO_status win32test_PDO_status[1] = {s_PDO_staus_Initializer}; |
137 |
138 |
138 quick_index win32test_firstIndex = { |
139 quick_index win32test_firstIndex = { |
139 0, /* SDO_SVR */ |
140 0, /* SDO_SVR */ |
140 4, /* SDO_CLT */ |
141 4, /* SDO_CLT */ |
141 0, /* PDO_RCV */ |
142 0, /* PDO_RCV */ |