Copyright (c) 2023 KUNBUS GmbH.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#if !(defined PROTECT_ECSLVSIMPLE_H)
#define PROTECT_ECSLVSIMPLE_H 1
#include <osal.h>
#include "ecSlvApi.h"
#include <ESL_os.h>
{
#if (defined OSAL_FREERTOS)
TaskP_Params mainThreadParam;
#elif (defined OSAL_FREERTOS_JACINTO)
TaskP_Params mainThreadParam;
#else
#endif
#if (defined OSAL_LINUX)
struct stat buffer;
uint8_t foeValue;
#endif
#if (defined __cplusplus)
extern "C" {
#endif
#if (defined __cplusplus)
}
#endif
#endif
struct EC_API_SLV_CoE_Object EC_API_SLV_SCoE_Object_t
TSdo describes an Object Dictionary Object.
Definition ecSlvApi.h:133
struct EC_API_SLV_Pdo EC_API_SLV_Pdo_t
TPdo is used to describe the RxPDOs and TxPDOs.
Definition ecSlvApi.h:127
struct EC_API_SLV_Handle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition ecSlvApi.h:136
void EC_SLV_APP_SS_registerStacklessBoardFunctions(EC_SLV_APP_SS_Application_t *pAppInstance_p)
Register board related functions, which do not use stack handle.
Definition ecSlvSimple.c:2542
void EC_SLV_APP_SS_applicationInit(EC_SLV_APP_SS_Application_t *pAppInstance_p)
Initialize application.
Definition ecSlvSimple.c:2962
void EC_SLV_APP_SS_initBoardFunctions(EC_SLV_APP_SS_Application_t *pAppInstance_p)
Initialize board related functions.
Definition ecSlvSimple.c:2476
uint8_t state
Definition ecSlvSimple.h:85
EC_API_SLV_SCoE_Object_t * pt200FRecObj
Definition ecSlvSimple.h:93
clock_t diff
Definition ecSlvSimple.h:88
void * loopThreadHandle
Definition ecSlvSimple.h:71
EC_API_SLV_SCoE_Object_t * pt0800EnumObj
Definition ecSlvSimple.h:95
EC_API_SLV_Pdo_t * ptRxPdo1600
Definition ecSlvSimple.h:97
uint8_t pdBuffer[128]
Definition ecSlvSimple.h:104
EC_API_SLV_SCoE_Object_t * pt2007RecObj
Definition ecSlvSimple.h:92
void * mainThreadHandle
Definition ecSlvSimple.h:69
EC_API_SLV_Pdo_t * ptRxPdo1601
Definition ecSlvSimple.h:98
void * gpioHandle
Definition ecSlvSimple.h:74
int32_t trigger
Definition ecSlvSimple.h:83
EC_API_SLV_Pdo_t * ptTxPdo1A01
Definition ecSlvSimple.h:100
uint8_t rsvd[3]
Definition ecSlvSimple.h:86
void * ioexpLedHandle
Definition ecSlvSimple.h:76
EC_API_SLV_SCoE_Object_t * pt2002RecObj
Definition ecSlvSimple.h:91
uint32_t selectedPruInstance
Definition ecSlvSimple.h:59
EC_API_SLV_Pdo_t * ptTxPdo1A00
Definition ecSlvSimple.h:99
EC_API_SLV_SHandle_t * ptEcSlvApi
Definition ecSlvSimple.h:102
void * remoteHandle
Definition ecSlvSimple.h:75
EC_API_SLV_SCoE_Object_t * ptRecObjOut
Definition ecSlvSimple.h:90
int32_t msec
Definition ecSlvSimple.h:82
clock_t prev
Definition ecSlvSimple.h:87
EC_API_SLV_SCoE_Object_t * ptA000RecObj
Definition ecSlvSimple.h:94
Definition ecSlvSimple.h:58