EtherCAT Slave  1.06.01

◆ EC_SLV_APP_cia402LocalError()

void EC_SLV_APP_cia402LocalError ( void *  pCtxt_p,
uint16_t  errorCode_p 
)

Local Error function handler.

Called if CiA402 state machine changes to an error state.

Parameters
[in]ctxtfunction context.
[in]errorCodeerror code.
Example
#include <ecSlvApi.h>
// required variables
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
uint16_t errorCode;
// the Call
retVal = EC_SLV_APP_cia402LocalError(S_ecSlvApiHdl, errorCode);
Examples
ESL_cia402Demo.c.
EC_API_SLV_SHandle_t
struct EC_API_SLV_SHandle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition: ecSlvApi.h:135
EC_SLV_APP_cia402LocalError
void EC_SLV_APP_cia402LocalError(void *ctxt, uint16_t ErrorCode)
Local Error function handler.
Definition: ESL_cia402Demo.c:631