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

◆ EC_API_SLV_setState()

uint32_t EC_API_SLV_setState ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_EEsmState_t  state,
uint16_t  alErrorCode 
)

This is the function to request a EtherCAT state.

Parameters
[in]pHandleSlave API Handle
[in]stateAL state to set.
[in]alErrorCodeAL status code to set.
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
EC_API_SLV_setState(pHandle, state, errorCode);
uint32_t EC_API_SLV_setState(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_EEsmState_t state, uint16_t alErrorCode)
This is the function to request a EtherCAT state.
Definition ecSlvApi.c:1717