EtherCAT SubDevice
 
Loading...
Searching...
No Matches
ecSubDeviceSimple.h

EtherCAT® SubDevice Example interface.

EtherCAT® SubDevice Example interface.

Author
Texas Instruments Incorporated

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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 OWNER 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_ECSSUBDEVICEIMPLE_H)
#define PROTECT_ECSUBDEVICESIMPLE_H 1
#include <osal.h>
#include "ecSlvApi.h"
#include <ESL_os.h>
/*-----------------------------------------------------------------------------------------
------
------ Includes
------
-----------------------------------------------------------------------------------------*/
{
/* Threads */
TaskP_Object mainThreadHandle;
TaskP_Params mainThreadParam;
/* Resources */
void* gpioHandle;
void* remoteHandle;
int32_t msec;
int32_t trigger;
uint8_t state;
uint8_t rsvd[3]; /* better be uint32_t aligned */
clock_t prev;
clock_t diff;
uint8_t pdBuffer[128];
#if (defined __cplusplus)
extern "C" {
#endif
#if (defined __cplusplus)
}
#endif
#endif /* PROTECT_ECSUBDEVICEIMPLE_H */
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 ecSubDeviceSimple.c:2856
void EC_SLV_APP_SS_applicationInit(EC_SLV_APP_SS_Application_t *pAppInstance_p)
Initialize application.
Definition ecSubDeviceSimple.c:3242
void EC_SLV_APP_SS_initBoardFunctions(EC_SLV_APP_SS_Application_t *pAppInstance_p)
Initialize board related functions.
Definition ecSubDeviceSimple.c:2793
Definition ecSlvApiInternal.h:143
Definition ecSlvApiInternal.h:331
Definition ecSlvApiInternal.h:172
uint8_t pdBuffer[128]
Definition ecSubDeviceSimple.h:92
uint8_t state
Definition ecSubDeviceSimple.h:73
clock_t diff
Definition ecSubDeviceSimple.h:76
TaskP_Object mainThreadHandle
Definition ecSubDeviceSimple.h:61
EC_API_SLV_Pdo_t * ptRxPdo1600
Definition ecSubDeviceSimple.h:85
void * ioexpLedHandle
Definition ecSubDeviceSimple.h:68
void * loopThreadHandle
Definition ecSubDeviceSimple.h:63
EC_API_SLV_Pdo_t * ptRxPdo1601
Definition ecSubDeviceSimple.h:86
EC_API_SLV_SCoE_Object_t * pt2007RecObj
Definition ecSubDeviceSimple.h:80
int32_t trigger
Definition ecSubDeviceSimple.h:71
EC_API_SLV_SCoE_Object_t * pt200FRecObj
Definition ecSubDeviceSimple.h:81
EC_API_SLV_SCoE_Object_t * pt0800EnumObj
Definition ecSubDeviceSimple.h:83
EC_API_SLV_Pdo_t * ptTxPdo1A01
Definition ecSubDeviceSimple.h:88
void * gpioHandle
Definition ecSubDeviceSimple.h:66
TaskP_Params mainThreadParam
Definition ecSubDeviceSimple.h:62
EC_API_SLV_Pdo_t * ptTxPdo1A00
Definition ecSubDeviceSimple.h:87
void * remoteHandle
Definition ecSubDeviceSimple.h:67
EC_API_SLV_SCoE_Object_t * ptA000RecObj
Definition ecSubDeviceSimple.h:82
uint8_t rsvd[3]
Definition ecSubDeviceSimple.h:74
uint32_t selectedPruInstance
Definition ecSubDeviceSimple.h:58
EC_API_SLV_SCoE_Object_t * ptRecObjOut
Definition ecSubDeviceSimple.h:78
EC_API_SLV_SHandle_t * ptEcSlvApi
Definition ecSubDeviceSimple.h:90
EC_API_SLV_SCoE_Object_t * pt2002RecObj
Definition ecSubDeviceSimple.h:79
int32_t msec
Definition ecSubDeviceSimple.h:70
clock_t prev
Definition ecSubDeviceSimple.h:75
Definition ecSubDeviceSimple.h:57