25 * EtherCAT technology and brand is only permitted in compliance with the |
25 * EtherCAT technology and brand is only permitted in compliance with the |
26 * industrial property and similar rights of Beckhoff Automation GmbH. |
26 * industrial property and similar rights of Beckhoff Automation GmbH. |
27 * |
27 * |
28 *****************************************************************************/ |
28 *****************************************************************************/ |
29 |
29 |
|
30 /** \file |
|
31 * FoE defines. |
|
32 */ |
|
33 |
30 #ifndef __FOE_H__ |
34 #ifndef __FOE_H__ |
31 #define __FOE_H__ |
35 #define __FOE_H__ |
32 |
36 |
33 /*****************************************************************************/ |
37 /*****************************************************************************/ |
34 |
38 |
|
39 /** FoE error enumeration type. |
|
40 */ |
35 typedef enum { |
41 typedef enum { |
36 FOE_BUSY = 0, |
42 FOE_BUSY = 0, /**< Busy. */ |
37 FOE_READY = 1, |
43 FOE_READY = 1, /**< Ready. */ |
38 FOE_IDLE = 2, |
44 FOE_IDLE = 2, /**< Idle. */ |
39 FOE_WC_ERROR = 3, |
45 FOE_WC_ERROR = 3, /**< Working counter error. */ |
40 FOE_RECEIVE_ERROR = 4, |
46 FOE_RECEIVE_ERROR = 4, /**< Receive error. */ |
41 FOE_PROT_ERROR = 5, |
47 FOE_PROT_ERROR = 5, /**< Protocol error. */ |
42 FOE_NODATA_ERROR = 6, |
48 FOE_NODATA_ERROR = 6, /**< No data error. */ |
43 FOE_PACKETNO_ERROR = 7, |
49 FOE_PACKETNO_ERROR = 7, /**< Packet number error. */ |
44 FOE_OPCODE_ERROR = 8, |
50 FOE_OPCODE_ERROR = 8, /**< OpCode error. */ |
45 FOE_TIMEOUT_ERROR = 9, |
51 FOE_TIMEOUT_ERROR = 9, /**< Timeout error. */ |
46 FOE_SEND_RX_DATA_ERROR = 10, |
52 FOE_SEND_RX_DATA_ERROR = 10, /**< Error sending received data. */ |
47 FOE_RX_DATA_ACK_ERROR = 11, |
53 FOE_RX_DATA_ACK_ERROR = 11, /**< Error acknowledging received data. */ |
48 FOE_ACK_ERROR = 12, |
54 FOE_ACK_ERROR = 12, /**< Acknowledge error. */ |
49 FOE_MBOX_FETCH_ERROR = 13, |
55 FOE_MBOX_FETCH_ERROR = 13, /**< Error fetching data from mailbox. */ |
50 FOE_READ_NODATA_ERROR = 14, |
56 FOE_READ_NODATA_ERROR = 14, /**< No data while reading. */ |
51 FOE_MBOX_PROT_ERROR = 15, |
57 FOE_MBOX_PROT_ERROR = 15, /**< Mailbox protocol error. */ |
52 } ec_foe_error_t; |
58 } ec_foe_error_t; |
53 |
59 |
54 /*****************************************************************************/ |
60 /*****************************************************************************/ |
55 |
61 |
56 #endif |
62 #endif |