EtherCAT Slave  1.04.06

◆ EC_API_SLV_cbRegisterStopMbxHandler()

void EC_API_SLV_cbRegisterStopMbxHandler ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
void *  pContext_p,
EC_API_SLV_CBStopMbxHandler_t  cbFunc_p 
)

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

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

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]pContext_pstopMbxHandler call context
[in]cbFunc_pFunction pointer to the Stop Mailbox Handler
Example
#include <ecSlvApi.h>
// the Call
EC_API_SLV_cbRegisterStopMbxHandler
void EC_API_SLV_cbRegisterStopMbxHandler(EC_API_SLV_SHandle_t *pEcSlaveApi_p, void *pContext_p, EC_API_SLV_CBStopMbxHandler_t cbFunc_p)
This is the function to register a function which stops the mailbox handler.
Definition: ecSlvApi_ESMStub.c:209