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

◆ EC_API_SLV_SoE_cbRegisterRecvHandler()

uint32_t EC_API_SLV_SoE_cbRegisterRecvHandler ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_SoE_CBRecv_t  cbFunc,
void *  pContext 
)

Register user application to process SoE frames received from master.

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to user application.
[in]pContextrecvHandler call context
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_SoE_cbRegisterRecvHandler(ecSlaveApi, cbFunc, pCtxt);
uint32_t EC_API_SLV_SoE_cbRegisterRecvHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_SoE_CBRecv_t cbFunc, void *pContext)
Register user application to process SoE frames received from master.
Definition ecSlvApi_SoE.c:81
See also
EC_API_SLV_SoE_cbRegisterSendHandler