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

◆ EC_API_SLV_cbRegisterSystemReboot()

uint32_t EC_API_SLV_cbRegisterSystemReboot ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_CBSystemRebootHandler_t  cbFunc,
void *  pContext 
)

This is the function to register the Reboot function.

This function registers a function pointer which must be implemented by the user. The user defined function will be called after the firmware is correctly updated

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the Reboot function
[in]pContextsystemReboot call context
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_cbRegisterSystemReboot(ecSlaveApi, cbFunc, pCtxt);
uint32_t EC_API_SLV_cbRegisterSystemReboot(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_CBSystemRebootHandler_t cbFunc, void *pContext)
This is the function to register the Reboot function.
Definition ecSlvApi_FoE.c:342