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

◆ EC_API_SLV_cbRegisterStopInputHandler()

uint32_t EC_API_SLV_cbRegisterStopInputHandler ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_CBStopInputHandler_t  cbFunc,
void *  pContext 
)

This is the function to register a function which stops the input handler.

The function is called in the state transition from SAFEOP to PREEOP to stop the input handler. This functions informs the application about the state transition, the application cannot refuse the state transition

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the Stop Input Handler
[in]pContextstopInputHandler call context
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// the Call
uint32_t EC_API_SLV_cbRegisterStopInputHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_CBStopInputHandler_t cbFunc, void *pContext)
This is the function to register a function which stops the input handler.
Definition ecSlvApi_ssc.c:294