140 uint16_t tx_mailbox_offset; /**< Mailbox address (slave to master). */ |
140 uint16_t tx_mailbox_offset; /**< Mailbox address (slave to master). */ |
141 uint16_t tx_mailbox_size; /**< Mailbox size (slave to master). */ |
141 uint16_t tx_mailbox_size; /**< Mailbox size (slave to master). */ |
142 uint16_t mailbox_protocols; /**< Supported mailbox protocols. */ |
142 uint16_t mailbox_protocols; /**< Supported mailbox protocols. */ |
143 |
143 |
144 // Strings |
144 // Strings |
145 char **strings; /**< Strings in EEPROM categories. */ |
145 char **strings; /**< Strings in SII categories. */ |
146 unsigned int string_count; /**< number of EEPROM strings */ |
146 unsigned int string_count; /**< number of SII strings */ |
147 |
147 |
148 // General |
148 // General |
149 unsigned int has_general; /**< General category present. */ |
149 unsigned int has_general; /**< General category present. */ |
150 char *group; /**< slave group acc. to EEPROM */ |
150 char *group; /**< slave group acc. to SII */ |
151 char *image; /**< slave image name acc. to EEPROM */ |
151 char *image; /**< slave image name acc. to SII */ |
152 char *order; /**< slave order number acc. to EEPROM */ |
152 char *order; /**< slave order number acc. to SII */ |
153 char *name; /**< slave name acc. to EEPROM */ |
153 char *name; /**< slave name acc. to SII */ |
154 uint8_t physical_layer[4]; /**< port media */ |
154 uint8_t physical_layer[4]; /**< port media */ |
155 ec_sii_coe_details_t coe_details; /**< CoE detail flags. */ |
155 ec_sii_coe_details_t coe_details; /**< CoE detail flags. */ |
156 ec_sii_general_flags_t general_flags; /**< General flags. */ |
156 ec_sii_general_flags_t general_flags; /**< General flags. */ |
157 int16_t current_on_ebus; /**< power consumption */ |
157 int16_t current_on_ebus; /**< power consumption */ |
158 |
158 |
159 // SyncM |
159 // SyncM |
160 ec_sync_t *syncs; /**< EEPROM SYNC MANAGER categories */ |
160 ec_sync_t *syncs; /**< SII SYNC MANAGER categories */ |
161 unsigned int sync_count; /**< number of sync managers in EEPROM */ |
161 unsigned int sync_count; /**< number of sync managers in SII */ |
162 |
162 |
163 // [RT]XPDO |
163 // [RT]XPDO |
164 struct list_head pdos; /**< EEPROM [RT]XPDO categories */ |
164 struct list_head pdos; /**< SII [RT]XPDO categories */ |
165 } ec_sii_t; |
165 } ec_sii_t; |
166 |
166 |
167 /*****************************************************************************/ |
167 /*****************************************************************************/ |
168 |
168 |
169 /** EtherCAT slave. |
169 /** EtherCAT slave. |
195 // data link status |
195 // data link status |
196 uint8_t dl_link[4]; /**< link detected */ |
196 uint8_t dl_link[4]; /**< link detected */ |
197 uint8_t dl_loop[4]; /**< loop closed */ |
197 uint8_t dl_loop[4]; /**< loop closed */ |
198 uint8_t dl_signal[4]; /**< detected signal on RX port */ |
198 uint8_t dl_signal[4]; /**< detected signal on RX port */ |
199 |
199 |
200 // EEPROM |
200 // SII |
201 uint8_t *eeprom_data; /**< Complete EEPROM image */ |
201 uint8_t *sii_data; /**< Complete SII image */ |
202 size_t eeprom_size; /**< size of the EEPROM contents in bytes */ |
202 size_t sii_size; /**< size of the SII contents in bytes */ |
203 |
203 |
204 // slave information interface |
204 // slave information interface |
205 ec_sii_t sii; /**< SII data. */ |
205 ec_sii_t sii; /**< SII data. */ |
206 |
206 |
207 struct kobject sdo_kobj; /**< kobject for Sdos */ |
207 struct kobject sdo_kobj; /**< kobject for Sdos */ |