EtherCAT Slave  1.06.01

◆ EC_API_SLV_EoE_cbRegisterReceiveHandler()

void EC_API_SLV_EoE_cbRegisterReceiveHandler ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
void *  pContext_p,
EC_API_SLV_EoE_CBReceiveHandler_t  cbFunc_p 
)

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]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]pContext_pEoE receive handler call contxt
[in]cbFunc_pFunction pointer to the EoE Receive Handler
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_EoE_cbRegisterReceiveHandler
void EC_API_SLV_EoE_cbRegisterReceiveHandler(EC_API_SLV_SHandle_t *pEcSlaveApi_p, void *pContext_p, EC_API_SLV_EoE_CBReceiveHandler_t cbFunc_p)
This is the function to register EoE receive handlers.
Definition: ecSlvApi_EoEStub.c:80