|
| void | memcpy_swap32 (void *dst, const void *src) |
| | Host-architecture-independent 32-bit swap function.
|
| int | ec_fsm_eoe_prepare_set (ec_fsm_eoe_t *fsm, ec_datagram_t *datagram) |
| | Prepare a set IP parameters operation.
|
| void | ec_fsm_eoe_set_ip_start (ec_fsm_eoe_t *fsm, ec_datagram_t *datagram) |
| | EoE state: SET IP START.
|
| void | ec_fsm_eoe_set_ip_request (ec_fsm_eoe_t *fsm, ec_datagram_t *datagram) |
| | EoE state: SET IP REQUEST.
|
| void | ec_fsm_eoe_set_ip_check (ec_fsm_eoe_t *fsm, ec_datagram_t *datagram) |
| | EoE state: SET IP CHECK.
|
| void | ec_fsm_eoe_set_ip_response (ec_fsm_eoe_t *fsm, ec_datagram_t *datagram) |
| | EoE state: SET IP RESPONSE.
|
| void | ec_fsm_eoe_end (ec_fsm_eoe_t *fsm, ec_datagram_t *datagram) |
| | State: END.
|
| void | ec_fsm_eoe_error (ec_fsm_eoe_t *fsm, ec_datagram_t *datagram) |
| | State: ERROR.
|
| void | ec_fsm_eoe_init (ec_fsm_eoe_t *fsm) |
| | Constructor.
|
| void | ec_fsm_eoe_clear (ec_fsm_eoe_t *fsm) |
| | Destructor.
|
| void | ec_fsm_eoe_set_ip_param (ec_fsm_eoe_t *fsm, ec_slave_t *slave, ec_eoe_request_t *request) |
| | Starts to set the EoE IP partameters of a slave.
|
| int | ec_fsm_eoe_exec (ec_fsm_eoe_t *fsm, ec_datagram_t *datagram) |
| | Executes the current state of the state machine.
|
| int | ec_fsm_eoe_success (const ec_fsm_eoe_t *fsm) |
| | Returns, if the state machine terminated with success.
|
EtherCAT EoE state machines.
Definition in file fsm_eoe.c.
| void memcpy_swap32 |
( |
void * | dst, |
|
|
const void * | src ) |
Host-architecture-independent 32-bit swap function.
The internal storage of struct in_addr is always big-endian. The mailbox protocol format to supply IPv4 adresses is little-endian (Yuck!). So we need a swap function, that is independent of the CPU architecture. ntohl()/htonl() can not be used, because they evaluate to NOPs if the host architecture matches the target architecture!
Definition at line 65 of file fsm_eoe.c.