Definition in file slave.h.
Go to the source code of this file.
Data Structures | |
| struct | ec_fmmu_t |
| FMMU configuration. More... | |
| struct | ec_eeprom_string_t |
| String object (EEPROM). More... | |
| struct | ec_eeprom_sync_t |
| Sync manager configuration (EEPROM). More... | |
| struct | ec_eeprom_pdo_t |
| PDO description (EEPROM). More... | |
| struct | ec_eeprom_pdo_entry_t |
| PDO entry description (EEPROM). More... | |
| struct | ec_sdo_t |
| CANopen SDO. More... | |
| struct | ec_sdo_entry_t |
| CANopen SDO entry. More... | |
| struct | ec_varsize_t |
| Variable-sized field information. More... | |
| struct | ec_slave |
| EtherCAT slave. More... | |
Enumerations | |
| enum | ec_slave_state_t { EC_SLAVE_STATE_UNKNOWN = 0x00, EC_SLAVE_STATE_INIT = 0x01, EC_SLAVE_STATE_PREOP = 0x02, EC_SLAVE_STATE_SAVEOP = 0x04, EC_SLAVE_STATE_OP = 0x08, EC_ACK = 0x10 } |
| State of an EtherCAT slave. More... | |
| enum | { EC_MBOX_AOE = 0x01, EC_MBOX_EOE = 0x02, EC_MBOX_COE = 0x04, EC_MBOX_FOE = 0x08, EC_MBOX_SOE = 0x10, EC_MBOX_VOE = 0x20 } |
| Supported mailbox protocols. More... | |
| enum | ec_pdo_type_t { EC_RX_PDO, EC_TX_PDO } |
| PDO type. More... | |
Functions | |
| int | ec_slave_init (ec_slave_t *, ec_master_t *, uint16_t, uint16_t) |
| Slave constructor. | |
| void | ec_slave_clear (struct kobject *) |
| Slave destructor. | |
| int | ec_slave_fetch (ec_slave_t *) |
| Reads all necessary information from a slave. | |
| int | ec_slave_sii_read16 (ec_slave_t *, uint16_t, uint16_t *) |
| Reads 16 bit from the slave information interface (SII). | |
| int | ec_slave_sii_read32 (ec_slave_t *, uint16_t, uint32_t *) |
| Reads 32 bit from the slave information interface (SII). | |
| int | ec_slave_sii_write16 (ec_slave_t *, uint16_t, uint16_t) |
| Writes 16 bit of data to the slave information interface (SII). | |
| int | ec_slave_state_change (ec_slave_t *, uint8_t) |
| Does a state transition. | |
| int | ec_slave_prepare_fmmu (ec_slave_t *, const ec_domain_t *, const ec_sync_t *) |
| Prepares an FMMU configuration. | |
| int | ec_slave_fetch_sdo_list (ec_slave_t *) |
| Fetches the SDO dictionary of a slave. | |
| int | ec_slave_fetch_strings (ec_slave_t *, const uint8_t *) |
| Fetches data from a STRING category. | |
| int | ec_slave_fetch_general (ec_slave_t *, const uint8_t *) |
| Fetches data from a GENERAL category. | |
| int | ec_slave_fetch_sync (ec_slave_t *, const uint8_t *, size_t) |
| Fetches data from a SYNC MANAGER category. | |
| int | ec_slave_fetch_pdo (ec_slave_t *, const uint8_t *, size_t, ec_pdo_type_t) |
| Fetches data from a [RT]XPDO category. | |
| int | ec_slave_locate_string (ec_slave_t *, unsigned int, char **) |
| Searches the string list for an index and allocates a new string. | |
| size_t | ec_slave_calc_sync_size (const ec_slave_t *, const ec_sync_t *) |
| uint16_t | ec_slave_calc_eeprom_sync_size (const ec_slave_t *, const ec_eeprom_sync_t *) |
| Calculates the size of a sync manager by evaluating PDO sizes. | |
| void | ec_slave_print (const ec_slave_t *, unsigned int) |
| Outputs all information about a certain slave. | |
| int | ec_slave_check_crc (ec_slave_t *) |
| Outputs the values of the CRC faoult counters and resets them. | |
|
|
|
Supported mailbox protocols.
|
|
|
PDO type.
|
|
||||||||||||||||||||
|
Slave constructor.
|
|
|
Reads all necessary information from a slave.
|
|
||||||||||||||||
|
Reads 16 bit from the slave information interface (SII).
|
|
||||||||||||||||
|
Reads 32 bit from the slave information interface (SII).
|
|
||||||||||||||||
|
Writes 16 bit of data to the slave information interface (SII).
|
|
||||||||||||
|
Does a state transition.
|
|
||||||||||||||||
|
Prepares an FMMU configuration. Configuration data for the FMMU is saved in the slave structure and is written to the slave in ecrt_master_activate(). The FMMU configuration is done in a way, that the complete data range of the corresponding sync manager is covered. Seperate FMMUs arce configured for each domain. If the FMMU configuration is already prepared, the function returns with success.
|
|
|
Fetches the SDO dictionary of a slave.
|
|
||||||||||||
|
Fetches data from a STRING category.
|
|
||||||||||||
|
Fetches data from a GENERAL category.
|
|
||||||||||||||||
|
Fetches data from a SYNC MANAGER category.
|
|
||||||||||||||||||||
|
Fetches data from a [RT]XPDO category.
|
|
||||||||||||||||
|
Searches the string list for an index and allocates a new string.
|
|
||||||||||||
|
|
|
||||||||||||
|
Calculates the size of a sync manager by evaluating PDO sizes.
|
|
||||||||||||
|
Outputs all information about a certain slave. Verbosity:
|
|
|
Outputs the values of the CRC faoult counters and resets them.
|
1.4.6