IgH EtherCAT Master
1.5.3
|
EtherCAT state change FSM. More...
Go to the source code of this file.
Macros | |
#define | EC_AL_STATE_CHANGE_TIMEOUT 5 |
Timeout while waiting for AL state change [s]. | |
Variables | |
const ec_code_msg_t | al_status_messages [] |
Application layer status messages. | |
EtherCAT state change FSM.
Definition in 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 152 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 174 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 237 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 326 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 495 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 65 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 90 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 107 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 124 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 139 of file fsm_change.c.