EtherCAT SubDevice2.03.00
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_VoE_cbRegisterReceiveHandler()

uint32_t EC_API_SLV_VoE_cbRegisterReceiveHandler ( EC_API_SLV_SHandle_t *  pHandle,
EC_API_SLV_VoE_CBReceiveHandler_t  cbFunc,
void *  pContext 
)

Function to register a VoE receive handler.

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

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the VoE receive handler.
[in]pContextVoE receiveHandler call context.
Returns
ErrorCode API Error Code.
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_VoE_cbRegisterReceiveHandler(ecSlaveApi, cbFunc, pCtxt);
uint32_t EC_API_SLV_VoE_cbRegisterReceiveHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_VoE_CBReceiveHandler_t cbFunc, void *pContext)
Function to register a VoE receive handler.
Definition ecSlvApi_VoE.c:113
Note
This is a premium API.