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

◆ EC_API_SLV_FoE_cbRegisterStopBLHandler()

uint32_t EC_API_SLV_FoE_cbRegisterStopBLHandler ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_FoE_CBStopBLHandler_t  cbFunc,
void *  pContext 
)

This is the function to register FoE bootloader stop function.

This function registers a function pointer which must be implemented by the user. The user defined function will be called during the state transition from BOOTSTRAP to INIT mode.

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the FoE BL stop Handler
[in]pContextBLStopHandler call context
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_FoE_cbRegisterStopBLHandler(ecSlaveApi, cbFunc, pCtxt);
uint32_t EC_API_SLV_FoE_cbRegisterStopBLHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_FoE_CBStopBLHandler_t cbFunc, void *pContext)
This is the function to register FoE bootloader stop function.
Definition ecSlvApi_FoE.c:260