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

◆ EC_API_SLV_EoE_cbRegisterReceiveHandler()

uint32_t EC_API_SLV_EoE_cbRegisterReceiveHandler ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_EoE_CBReceiveHandler_t  cbFunc,
void *  pContext 
)

This is the function to register EoE receive handlers.

This function registers a function pointer which must be implemented by the user. The user defined function will be called any time an EoE frame is received.

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the EoE Receive Handler
[in]pContextEoE receiveHandler call context
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_EoE_cbRegisterReceiveHandler(ecSlaveApi, cbFunc, pCtxt);
uint32_t EC_API_SLV_EoE_cbRegisterReceiveHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_EoE_CBReceiveHandler_t cbFunc, void *pContext)
This is the function to register EoE receive handlers.
Definition ecSlvApi_EoE.c:50