| uint32_t EC_API_SLV_cbRegisterUserApplicationMainLoop | ( | EC_API_SLV_SHandle_t * | pHandle, |
| EC_API_SLV_CBUsrApplicationMainLoop_t | cbFunc, | ||
| void * | pContext | ||
| ) |
This is the function to register a function which runs application mainloop handler.
The callback function is called in a loop task and therefore should not consume too much time.
| [in] | pHandle | The pointer to the EtherCAT API instance. |
| [in] | cbFunc | Function pointer to the Application MainLoop Handler |
| [in] | pContext | usrApplicationMainLoop call context |