EtherCAT Slave  1.04.01

◆ EC_API_SLV_cbRegisterStartOutputHandler()

void EC_API_SLV_cbRegisterStartOutputHandler ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
void *  pContext_p,
EC_API_SLV_CBStartOutputHandler_t  cbFunc_p 
)

This is the function to register a function which starts the output handler.

The function is called in the state transition from SAFEOP to OP when all general settings were checked to start the output handler. This function informs the application about the state transition, the application can refuse the state transition when returning an AL Status error code. The return code NOERROR_INWORK can be used, if the application cannot confirm the state transition immediately, in that case this function will be called cyclically until a value unequal NOERROR_INWORK is returned

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]pContext_pstartOuputHandler call context
[in]cbFunc_pFunction pointer to the Start Output Handler
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_cbRegisterStartOutputHandler
void EC_API_SLV_cbRegisterStartOutputHandler(EC_API_SLV_SHandle_t *pEcSlaveApi_p, void *pContext_p, EC_API_SLV_CBStartOutputHandler_t cbFunc_p)
This is the function to register a function which starts the output handler.
Definition: ecSlvApi_ESMStub.c:345