EtherCAT SubDevice
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_FoE_cbRegisterFwUpdate()

uint32_t EC_API_SLV_FoE_cbRegisterFwUpdate ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_FoE_CBFwUpdateHandler_t  cbFunc,
void *  pContext 
)

This is the function to register FoE firmware update function.

This function registers a function pointer which must be implemented by the user. The user defined function will be called if a firmware update request is received from the master

Parameters
[in]pHndleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the Firmware Update Handler
[in]pContextfwUpdate call context
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_FoE_cbRegisterCloseFileHandler(ecSlaveApi, cbFunc, pCtxt);
uint32_t EC_API_SLV_FoE_cbRegisterCloseFileHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_FoE_CBCloseFileHandler_t cbFunc, void *pContext)
This is the function to register FoE close function.
Definition ecSlvApi_FoE.c:176