IgH EtherCAT Master
1.6.2
|
EtherCAT slave state machines. More...
Go to the source code of this file.
EtherCAT slave state machines.
Definition in file fsm_slave_scan.c.
int ec_fsm_slave_scan_running | ( | const ec_fsm_slave_scan_t * | fsm | ) |
fsm | slave state machine |
Definition at line 124 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_enter_sii_size | ( | ec_fsm_slave_scan_t * | fsm | ) |
Enter slave scan state SII_SIZE.
fsm | slave state machine |
Definition at line 447 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_enter_assign_sii | ( | ec_fsm_slave_scan_t * | fsm | ) |
Enter slave scan state ASSIGN_SII.
fsm | slave state machine |
Definition at line 468 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_enter_datalink | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan entry function: DATALINK.
fsm | slave state machine |
Definition at line 429 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_enter_preop | ( | ec_fsm_slave_scan_t * | fsm | ) |
Enter slave scan state PREOP.
fsm | slave state machine |
Definition at line 941 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_enter_pdos | ( | ec_fsm_slave_scan_t * | fsm | ) |
Enter slave scan state PDOS.
fsm | slave state machine |
Definition at line 1066 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_start | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: START.
First state of the slave state machine. Writes the station address to the slave, according to its ring position.
fsm | slave state machine |
Definition at line 174 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_address | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: ADDRESS.
fsm | slave state machine |
Definition at line 189 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_state | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: STATE.
fsm | slave state machine |
Definition at line 227 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_base | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: BASE.
fsm | slave state machine |
Definition at line 271 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_dc_cap | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: DC CAPABILITIES.
fsm | slave state machine |
Definition at line 345 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_dc_times | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: DC TIMES.
fsm | slave state machine |
Definition at line 390 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_datalink | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: DATALINK.
fsm | slave state machine |
Definition at line 492 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_assign_sii | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: ASSIGN_SII.
fsm | slave state machine |
Definition at line 544 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_sii_size | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: SII SIZE.
fsm | slave state machine |
Definition at line 580 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_sii_data | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: SII DATA.
fsm | slave state machine |
Definition at line 657 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_preop | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: PREOP.
fsm | slave state machine |
Definition at line 979 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_sync | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: SYNC.
fsm | slave state machine |
Definition at line 998 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_pdos | ( | ec_fsm_slave_scan_t * | fsm | ) |
Slave scan state: PDOS.
fsm | slave state machine |
Definition at line 1082 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_state_end | ( | ec_fsm_slave_scan_t * | fsm | ) |
void ec_fsm_slave_scan_state_error | ( | ec_fsm_slave_scan_t * | fsm | ) |
void ec_fsm_slave_scan_init | ( | ec_fsm_slave_scan_t * | fsm, |
ec_datagram_t * | datagram, | ||
ec_fsm_slave_config_t * | fsm_slave_config, | ||
ec_fsm_pdo_t * | fsm_pdo | ||
) |
Constructor.
fsm | Slave scanning state machine. |
datagram | Datagram to use. |
fsm_slave_config | Slave configuration state machine to use. |
fsm_pdo | PDO configuration machine to use. |
Definition at line 77 of file fsm_slave_scan.c.
void ec_fsm_slave_scan_clear | ( | ec_fsm_slave_scan_t * | fsm | ) |
void ec_fsm_slave_scan_start | ( | ec_fsm_slave_scan_t * | fsm, |
ec_slave_t * | slave | ||
) |
Start slave scan state machine.
fsm | slave state machine |
slave | slave to configure |
Definition at line 109 of file fsm_slave_scan.c.
int ec_fsm_slave_scan_exec | ( | ec_fsm_slave_scan_t * | fsm | ) |
Executes the current state of the state machine.
If the state machine's datagram is not sent or received yet, the execution of the state machine is delayed to the next cycle.
fsm | slave state machine |
Definition at line 141 of file fsm_slave_scan.c.
int ec_fsm_slave_scan_success | ( | const ec_fsm_slave_scan_t * | fsm | ) |
fsm | slave state machine |
Definition at line 159 of file fsm_slave_scan.c.