IgH EtherCAT Master
1.6.2
|
EtherCAT state change FSM. More...
Go to the source code of this file.
Variables | |
const ec_code_msg_t | al_status_messages [] |
Application layer status messages. | |
EtherCAT state change FSM.
Definition in file fsm_change.c.
unsigned int ec_fsm_change_timeout_ms | ( | const ec_fsm_change_t * | fsm | ) |
Get timeout in ms.
For defaults see ETG2000_S_R_V1i0i15 section 5.3.6.2.
fsm | finite state machine |
Definition at line 79 of file fsm_change.c.
void ec_fsm_change_state_start | ( | ec_fsm_change_t * | fsm | ) |
Change state: START.
fsm | finite state machine |
Definition at line 185 of file fsm_change.c.
void ec_fsm_change_state_check | ( | ec_fsm_change_t * | fsm | ) |
Change state: CHECK.
fsm | finite state machine |
Definition at line 207 of file fsm_change.c.
void ec_fsm_change_state_status | ( | ec_fsm_change_t * | fsm | ) |
Change state: STATUS.
fsm | finite state machine |
Definition at line 270 of file fsm_change.c.
void ec_fsm_change_state_start_code | ( | ec_fsm_change_t * | fsm | ) |
Enter reading AL status code.
fsm | finite state machine |
Definition at line 362 of file fsm_change.c.
void ec_fsm_change_state_code | ( | ec_fsm_change_t * | fsm | ) |
void ec_fsm_change_state_ack | ( | ec_fsm_change_t * | fsm | ) |
void ec_fsm_change_state_check_ack | ( | ec_fsm_change_t * | fsm | ) |
Change state: CHECK ACK.
fsm | finite state machine |
Definition at line 531 of file fsm_change.c.
void ec_fsm_change_state_end | ( | ec_fsm_change_t * | fsm | ) |
void ec_fsm_change_state_error | ( | ec_fsm_change_t * | fsm | ) |
void ec_fsm_change_init | ( | ec_fsm_change_t * | fsm, |
ec_datagram_t * | datagram | ||
) |
Constructor.
fsm | finite state machine |
datagram | datagram |
Definition at line 54 of file fsm_change.c.
void ec_fsm_change_clear | ( | ec_fsm_change_t * | fsm | ) |
void ec_fsm_change_start | ( | ec_fsm_change_t * | fsm, |
ec_slave_t * | slave, | ||
ec_slave_state_t | state | ||
) |
Starts the change state machine.
fsm | finite state machine |
slave | EtherCAT slave |
state | requested state |
Definition at line 123 of file fsm_change.c.
void ec_fsm_change_ack | ( | ec_fsm_change_t * | fsm, |
ec_slave_t * | slave | ||
) |
Starts the change state machine to only acknowlegde a slave's state.
fsm | finite state machine |
slave | EtherCAT slave |
Definition at line 140 of file fsm_change.c.
int ec_fsm_change_exec | ( | ec_fsm_change_t * | fsm | ) |
Executes the current state of the state machine.
fsm | finite state machine |
Definition at line 157 of file fsm_change.c.
int ec_fsm_change_success | ( | ec_fsm_change_t * | fsm | ) |
Returns, if the state machine terminated with success.
fsm | Finite state machine |
Definition at line 172 of file fsm_change.c.