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

◆ EC_API_SLV_cbRegisterErrorHandler()

uint32_t EC_API_SLV_cbRegisterErrorHandler ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_CBStackError_t  cbFunc,
void *  pContext 
)

Register Error callback handler.

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncError function callback
[in]pContextcall context
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_cbRegisterErrorHandler(pHandle, cbFunc, pCtxt);
uint32_t EC_API_SLV_cbRegisterErrorHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_CBStackError_t cbFunc, void *pContext)
Register Error callback handler.
Definition ecSlvApi.c:2215