Download Print this page

Infineon XMC4800 Relax EtherCAT Getting Started page 13

Generic slave example
Hide thumbs Also See for XMC4800 Relax EtherCAT:

Advertisement

Description
Generic EtherCAT
slave library
®
The API of the generic slave is
simple:
1. ECAT_init
To initialize the slave device
2. ECAT_registerCb
To register a callback.
Inside the callback the I/O data
from/to master is processed and
e.g. connected to hardware (ports,
timers, PWM,...)
3. ECAT_main_loop
Main loop called inside while(1) to
process the state machine
Copyright © Infineon Technologies AG 2016. All rights reserved.
13

Advertisement

loading