|
EtherCAT Slave
1.04.01
|
|
CiA402 Application interface.
- Author
- KUNBUS GmbH
- Date
- 2021-05-18
- Copyright
- Copyright (c) 2021, KUNBUS GmbH
All rights reserved.
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 the copyright holder 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 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 __ECSLVCIA402_H__)
#define __ECSLVCIA402_H__ 1
#include <osal.h>
#include <ecSlvApi.h>
#include <ESL_os.h>
{
#if (defined OSAL_FREERTOS)
TaskP_Params mainThreadParam;
#else
#endif
#if (defined OSAL_LINUX)
struct stat buffer;
uint8_t foeValue;
#endif
#if (defined __cplusplus)
extern "C" {
#endif
extern void EC_SLV_APP_dumpVersions(void);
#if (defined __cplusplus)
}
#endif
#endif
EC_API_SLV_SCoE_Object_t * pt2007RecObj
Definition: ecSlvSimple.h:86
EC_API_SLV_SCoE_Object_t * ptRecObjOut
Definition: ecSlvSimple.h:84
clock_t prev
Definition: ecSlvSimple.h:82
void * ioexpLedHandle
Definition: ecSlvSimple.h:71
EC_API_SLV_SPdo_t * ptRxPdo1601
Definition: ecSlvSimple.h:90
EC_API_SLV_SCoE_Object_t * pt2002RecObj
Definition: ecSlvSimple.h:85
uint8_t rsvd[3]
Definition: ecSlvSimple.h:81
void * mainThreadHandle
Definition: ecSlvSimple.h:64
EC_API_SLV_SPdo_t * ptTxPdo1A01
Definition: ecSlvSimple.h:92
struct EC_API_SLV_SCoE_Object EC_API_SLV_SCoE_Object_t
TSdo describes an Object Dictionary Object.
Definition: ecSlvApi.h:131
uint8_t state
Definition: ecSlvSimple.h:80
Definition: ecSlvSimple.h:56
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_API_SLV_SPdo_t * ptRxPdo1602
Definition: ecSlvCiA402.h:91
void * gpioHandle
Definition: ecSlvSimple.h:69
struct EC_API_SLV_SPdo EC_API_SLV_SPdo_t
TPdo is used to describe the RxPDOs and TxPDOs.
Definition: ecSlvApi.h:125
EC_API_SLV_SCoE_Object_t * pt200FRecObj
Definition: ecSlvSimple.h:87
EC_API_SLV_SPdo_t * ptTxPdo1A00
Definition: ecSlvSimple.h:91
void * loopThreadHandle
Definition: ecSlvSimple.h:66
void EC_SLV_APP_applicationInit(EC_SLV_APP_Sapplication_t *pAppInstance_p)
Initialize application.
Definition: ecSlvSimple.c:2366
void * remoteHandle
Definition: ecSlvSimple.h:70
uint32_t selectedPruInstance
Definition: ecSlvSimple.h:57
EC_API_SLV_SHandle_t * ptEcSlvApi
Definition: ecSlvSimple.h:94
EC_API_SLV_SPdo_t * ptRxPdo1600
Definition: ecSlvSimple.h:89
int32_t trigger
Definition: ecSlvSimple.h:78
clock_t diff
Definition: ecSlvSimple.h:82
EC_API_SLV_SPdo_t * ptTxPdo1A02
Definition: ecSlvCiA402.h:94
int32_t msec
Definition: ecSlvSimple.h:77