29 #ifndef __EC_FSM_EOE_H__ 30 #define __EC_FSM_EOE_H__ ec_slave_t * slave
slave the FSM runs on
EtherCAT slave structure.
ec_eoe_request_t * request
EoE request.
void ec_fsm_eoe_clear(ec_fsm_eoe_t *)
Destructor.
Global definitions and macros.
unsigned long jiffies_start
Timestamp.
int ec_fsm_eoe_exec(ec_fsm_eoe_t *, ec_datagram_t *)
Executes the current state of the state machine.
EtherCAT EoE request structure.
void ec_fsm_eoe_init(ec_fsm_eoe_t *)
Constructor.
void ec_fsm_eoe_set_ip_param(ec_fsm_eoe_t *, ec_slave_t *, ec_eoe_request_t *)
Starts to set the EoE IP partameters of a slave.
void(* state)(ec_fsm_eoe_t *, ec_datagram_t *)
EoE state function.
EtherCAT datagram structure.
Ethernet-over-EtherCAT set IP parameter request.
unsigned int frame_type_retries
retries upon wrong frame type.
int ec_fsm_eoe_success(const ec_fsm_eoe_t *)
Returns, if the state machine terminated with success.
unsigned int retries
retries upon datagram timeout
Finite state machines for the Ethernet over EtherCAT protocol.
ec_datagram_t * datagram
Datagram used in the previous step.