IgH EtherCAT Master
1.6.2
|
EtherCAT state change FSM. More...
Go to the source code of this file.
Data Structures | |
struct | ec_fsm_change |
EtherCAT state change FSM. More... | |
Typedefs | |
typedef struct ec_fsm_change | ec_fsm_change_t |
Enumerations | |
enum | ec_fsm_change_mode_t { EC_FSM_CHANGE_MODE_FULL, EC_FSM_CHANGE_MODE_ACK_ONLY } |
Mode of the change state machine. More... | |
Functions | |
void | ec_fsm_change_init (ec_fsm_change_t *, ec_datagram_t *) |
Constructor. | |
void | ec_fsm_change_clear (ec_fsm_change_t *) |
Destructor. | |
void | ec_fsm_change_start (ec_fsm_change_t *, ec_slave_t *, ec_slave_state_t) |
Starts the change state machine. | |
void | ec_fsm_change_ack (ec_fsm_change_t *, ec_slave_t *) |
Starts the change state machine to only acknowlegde a slave's state. | |
int | ec_fsm_change_exec (ec_fsm_change_t *) |
Executes the current state of the state machine. More... | |
int | ec_fsm_change_success (ec_fsm_change_t *) |
Returns, if the state machine terminated with success. More... | |
EtherCAT state change FSM.
Definition in file fsm_change.h.
typedef struct ec_fsm_change ec_fsm_change_t |
Definition at line 50 of file fsm_change.h.
enum ec_fsm_change_mode_t |
Mode of the change state machine.
Enumerator | |
---|---|
EC_FSM_CHANGE_MODE_FULL | full state change |
EC_FSM_CHANGE_MODE_ACK_ONLY | only state acknowledgement |
Definition at line 42 of file fsm_change.h.
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.