EtherCAT Slave
 
Loading...
Searching...
No Matches
Application Callbacks

Overview

Set of optional user callbacks used by the Stack.

Typedefs

typedef void(* EC_API_SLV_CBUsrApplicationMainLoop_t) (void *pAppMainLoopCtxt)
 User defined function. Called as application MainLoop in MainLoop.
 
typedef void(* EC_API_SLV_CBUsrApplicationRun_t) (void *pAppRunCtxt)
 User defined function. Called as "application run" in MainLoop.
 
typedef void(* EC_API_SLV_CBStackError_t) (void *pAppRunCtxt, uint32_t errorCode, uint8_t fatal, uint8_t numOfParam, va_list arg)
 Called on severe Stack error (OSAL_error)
 
typedef void(* EC_API_SLV_CBMsrmt_t) (void *pMsrmtCtxt, uint32_t measureChannel, bool channelOn)
 Called on severe Stack error (OSAL_error)
 
typedef uint16_t(* EC_API_SLV_CBStartMbxHandler_t) (void *pContext)
 User defined function. Called when mailbox handler is started.
 
typedef void(* EC_API_SLV_CBStopMbxHandler_t) (void *pContext)
 User defined function. Called when mailbox handler is stopped.
 
typedef uint16_t(* EC_API_SLV_CBStartInputHandler_t) (void *pContext, uint16_t *pIntMask)
 User defined function. Called when input handler is started.
 
typedef void(* EC_API_SLV_CBStopInputHandler_t) (void *pContext)
 User defined function. Called when input handler is stopped.
 
typedef uint16_t(* EC_API_SLV_CBStartOutputHandler_t) (void *pContext)
 User defined function. Called when output handler is started.
 
typedef void(* EC_API_SLV_CBStopOutputHandler_t) (void *pContext)
 User defined function. Called when ouput handler is stopped.
 
typedef void *(* EC_API_SLV_CBPreSeqInputPD_t) (void *pContext, uint32_t length)
 Register external Input Process Data Buffer.
 
typedef void *(* EC_API_SLV_CBPreSeqOutputPD_t) (void *pContext, uint32_t length)
 Register external Output Process Data Buffer.
 
typedef void(* EC_API_SLV_CBPostSeqInputPD_t) (void *pContext, void *pData, uint32_t length)
 Register external Release Input Process Data Buffer Function.
 
typedef void(* EC_API_SLV_CBPostSeqOutputPD_t) (void *pContext, void *pData, uint32_t length)
 Register external Release Output Process Data Buffer Function.
 
typedef uint32_t(* EC_API_SLV_PDO_CBAssignmentChanges_t) (void *pContext, bool rx, uint8_t count, uint16_t *pPdoIndexArray)
 Inform about PDO assignment changes.
 
typedef uint32_t(* EC_API_SLV_PDO_CBMappingChanges_t) (void *pContext, uint16_t pdoIndex, uint8_t count, EC_API_SLV_PDO_SEntryMap_t *pPdoMap)
 Inform about PDO mapping changes.
 
typedef uint8_t(* EC_API_SLV_CBObjRead_t) (void *pContext, uint16_t index, uint8_t subindex, uint32_t length, uint16_t *pData, uint8_t completeAccess)
 Callback trigered by a SDO Upload operation.
 
typedef uint8_t(* EC_API_SLV_CBObjWrite_t) (void *pContext, uint16_t index, uint8_t subindex, uint32_t length, uint16_t *pData, uint8_t completeAccess)
 Callback trigered by a SDO Download operation.
 
typedef bool(* EC_API_SLV_EoE_CBReceiveHandler_t) (void *pContext, uint16_t *pData, uint16_t size)
 User defined EoE receive function. Called when an EoE frame is received.
 
typedef bool(* EC_API_SLV_EoE_CBSettingIndHandler_t) (void *pContext, uint16_t *pMac, uint16_t *pIp, uint16_t *pSubNet, uint16_t *pDefaultGateway, uint16_t *pDnsIp)
 EoE Settings Indication callback proxy.
 
typedef uint16_t(* EC_API_SLV_AoE_CBRquestHandler_t) (void *pContext, uint16_t port, uint16_t cmdId, uint16_t index, uint8_t subIndex, bool completeAccess, uint32_t dataLen)
 AoE Communication Request Handler.
 
typedef uint32_t(* EC_API_SLV_FoE_CBOpenFileHandler_t) (void *pContext, const char *pName, uint16_t nameLen, bool isRead, uint32_t password)
 User defined FoE receive function. Called when an FoE frame is received.
 
typedef uint32_t(* EC_API_SLV_FoE_CBReadFileHandler_t) (void *pContext, uint16_t *pData, uint16_t foeMaxSendBlockSize, uint32_t offset)
 Read FoE File callback.
 
typedef uint32_t(* EC_API_SLV_FoE_CBWriteFileHandler_t) (void *pContext, uint16_t *pData, uint16_t size)
 Write FoE File callback.
 
typedef uint32_t(* EC_API_SLV_FoE_CBCloseFileHandler_t) (void *pContext, uint32_t errorCode)
 Close FoE File callback.
 
typedef EC_API_EError_t(* EC_API_SLV_FoE_CBFwUpdateHandler_t) (void *pContext)
 FoE Handle Firmware update callback.
 
typedef void(* EC_API_SLV_CBSystemRebootHandler_t) (void *pContext)
 Handle System Reboot.
 
typedef uint16_t(* EC_API_SLV_AoE_CBReadRequestHandler_t) (void *pContext, uint16_t port, uint16_t index, uint8_t subIndex, bool completeAccess, uint32_t *pLength, uint16_t *pData)
 AoE Communication Read Request Handler.
 
typedef uint16_t(* EC_API_SLV_AoE_CBWriteRequestHandler_t) (void *pContext, uint16_t port, uint16_t index, uint8_t subIndex, bool completeAccess, uint32_t *pLength, uint16_t *pData)
 AoE Communication Write Request Handler.
 
typedef void(* EC_API_SLV_SoE_CBSend_t) (void *pContext, uint16_t *pSoEService, uint16_t *pSoEFlags, void **pData, uint16_t *pLen)
 Send SoE message to master.
 
typedef void(* EC_API_SLV_SoE_CBRecv_t) (void *pContext, uint16_t soEService, uint16_t soEFlags, void *pData, uint16_t *pLen)
 Recevice SoE message from Master.
 
typedef uint8_t(* EC_API_SLV_SoE_CBNofReq_t) (void *pContext)
 Master requests a notification. Application should send an Emergency message.
 
typedef bool(* EC_API_SLV_CiA402_CBUsrApplSM_t) (void *pAppRunCtxt)
 User defined function. Called as "application Cia402 StateMachine" in MainLoop.
 
typedef uint16_t(* EC_API_SLV_CiA402_CBUsrApplSetDict_t) (void *pContext)
 Configure CiA402 Object Dictionary.
 
typedef void(* EC_API_SLV_CiA402_CBUsrApplSetDictValues_t) (void *pContext)
 Set default values for the CiA402 Objects.
 
typedef void(* EC_API_SLV_CiA402_CBUsrApplApplication_t) (void *pContext)
 User application slot (control)
 
typedef void(* EC_API_SLV_CiA402_CBUsrApplLocalError_t) (void *pContext, uint16_t errorCode)
 User application local error.
 
typedef bool(* EC_API_SLV_CBEepromRead_t) (void *pContext, void *pEeprom, uint32_t *pLength)
 Read EEPROM from memory.
 
typedef void(* EC_API_SLV_CBEepromWrite_t) (void *pContext, void *pEeprom, uint32_t length)
 Write EEPROM to memory.
 
typedef void(* EC_API_SLV_CBEepromInit_t) (void *pContext)
 Init eeprom memory block to load and store eeprom content.