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

◆ EC_API_SLV_VoE_cbRegisterManualTestHandler()

uint32_t EC_API_SLV_VoE_cbRegisterManualTestHandler ( EC_API_SLV_SHandle_t *  pHandle,
EC_API_SLV_VoE_CBTestHandler_t  cbFunc,
void *  pContext 
)

Function to register a VoE manual inject test handler.

This function registers a function pointer which must be implemented by the user. The user defined function will be called periodically based on the configuration defines in ecat_def.h.

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