37 #ifndef __EC_FSM_SOE_H__ 38 #define __EC_FSM_SOE_H__ Finite state machines for the Sercos over EtherCAT protocol.
size_t fragment_size
Size of the current fragment.
ec_soe_request_t * request
SoE request.
EtherCAT slave structure.
void ec_fsm_soe_init(ec_fsm_soe_t *)
Constructor.
Global definitions and macros.
void ec_fsm_soe_clear(ec_fsm_soe_t *)
Destructor.
void ec_fsm_soe_transfer(ec_fsm_soe_t *, ec_slave_t *, ec_soe_request_t *)
Starts to transfer an IDN to/from a slave.
void(* state)(ec_fsm_soe_t *, ec_datagram_t *)
CoE state function.
off_t offset
IDN data offset during fragmented write.
EtherCAT datagram structure.
int ec_fsm_soe_success(const ec_fsm_soe_t *)
Returns, if the state machine terminated with success.
unsigned int retries
retries upon datagram timeout
ec_datagram_t * datagram
Datagram used in the previous step.
unsigned long jiffies_start
Timestamp.
EtherCAT SoE request structure.
ec_slave_t * slave
slave the FSM runs on
int ec_fsm_soe_exec(ec_fsm_soe_t *, ec_datagram_t *)
Executes the current state of the state machine.
Sercos-over-EtherCAT request.