IgH EtherCAT Master
1.6.2
|
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_print | ( | const ec_fsm_pdo_entry_t * | fsm | ) |
Print the current and desired PDO mapping.
fsm | PDO mapping state machine. |
Definition at line 92 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 151 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 369 of 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 194 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 211 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 272 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 249 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 340 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 384 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 448 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 495 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 419 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 534 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 523 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 68 of file fsm_pdo_entry.c.
void ec_fsm_pdo_entry_clear | ( | ec_fsm_pdo_entry_t * | fsm | ) |
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 107 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 125 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 165 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 181 of file fsm_pdo_entry.c.