IgH EtherCAT Master
1.5.3
|
EtherCAT slave (SDO) state machine. More...
Go to the source code of this file.
Functions | |
void | ec_fsm_slave_state_idle (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Slave state: IDLE. More... | |
void | ec_fsm_slave_state_ready (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Slave state: READY. More... | |
int | ec_fsm_slave_action_process_sdo (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Check for pending SDO requests and process one. More... | |
void | ec_fsm_slave_state_sdo_request (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Slave state: SDO_REQUEST. More... | |
int | ec_fsm_slave_action_process_reg (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Check for pending register requests and process one. More... | |
void | ec_fsm_slave_state_reg_request (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Slave state: Register request. More... | |
int | ec_fsm_slave_action_process_foe (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Check for pending FoE requests and process one. More... | |
void | ec_fsm_slave_state_foe_request (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Slave state: FOE REQUEST. More... | |
int | ec_fsm_slave_action_process_soe (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Check for pending SoE requests and process one. More... | |
void | ec_fsm_slave_state_soe_request (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Slave state: SOE_REQUEST. More... | |
void | ec_fsm_slave_init (ec_fsm_slave_t *fsm, ec_slave_t *slave) |
Constructor. More... | |
void | ec_fsm_slave_clear (ec_fsm_slave_t *fsm) |
Destructor. More... | |
int | ec_fsm_slave_exec (ec_fsm_slave_t *fsm, ec_datagram_t *datagram) |
Executes the current state of the state machine. More... | |
void | ec_fsm_slave_set_ready (ec_fsm_slave_t *fsm) |
Sets the current state of the state machine to READY. More... | |
int | ec_fsm_slave_is_ready (const ec_fsm_slave_t *fsm) |
Returns, if the FSM is currently not busy and ready to execute. More... | |
EtherCAT slave (SDO) state machine.
Definition in file fsm_slave.c.
void ec_fsm_slave_state_idle | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Slave state: IDLE.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 175 of file fsm_slave.c.
void ec_fsm_slave_state_ready | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Slave state: READY.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 187 of file fsm_slave.c.
int ec_fsm_slave_action_process_sdo | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Check for pending SDO requests and process one.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 219 of file fsm_slave.c.
void ec_fsm_slave_state_sdo_request | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Slave state: SDO_REQUEST.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 269 of file fsm_slave.c.
int ec_fsm_slave_action_process_reg | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Check for pending register requests and process one.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 305 of file fsm_slave.c.
void ec_fsm_slave_state_reg_request | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Slave state: Register request.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 371 of file fsm_slave.c.
int ec_fsm_slave_action_process_foe | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Check for pending FoE requests and process one.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 423 of file fsm_slave.c.
void ec_fsm_slave_state_foe_request | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Slave state: FOE REQUEST.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 463 of file fsm_slave.c.
int ec_fsm_slave_action_process_soe | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Check for pending SoE requests and process one.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 500 of file fsm_slave.c.
void ec_fsm_slave_state_soe_request | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Slave state: SOE_REQUEST.
fsm | Slave state machine. |
datagram | Datagram to use. |
Definition at line 550 of file fsm_slave.c.
void ec_fsm_slave_init | ( | ec_fsm_slave_t * | fsm, |
ec_slave_t * | slave | ||
) |
Constructor.
fsm | Slave state machine. |
slave | EtherCAT slave. |
Definition at line 58 of file fsm_slave.c.
void ec_fsm_slave_clear | ( | ec_fsm_slave_t * | fsm | ) |
int ec_fsm_slave_exec | ( | ec_fsm_slave_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Executes the current state of the state machine.
fsm | Slave state machine. |
datagram | New datagram to use. |
Definition at line 121 of file fsm_slave.c.
void ec_fsm_slave_set_ready | ( | ec_fsm_slave_t * | fsm | ) |
Sets the current state of the state machine to READY.
fsm | Slave state machine. |
Definition at line 146 of file fsm_slave.c.
int ec_fsm_slave_is_ready | ( | const ec_fsm_slave_t * | fsm | ) |
Returns, if the FSM is currently not busy and ready to execute.
fsm | Slave state machine. |
Definition at line 162 of file fsm_slave.c.