typedef uint8_t(* EC_API_SLV_CBObjRead_t) (void *pContext_p, uint16_t index_p, uint8_t subindex_p, uint32_t length_p, uint16_t *pData_p, uint8_t completeAccess_p) |
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_p | function context |
[in] | index_p | Index of the requested object. |
[in] | subindex_p | SubIndex of the requested object. |
[in] | length_p | Length of the received data buffer. |
[in] | pData_p | Pointer to the data buffer. |
[in] | completeAccess_p | Read all subIndexes of the object. |