EtherCAT Slave  1.04.01

◆ EC_API_SLV_cbRegisterUserApplicationMainLoop()

void EC_API_SLV_cbRegisterUserApplicationMainLoop ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
void *  pContext_p,
EC_API_SLV_CBUsrApplicationMainLoop_t  cbFunc_p,
void *  pApplContext_p 
)

This is the function to register a function which runs application mainloop handler.

The callback function is called in MainLoop and should therefore not consume tooo much time

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]pContext_pMainloop call context
[in]cbFunc_pFunction pointer to the Application MainLoop Handler
[in]pApplContext_pApplication context is composed by parameters required by the application callback
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_cbRegisterUserApplicationMainLoop
void EC_API_SLV_cbRegisterUserApplicationMainLoop(EC_API_SLV_SHandle_t *pEcSlaveApi_p, void *pContext_p, EC_API_SLV_CBUsrApplicationMainLoop_t cbFunc_p, void *pApplContext_p)
This is the function to register a function which runs application mainloop handler.
Definition: ecSlvApi_ESMStub.c:79