37 #ifndef __EC_FSM_SII_H__ 38 #define __EC_FSM_SII_H__ unsigned long jiffies_start
Start timestamp.
Slave information interface FSM.
ec_fsm_sii_addressing_t
SII access addressing mode.
EtherCAT slave structure.
void ec_fsm_sii_clear(ec_fsm_sii_t *)
Destructor.
uint16_t word_offset
input: word offset in SII
void ec_fsm_sii_write(ec_fsm_sii_t *, ec_slave_t *, uint16_t, const uint16_t *, ec_fsm_sii_addressing_t)
Initializes the SII write state machine.
Global definitions and macros.
unsigned int retries
retries upon datagram timeout
void(* state)(ec_fsm_sii_t *)
SII state function.
Use configured addresses.
void ec_fsm_sii_read(ec_fsm_sii_t *, ec_slave_t *, uint16_t, ec_fsm_sii_addressing_t)
Initializes the SII read state machine.
int ec_fsm_sii_success(ec_fsm_sii_t *)
Returns, if the master startup state machine terminated with success.
int ec_fsm_sii_exec(ec_fsm_sii_t *)
Executes the SII state machine.
EtherCAT datagram structure.
uint8_t check_once_more
one more try after timeout
void ec_fsm_sii_init(ec_fsm_sii_t *, ec_datagram_t *)
Constructor.
ec_slave_t * slave
slave the FSM runs on
ec_fsm_sii_addressing_t mode
reading via APRD or NPRD
Use auto-increment addressing.
ec_datagram_t * datagram
datagram used in the state machine
uint8_t value[4]
raw SII value (32bit)