typedef uint8_t(* EC_API_SLV_CBObjWrite_t) (void *pContext, uint16_t index, uint8_t subindex, uint32_t length, uint16_t *pData, uint8_t completeAccess) |
Callback trigered by a SDO Download operation.
The function is called when the EtherCAT Master sends a object write request. If no callback function is registered then the value pointed to by pData
is directly written to the object entry. If a callback function is registered it is the reponsability of the callback function to copy the value pointed to by pData
to object entry.
[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 | Write all subIndexes of the object. |