EtherCAT domain structure.
More...
Go to the source code of this file.
EtherCAT domain structure.
Definition in file domain.h.
◆ ec_domain_init()
Domain constructor.
- Parameters
-
| domain | EtherCAT domain. |
| master | Parent master. |
| index | Index. |
Definition at line 57 of file domain.c.
◆ ec_domain_clear()
Domain destructor.
- Parameters
-
Definition at line 87 of file domain.c.
◆ ec_domain_add_fmmu_config()
Adds an FMMU configuration to the domain.
- Parameters
-
| domain | EtherCAT domain. |
| fmmu | FMMU configuration. |
Definition at line 121 of file domain.c.
◆ ec_domain_finish()
| int ec_domain_finish |
( |
ec_domain_t * | domain, |
|
|
uint32_t | base_address ) |
Finishes a domain.
This allocates the necessary datagrams and writes the correct logical addresses to every configured FMMU.
An FMMU always covers a sync manager's complete logical address range and is never split itself; its configuration does not change here. If that range alone exceeds the maximum datagram size, though, it is addressed by several consecutive, disjoint datagrams that read/write the sync manager's data in multiple steps. The last of these datagrams then covers the sync manager's last byte, so that a buffer flip is triggered as usual.
- Return values
-
- Parameters
-
| domain | EtherCAT domain. |
| base_address | Logical base address. |
Definition at line 230 of file domain.c.
◆ ec_domain_fmmu_count()
| unsigned int ec_domain_fmmu_count |
( |
const ec_domain_t * | domain | ) |
|
Get the number of FMMU configurations of the domain.
Definition at line 376 of file domain.c.
◆ ec_domain_find_fmmu()
Get a certain FMMU configuration via its position in the list.
- Returns
- FMMU at position pos, or NULL.
- Parameters
-
| domain | EtherCAT domain. |
| pos | List position. |
Definition at line 394 of file domain.c.