37 #ifndef __EC_FSM_CHANGE_H__ 38 #define __EC_FSM_CHANGE_H__ uint8_t spontaneous_change
spontaneous state change detected
void ec_fsm_change_start(ec_fsm_change_t *, ec_slave_t *, ec_slave_state_t)
Starts the change state machine.
uint8_t take_time
take sending timestamp
EtherCAT slave structure.
Global definitions and macros.
ec_datagram_t * datagram
datagram used in the state machine
only state acknowledgement
int ec_fsm_change_exec(ec_fsm_change_t *)
Executes the current state of the state machine.
ec_fsm_change_mode_t
Mode of the change state machine.
unsigned long jiffies_start
change timer
void(* state)(ec_fsm_change_t *)
slave state change state function
ec_fsm_change_mode_t mode
full state change, or ack only.
ec_slave_state_t
State of an EtherCAT slave.
void ec_fsm_change_init(ec_fsm_change_t *, ec_datagram_t *)
Constructor.
EtherCAT datagram structure.
int ec_fsm_change_success(ec_fsm_change_t *)
Returns, if the state machine terminated with success.
ec_slave_state_t requested_state
input: state
ec_slave_t * slave
slave the FSM runs on
void ec_fsm_change_ack(ec_fsm_change_t *, ec_slave_t *)
Starts the change state machine to only acknowlegde a slave's state.
ec_slave_state_t old_state
prior slave state
unsigned int retries
retries upon datagram timeout
void ec_fsm_change_clear(ec_fsm_change_t *)
Destructor.
EtherCAT state change FSM.