equal
deleted
inserted
replaced
77 unsigned int has_general; /**< General category present. */ |
77 unsigned int has_general; /**< General category present. */ |
78 char *group; /**< Group name. */ |
78 char *group; /**< Group name. */ |
79 char *image; /**< Image name. */ |
79 char *image; /**< Image name. */ |
80 char *order; /**< Order number. */ |
80 char *order; /**< Order number. */ |
81 char *name; /**< Slave name. */ |
81 char *name; /**< Slave name. */ |
82 uint8_t physical_layer[EC_SLAVE_MAX_PORTS]; /**< Port media. */ |
82 uint8_t physical_layer[EC_MAX_PORTS]; /**< Port media. */ |
83 ec_sii_coe_details_t coe_details; /**< CoE detail flags. */ |
83 ec_sii_coe_details_t coe_details; /**< CoE detail flags. */ |
84 ec_sii_general_flags_t general_flags; /**< General flags. */ |
84 ec_sii_general_flags_t general_flags; /**< General flags. */ |
85 int16_t current_on_ebus; /**< Power consumption in mA. */ |
85 int16_t current_on_ebus; /**< Power consumption in mA. */ |
86 |
86 |
87 // SyncM |
87 // SyncM |
126 uint8_t base_revision; /**< Revision. */ |
126 uint8_t base_revision; /**< Revision. */ |
127 uint16_t base_build; /**< Build number. */ |
127 uint16_t base_build; /**< Build number. */ |
128 uint16_t base_fmmu_count; /**< Number of supported FMMUs. */ |
128 uint16_t base_fmmu_count; /**< Number of supported FMMUs. */ |
129 |
129 |
130 // data link status |
130 // data link status |
131 ec_slave_port_t ports[EC_SLAVE_MAX_PORTS]; |
131 ec_slave_port_t ports[EC_MAX_PORTS]; |
132 |
132 |
133 // SII |
133 // SII |
134 uint16_t *sii_words; /**< Complete SII image. */ |
134 uint16_t *sii_words; /**< Complete SII image. */ |
135 size_t sii_nwords; /**< Size of the SII contents in words. */ |
135 size_t sii_nwords; /**< Size of the SII contents in words. */ |
136 |
136 |
159 int ec_slave_fetch_sii_syncs(ec_slave_t *, const uint8_t *, size_t); |
159 int ec_slave_fetch_sii_syncs(ec_slave_t *, const uint8_t *, size_t); |
160 int ec_slave_fetch_sii_pdos(ec_slave_t *, const uint8_t *, size_t, |
160 int ec_slave_fetch_sii_pdos(ec_slave_t *, const uint8_t *, size_t, |
161 ec_direction_t); |
161 ec_direction_t); |
162 |
162 |
163 // misc. |
163 // misc. |
164 ec_sync_t *ec_slave_get_pdo_sync(ec_slave_t *, ec_direction_t); |
164 ec_sync_t *ec_slave_get_sync(ec_slave_t *, uint8_t); |
|
165 |
165 void ec_slave_sdo_dict_info(const ec_slave_t *, |
166 void ec_slave_sdo_dict_info(const ec_slave_t *, |
166 unsigned int *, unsigned int *); |
167 unsigned int *, unsigned int *); |
167 ec_sdo_t *ec_slave_get_sdo(ec_slave_t *, uint16_t); |
168 ec_sdo_t *ec_slave_get_sdo(ec_slave_t *, uint16_t); |
168 const ec_sdo_t *ec_slave_get_sdo_const(const ec_slave_t *, uint16_t); |
169 const ec_sdo_t *ec_slave_get_sdo_const(const ec_slave_t *, uint16_t); |
169 const ec_sdo_t *ec_slave_get_sdo_by_pos_const(const ec_slave_t *, uint16_t); |
170 const ec_sdo_t *ec_slave_get_sdo_by_pos_const(const ec_slave_t *, uint16_t); |