|
IgH EtherCAT Master
1.6.9
|
EtherCAT slave scanning state machine. More...
Go to the source code of this file.
Data Structures | |
| struct | ec_fsm_slave_scan |
| Finite state machine for scanning an EtherCAT slave. More... | |
Typedefs | |
| typedef struct ec_fsm_slave_scan | ec_fsm_slave_scan_t |
Functions | |
| void | ec_fsm_slave_scan_init (ec_fsm_slave_scan_t *, ec_datagram_t *, ec_fsm_slave_config_t *, ec_fsm_pdo_t *) |
| Constructor. | |
| void | ec_fsm_slave_scan_clear (ec_fsm_slave_scan_t *) |
| Destructor. | |
| void | ec_fsm_slave_scan_start (ec_fsm_slave_scan_t *, ec_slave_t *) |
| Start slave scan state machine. | |
| int | ec_fsm_slave_scan_exec (ec_fsm_slave_scan_t *) |
| Executes the current state of the state machine. | |
| int | ec_fsm_slave_scan_success (const ec_fsm_slave_scan_t *) |
EtherCAT slave scanning state machine.
Definition in file fsm_slave_scan.h.
| typedef struct ec_fsm_slave_scan ec_fsm_slave_scan_t |
Definition at line 43 of file fsm_slave_scan.h.
| 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.