Definition in file master.h.
Go to the source code of this file.
Data Structures | |
| struct | ec_stats_t |
| Cyclic statistics. More... | |
| struct | ec_master |
| EtherCAT master. More... | |
Enumerations | |
| enum | ec_master_mode_t { EC_MASTER_MODE_ORPHANED, EC_MASTER_MODE_IDLE, EC_MASTER_MODE_RUNNING } |
| EtherCAT master mode. | |
Functions | |
| int | ec_master_init (ec_master_t *, unsigned int, unsigned int) |
| Master constructor. | |
| void | ec_master_clear (struct kobject *) |
| Master destructor. | |
| void | ec_master_reset (ec_master_t *) |
| Resets the master. | |
| void | ec_master_idle_start (ec_master_t *) |
| Starts the Idle mode. | |
| void | ec_master_idle_stop (ec_master_t *) |
| Stops the Idle mode. | |
| void | ec_master_eoe_start (ec_master_t *) |
| Starts Ethernet-over-EtherCAT processing for all EoE-capable slaves. | |
| void | ec_master_eoe_stop (ec_master_t *) |
| Stops the Ethernet-over-EtherCAT processing. | |
| void | ec_master_receive (ec_master_t *, const uint8_t *, size_t) |
| Processes a received frame. | |
| void | ec_master_queue_datagram (ec_master_t *, ec_datagram_t *) |
| Places a datagram in the datagram queue. | |
| int | ec_master_simple_io (ec_master_t *, ec_datagram_t *) |
| Sends a single datagram and waits for its reception. | |
| int | ec_master_bus_scan (ec_master_t *) |
| Scans the EtherCAT bus for slaves. | |
| void | ec_master_clear_slaves (ec_master_t *) |
| Clears all slaves. | |
| void | ec_sync_config (const ec_sync_t *, const ec_slave_t *, uint8_t *) |
| Initializes a sync manager configuration page. | |
| void | ec_eeprom_sync_config (const ec_eeprom_sync_t *, const ec_slave_t *, uint8_t *) |
| Initializes a sync manager configuration page with EEPROM data. | |
| void | ec_fmmu_config (const ec_fmmu_t *, const ec_slave_t *, uint8_t *) |
| Initializes an FMMU configuration page. | |
| void | ec_master_output_stats (ec_master_t *) |
| Output statistics in cyclic mode. | |
|
||||||||||||||||
|
Master constructor.
|
|
|
Master destructor. Removes all pending datagrams, clears the slave list, clears all domains and frees the device.
|
|
|
Resets the master. Note: This function has to be called, everytime ec_master_release() is called, to free the slave list, domains etc.
|
|
||||||||||||||||
|
Processes a received frame. This function is called by the network driver for every received frame.
|
|
||||||||||||
|
Sends a single datagram and waits for its reception. If the slave doesn't respond, the datagram is sent again.
|
|
|
Scans the EtherCAT bus for slaves. Creates a list of slave structures for further processing.
|
|
||||||||||||||||
|
Initializes a sync manager configuration page. The referenced memory (data) must be at least EC_SYNC_SIZE bytes.
|
|
||||||||||||||||
|
Initializes a sync manager configuration page with EEPROM data. The referenced memory (data) must be at least EC_SYNC_SIZE bytes.
|
|
||||||||||||||||
|
Initializes an FMMU configuration page. The referenced memory (data) must be at least EC_FMMU_SIZE bytes.
|
|
|
Output statistics in cyclic mode. This function outputs statistical data on demand, but not more often than necessary. The output happens at most once a second.
|
1.4.6