typedef uint8_t(* EC_API_SLV_CBObjRead_t) (void *pContext, uint16_t index, uint8_t subindex, uint32_t length, uint16_t *pData, uint8_t completeAccess) |
Callback trigered by a SDO Upload operation.
The function is called when the EtherCAT Master sends a object read request. If no callback function is registered then the value contained in the object is returned. If a callback function is registered it is the reponsability of the callback function to update the value pointed to by pData
. pData
is returned within the SDO Response datagram.
[in] | pContext | function context |
[in] | index | Index of the requested object. |
[in] | subindex | SubIndex of the requested object. |
[in] | length | Length of the received data buffer. |
[in] | pData | Pointer to the data buffer. |
[in] | completeAccess | Read all subIndexes of the object. |