Definition in file fsm.c.
Go to the source code of this file.
Functions | |
| void | ec_fsm_master_start (ec_fsm_t *fsm) |
| Master state: START. | |
| void | ec_fsm_master_broadcast (ec_fsm_t *fsm) |
| Master state: BROADCAST. | |
| void | ec_fsm_master_read_states (ec_fsm_t *fsm) |
| Master state: READ STATES. | |
| void | ec_fsm_master_acknowledge (ec_fsm_t *fsm) |
| Master state: ACKNOWLEDGE. | |
| void | ec_fsm_master_validate_vendor (ec_fsm_t *fsm) |
| Master state: VALIDATE_VENDOR. | |
| void | ec_fsm_master_validate_product (ec_fsm_t *fsm) |
| Master state: VALIDATE_PRODUCT. | |
| void | ec_fsm_master_rewrite_addresses (ec_fsm_t *fsm) |
| Master state: REWRITE ADDRESS. | |
| void | ec_fsm_master_configure_slave (ec_fsm_t *fsm) |
| Master state: CONFIGURE SLAVES. | |
| void | ec_fsm_master_scan_slaves (ec_fsm_t *fsm) |
| Master state: SCAN SLAVES. | |
| void | ec_fsm_master_write_eeprom (ec_fsm_t *fsm) |
| Master state: WRITE EEPROM. | |
| void | ec_fsm_master_sdodict (ec_fsm_t *fsm) |
| Master state: SDODICT. | |
| void | ec_fsm_master_sdo_request (ec_fsm_t *fsm) |
| Master state: SDO REQUEST. | |
| void | ec_fsm_master_end (ec_fsm_t *fsm) |
| State: END. | |
| void | ec_fsm_master_error (ec_fsm_t *fsm) |
| State: ERROR. | |
| void | ec_fsm_slavescan_start (ec_fsm_t *fsm) |
| Slave scan state: START. | |
| void | ec_fsm_slavescan_address (ec_fsm_t *fsm) |
| Slave scan state: ADDRESS. | |
| void | ec_fsm_slavescan_state (ec_fsm_t *fsm) |
| Slave scan state: STATE. | |
| void | ec_fsm_slavescan_base (ec_fsm_t *fsm) |
| Slave scan state: BASE. | |
| void | ec_fsm_slavescan_datalink (ec_fsm_t *fsm) |
| Slave scan state: DATALINK. | |
| void | ec_fsm_slavescan_eeprom_size (ec_fsm_t *fsm) |
| Slave scan state: EEPROM SIZE. | |
| void | ec_fsm_slavescan_eeprom_data (ec_fsm_t *fsm) |
| Slave scan state: EEPROM DATA. | |
| void | ec_fsm_slaveconf_state_start (ec_fsm_t *fsm) |
| Slave configuration state: START. | |
| void | ec_fsm_slaveconf_state_init (ec_fsm_t *fsm) |
| Slave configuration state: INIT. | |
| void | ec_fsm_slaveconf_state_clear_fmmus (ec_fsm_t *fsm) |
| Slave configuration state: CLEAR FMMU. | |
| void | ec_fsm_slaveconf_state_sync (ec_fsm_t *fsm) |
| Slave configuration state: SYNC. | |
| void | ec_fsm_slaveconf_state_preop (ec_fsm_t *fsm) |
| Slave configuration state: PREOP. | |
| void | ec_fsm_slaveconf_state_sync2 (ec_fsm_t *fsm) |
| Slave configuration state: SYNC2. | |
| void | ec_fsm_slaveconf_state_fmmu (ec_fsm_t *fsm) |
| Slave configuration state: FMMU. | |
| void | ec_fsm_slaveconf_state_sdoconf (ec_fsm_t *fsm) |
| Slave configuration state: SDOCONF. | |
| void | ec_fsm_slaveconf_state_saveop (ec_fsm_t *fsm) |
| Slave configuration state: SAVEOP. | |
| void | ec_fsm_slaveconf_state_op (ec_fsm_t *fsm) |
| Slave configuration state: OP. | |
| void | ec_fsm_slaveconf_enter_sync (ec_fsm_t *fsm) |
| void | ec_fsm_slaveconf_enter_preop (ec_fsm_t *fsm) |
| void | ec_fsm_slaveconf_enter_sync2 (ec_fsm_t *fsm) |
| void | ec_fsm_slaveconf_enter_fmmu (ec_fsm_t *fsm) |
| void | ec_fsm_slaveconf_enter_sdoconf (ec_fsm_t *fsm) |
| void | ec_fsm_slaveconf_enter_saveop (ec_fsm_t *fsm) |
| void | ec_fsm_slave_state_end (ec_fsm_t *fsm) |
| State: END. | |
| void | ec_fsm_slave_state_error (ec_fsm_t *fsm) |
| State: ERROR. | |
| int | ec_fsm_init (ec_fsm_t *fsm, ec_master_t *master) |
| Constructor. | |
| void | ec_fsm_clear (ec_fsm_t *fsm) |
| Destructor. | |
| int | ec_fsm_exec (ec_fsm_t *fsm) |
| Executes the current state of the state machine. | |
| int | ec_fsm_running (ec_fsm_t *fsm) |
| int | ec_fsm_success (ec_fsm_t *fsm) |
| void | ec_fsm_master_action_process_states (ec_fsm_t *fsm) |
| Master action: PROC_STATES. | |
| void | ec_fsm_master_action_next_slave_state (ec_fsm_t *fsm) |
| Master action: Get state of next slave. | |
| void | ec_fsm_master_action_addresses (ec_fsm_t *fsm) |
| Master action: ADDRESS. | |
|
|
Master state: START. Starts with getting slave count and slave states. |
|
|
Master state: BROADCAST. Processes the broadcast read slave count and slaves states.
|
|
|
Master state: READ STATES. Fetches the AL- and online state of a slave.
|
|
|
Master state: ACKNOWLEDGE.
|
|
|
Master state: VALIDATE_VENDOR. Validates the vendor ID of a slave.
|
|
|
Master state: VALIDATE_PRODUCT. Validates the product ID of a slave.
|
|
|
Master state: REWRITE ADDRESS. Checks, if the new station address has been written to the slave.
|
|
|
Master state: CONFIGURE SLAVES. Starts configuring a slave.
|
|
|
Master state: SCAN SLAVES. Executes the sub-statemachine for the scanning of a slave.
|
|
|
Master state: WRITE EEPROM.
|
|
|
Master state: SDODICT.
|
|
|
Master state: SDO REQUEST.
|
|
|
State: END.
|
|
|
State: ERROR.
|
|
|
Slave scan state: START. First state of the slave state machine. Writes the station address to the slave, according to its ring position.
|
|
|
Slave scan state: ADDRESS.
|
|
|
Slave scan state: STATE.
|
|
|
Slave scan state: BASE.
|
|
|
Slave scan state: DATALINK.
|
|
|
Slave scan state: EEPROM SIZE.
|
|
|
Slave scan state: EEPROM DATA.
|
|
|
Slave configuration state: START.
|
|
|
Slave configuration state: INIT.
|
|
|
Slave configuration state: CLEAR FMMU.
|
|
|
Slave configuration state: SYNC.
|
|
|
Slave configuration state: PREOP.
|
|
|
Slave configuration state: SYNC2.
|
|
|
Slave configuration state: FMMU.
|
|
|
Slave configuration state: SDOCONF.
|
|
|
Slave configuration state: SAVEOP.
|
|
|
Slave configuration state: OP.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
State: END.
|
|
|
State: ERROR.
|
|
||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
|
Executes the current state of the state machine.
|
|
|
|
|
|
|
|
|
Master action: PROC_STATES. Processes the slave states.
|
|
|
Master action: Get state of next slave.
|
|
|
Master action: ADDRESS. Looks for slave, that have lost their configuration and writes their station address, so that they can be reconfigured later.
|
1.4.4