EtherCAT Slave
1.04.03
◆
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]
ctxt
function context.
[in]
errorCode
error 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:134
EC_SLV_APP_cia402LocalError
void EC_SLV_APP_cia402LocalError(void *ctxt, uint16_t ErrorCode)
Local Error function handler.
Definition:
ESL_cia402Demo.c:631
CiA402 Codes
generated by
1.8.18