|
IgH EtherCAT Master
1.7.0
|
Vendor specific over EtherCAT protocol handler functions. More...
Go to the source code of this file.
Macros | |
| #define | EC_VOE_HEADER_SIZE 6 |
| VoE header size. | |
| #define | EC_VOE_RESPONSE_TIMEOUT 500 |
| VoE response timeout in [ms]. | |
Functions | |
| void | ec_voe_handler_state_write_start (ec_voe_handler_t *voe) |
| Start writing VoE data. | |
| void | ec_voe_handler_state_write_response (ec_voe_handler_t *voe) |
| Wait for the mailbox response. | |
| void | ec_voe_handler_state_read_start (ec_voe_handler_t *voe) |
| Start reading VoE data. | |
| void | ec_voe_handler_state_read_nosync_start (ec_voe_handler_t *voe) |
| Start reading VoE data without sending a sync message before. | |
| void | ec_voe_handler_state_read_response (ec_voe_handler_t *voe) |
| Wait for the VoE read response and process it. | |
| void | ec_voe_handler_state_end (ec_voe_handler_t *voe) |
| Successful termination state function. | |
| void | ec_voe_handler_state_error (ec_voe_handler_t *voe) |
| Failure termination state function. | |
| int | ec_voe_handler_init (ec_voe_handler_t *voe, ec_slave_config_t *sc, size_t size) |
| VoE handler constructor. | |
| void | ec_voe_handler_clear (ec_voe_handler_t *voe) |
| VoE handler destructor. | |
| void | ec_voe_handler_release_mbox_lock (ec_voe_handler_t *voe) |
| Releases the mailbox read lock, if the handler holds it. | |
| size_t | ec_voe_handler_mem_size (const ec_voe_handler_t *voe) |
| Get usable memory size. | |
| int | ecrt_voe_handler_send_header (ec_voe_handler_t *voe, uint32_t vendor_id, uint16_t vendor_type) |
| Sets the VoE header for future send operations. | |
| int | ecrt_voe_handler_received_header (const ec_voe_handler_t *voe, uint32_t *vendor_id, uint16_t *vendor_type) |
| Reads the header data of a received VoE message. | |
| uint8_t * | ecrt_voe_handler_data (const ec_voe_handler_t *voe) |
| Access to the VoE handler's data. | |
| size_t | ecrt_voe_handler_data_size (const ec_voe_handler_t *voe) |
| Returns the current data size. | |
| int | ecrt_voe_handler_read (ec_voe_handler_t *voe) |
| Start a VoE read operation. | |
| int | ecrt_voe_handler_read_nosync (ec_voe_handler_t *voe) |
| Start a VoE read operation without querying the sync manager status. | |
| int | ecrt_voe_handler_write (ec_voe_handler_t *voe, size_t size) |
| Start a VoE write operation. | |
| ec_request_state_t | ecrt_voe_handler_execute (ec_voe_handler_t *voe) |
| Execute the handler. | |
Vendor specific over EtherCAT protocol handler functions.
Definition in file voe_handler.c.
| #define EC_VOE_HEADER_SIZE 6 |
VoE header size.
Definition at line 37 of file voe_handler.c.
| #define EC_VOE_RESPONSE_TIMEOUT 500 |
VoE response timeout in [ms].
Definition at line 41 of file voe_handler.c.
| void ec_voe_handler_state_write_start | ( | ec_voe_handler_t * | voe | ) |
Start writing VoE data.
Definition at line 228 of file voe_handler.c.
| void ec_voe_handler_state_write_response | ( | ec_voe_handler_t * | voe | ) |
Wait for the mailbox response.
Definition at line 267 of file voe_handler.c.
| void ec_voe_handler_state_read_start | ( | ec_voe_handler_t * | voe | ) |
Start reading VoE data.
Definition at line 312 of file voe_handler.c.
| void ec_voe_handler_state_read_nosync_start | ( | ec_voe_handler_t * | voe | ) |
Start reading VoE data without sending a sync message before.
The mailbox is fetched once without checking it before. This might lead to an empty reponse from the client.
Definition at line 339 of file voe_handler.c.
| void ec_voe_handler_state_read_response | ( | ec_voe_handler_t * | voe | ) |
Wait for the VoE read response and process it.
Definition at line 363 of file voe_handler.c.
| void ec_voe_handler_state_end | ( | ec_voe_handler_t * | voe | ) |
Successful termination state function.
Definition at line 433 of file voe_handler.c.
| void ec_voe_handler_state_error | ( | ec_voe_handler_t * | voe | ) |
Failure termination state function.
Definition at line 441 of file voe_handler.c.
| int ec_voe_handler_init | ( | ec_voe_handler_t * | voe, |
| ec_slave_config_t * | sc, | ||
| size_t | size ) |
VoE handler constructor.
| voe | VoE handler. |
| sc | Parent slave configuration. |
| size | Size of memory to reserve. |
Definition at line 61 of file voe_handler.c.
| void ec_voe_handler_clear | ( | ec_voe_handler_t * | voe | ) |
| void ec_voe_handler_release_mbox_lock | ( | ec_voe_handler_t * | voe | ) |
Releases the mailbox read lock, if the handler holds it.
The lock is held while a mailbox check or fetch is in progress. This has to be called, before such a read is abandoned, e. g. because a new request is started or the slave configuration is detached.
| voe | VoE handler. |
Definition at line 101 of file voe_handler.c.
| size_t ec_voe_handler_mem_size | ( | const ec_voe_handler_t * | voe | ) |
Get usable memory size.
| voe | VoE handler. |
Definition at line 119 of file voe_handler.c.