equal
deleted
inserted
replaced
177 ssize_t ec_mac_print(const uint8_t *, char *); |
177 ssize_t ec_mac_print(const uint8_t *, char *); |
178 int ec_mac_is_zero(const uint8_t *); |
178 int ec_mac_is_zero(const uint8_t *); |
179 |
179 |
180 /*****************************************************************************/ |
180 /*****************************************************************************/ |
181 |
181 |
182 /** Code - Message pair. |
182 /** Code/Message pair. |
183 * |
183 * |
184 * Some EtherCAT datagrams support reading a status code to display a certain |
184 * Some EtherCAT datagrams support reading a status code to display a certain |
185 * message. This type allows to map a code to a message string. |
185 * message. This type allows to map a code to a message string. |
186 */ |
186 */ |
187 typedef struct { |
187 typedef struct { |
188 uint32_t code; /**< Code. */ |
188 uint32_t code; /**< Code. */ |
189 const char *message; /**< Message belonging to \a code. */ |
189 const char *message; /**< Message belonging to \a code. */ |
190 } |
190 } ec_code_msg_t; |
191 ec_code_msg_t; |
|
192 |
191 |
193 /*****************************************************************************/ |
192 /*****************************************************************************/ |
194 |
193 |
195 /** Master request state. |
194 /** Master request state. |
196 */ |
195 */ |
202 } |
201 } |
203 ec_request_state_t; |
202 ec_request_state_t; |
204 |
203 |
205 /*****************************************************************************/ |
204 /*****************************************************************************/ |
206 |
205 |
|
206 /** Origin type. |
|
207 */ |
|
208 typedef enum { |
|
209 EC_ORIG_INTERNAL, /**< Internal. */ |
|
210 EC_ORIG_EXTERNAL /**< External. */ |
|
211 } ec_origin_t; |
|
212 |
|
213 /*****************************************************************************/ |
|
214 |
207 typedef struct ec_slave ec_slave_t; /**< \see ec_slave. */ |
215 typedef struct ec_slave ec_slave_t; /**< \see ec_slave. */ |
208 typedef struct ec_sdo ec_sdo_t; /**< \see ec_sdo */ |
216 typedef struct ec_sdo ec_sdo_t; /**< \see ec_sdo */ |
209 |
217 |
210 /*****************************************************************************/ |
218 /*****************************************************************************/ |
211 |
219 |