EtherCAT Slave  1.06.01

◆ EC_API_SLV_cbRegisterUserApplicationRun()

void EC_API_SLV_cbRegisterUserApplicationRun ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
void *  pContext_p,
EC_API_SLV_CBUsrApplicationRun_t  cbFunc_p,
void *  pApplCtxt_p 
)

This is the function to register a function which runs application run 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_pApplication run call context
[in]cbFunc_pFunction pointer to the Application Run Handler
[in]pApplCtxt_pApplication context is composed by parameters required by the application callback
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_cbRegisterUserApplicationRun(ecSlaveApi, ecSlaveApi, cbFunc, NULL);
Examples
ecSlvCiA402.c, and ecSlvESI.c.
EC_API_SLV_cbRegisterUserApplicationRun
void EC_API_SLV_cbRegisterUserApplicationRun(EC_API_SLV_SHandle_t *pEcSlaveApi_p, void *pContext_p, EC_API_SLV_CBUsrApplicationRun_t cbFunc_p, void *pApplCtxt_p)
This is the function to register a function which runs application run handler.
Definition: ecSlvApi_ESMStub.c:120