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

◆ EC_API_SLV_cbRegisterStopMbxHandler()

uint32_t EC_API_SLV_cbRegisterStopMbxHandler ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_CBStopMbxHandler_t  cbFunc,
void *  pContext 
)

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]pHandleThe pointer to the EtherCAT API instance.
[in]cbFuncFunction pointer to the Stop Mailbox Handler
[in]pContextstopMbxHandler call context
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// the Call
uint32_t EC_API_SLV_cbRegisterStopMbxHandler(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_CBStopMbxHandler_t cbFunc, void *pContext)
This is the function to register a function which stops the mailbox handler.
Definition ecSlvApi_ssc.c:194