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

◆ EC_API_SLV_cbRegisterUserApplicationRun()

uint32_t EC_API_SLV_cbRegisterUserApplicationRun ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_CBUsrApplicationRun_t  cbFunc,
void *  pContext 
)

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

The callback function is called by PDI interrupt and Sync0 interrupt and therefore should not consume too much time.

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the Application Run Handler
[in]pContextApplication context is composed by parameters required by the application callback
Returns
error code
Example
#include <ecSlvApi.h>
// the Call
uint32_t EC_API_SLV_cbRegisterUserApplicationRun(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_CBUsrApplicationRun_t cbFunc, void *pContext)
This is the function to register a function which runs application run handler.
Definition ecSlvApi_ssc.c:95
Examples
ecSubDeviceCiA402.c.