|
IgH EtherCAT Master
1.6.0
|
EtherCAT PDO mapping state machine. More...
Go to the source code of this file.
EtherCAT PDO mapping state machine.
Definition in file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_read_state_start | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Request reading the number of mapped PDO entries.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 186 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_read_state_count | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Read number of mapped PDO entries.
| fsm | finite state machine |
| datagram | Datagram to use. |
Definition at line 203 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_read_state_entry | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Read PDO entry information.
| fsm | finite state machine |
| datagram | Datagram to use. |
Definition at line 264 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_read_action_next | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Read next PDO entry.
| fsm | finite state machine |
| datagram | Datagram to use. |
Definition at line 241 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_conf_state_start | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Start PDO mapping.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 332 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_conf_state_zero_entry_count | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Set the number of mapped entries to zero.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 376 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_conf_state_map_entry | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Add a PDO entry.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 440 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_conf_state_set_entry_count | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Set the number of entries.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 487 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_conf_action_map | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Starts to add a PDO entry.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 411 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_state_end | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
State: END.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 526 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_state_error | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
State: ERROR.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 515 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_init | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_fsm_coe_t * | fsm_coe | ||
| ) |
Constructor.
| fsm | PDO mapping state machine. |
| fsm_coe | CoE state machine to use. |
Definition at line 60 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_clear | ( | ec_fsm_pdo_entry_t * | fsm | ) |
| void ec_fsm_pdo_entry_print | ( | ec_fsm_pdo_entry_t * | fsm | ) |
Print the current and desired PDO mapping.
| fsm | PDO mapping state machine. |
Definition at line 84 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_start_reading | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_slave_t * | slave, | ||
| ec_pdo_t * | pdo | ||
| ) |
Start reading a PDO's entries.
| fsm | PDO mapping state machine. |
| slave | Slave to configure. |
| pdo | PDO to read entries for. |
Definition at line 99 of file fsm_pdo_entry.c.
| void ec_fsm_pdo_entry_start_configuration | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_slave_t * | slave, | ||
| const ec_pdo_t * | pdo, | ||
| const ec_pdo_t * | cur_pdo | ||
| ) |
Start PDO mapping state machine.
| fsm | PDO mapping state machine. |
| slave | Slave to configure. |
| pdo | PDO with the desired entries. |
| cur_pdo | Current PDO mapping. |
Definition at line 117 of file fsm_pdo_entry.c.
| int ec_fsm_pdo_entry_running | ( | const ec_fsm_pdo_entry_t * | fsm | ) |
Get running state.
| fsm | PDO mapping state machine. |
Definition at line 143 of file fsm_pdo_entry.c.
| int ec_fsm_pdo_entry_exec | ( | ec_fsm_pdo_entry_t * | fsm, |
| ec_datagram_t * | datagram | ||
| ) |
Executes the current state.
| fsm | PDO mapping state machine. |
| datagram | Datagram to use. |
Definition at line 157 of file fsm_pdo_entry.c.
| int ec_fsm_pdo_entry_success | ( | const ec_fsm_pdo_entry_t * | fsm | ) |
Get execution result.
| fsm | PDO mapping state machine. |
Definition at line 173 of file fsm_pdo_entry.c.
| ec_pdo_entry_t* ec_fsm_pdo_entry_conf_next_entry | ( | const ec_fsm_pdo_entry_t * | fsm, |
| const struct list_head * | list | ||
| ) |
Process next PDO entry.
| fsm | PDO mapping state machine. |
| list | current entry list item |
Definition at line 361 of file fsm_pdo_entry.c.