37 #ifndef __EC_FSM_REBOOT_H__ 38 #define __EC_FSM_REBOOT_H__ ec_slave_t * slave
slave the FSM runs on, if "single"
void ec_fsm_reboot_single(ec_fsm_reboot_t *, ec_slave_t *)
Starts the reboot state machine for a single slave.
EtherCAT slave structure.
void(* state)(ec_fsm_reboot_t *)
slave reboot state function
ec_master_t * master
master the FSM runs on, if "all"
void ec_fsm_reboot_all(ec_fsm_reboot_t *, ec_master_t *)
Starts the reboot state machine for all slaves on a master.
void ec_fsm_reboot_clear(ec_fsm_reboot_t *)
Destructor.
Global definitions and macros.
EtherCAT master structure.
EtherCAT slave reboot FSM.
int ec_fsm_reboot_exec(ec_fsm_reboot_t *)
Executes the current state of the state machine.
unsigned int retries
retries upon datagram timeout
EtherCAT datagram structure.
int ec_fsm_reboot_success(ec_fsm_reboot_t *)
Returns, if the state machine terminated with success.
void ec_fsm_reboot_init(ec_fsm_reboot_t *, ec_datagram_t *)
Constructor.
unsigned long jiffies_timeout
pause timer
ec_datagram_t * datagram
datagram used in the state machine