fp@1335: /****************************************************************************** fp@1335: * fp@1335: * $Id$ fp@1335: * fp@1335: * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH fp@1335: * fp@1335: * This file is part of the IgH EtherCAT Master. fp@1335: * fp@1335: * The IgH EtherCAT Master is free software; you can redistribute it and/or fp@1335: * modify it under the terms of the GNU General Public License version 2, as fp@1335: * published by the Free Software Foundation. fp@1335: * fp@1335: * The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@1335: * but WITHOUT ANY WARRANTY; without even the implied warranty of fp@1335: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@1335: * Public License for more details. fp@1335: * fp@1335: * You should have received a copy of the GNU General Public License along fp@1335: * with the IgH EtherCAT Master; if not, write to the Free Software fp@1335: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@1335: * fp@1363: * --- fp@1363: * fp@1363: * The license mentioned above concerns the source code only. Using the fp@1363: * EtherCAT technology and brand is only permitted in compliance with the fp@1363: * industrial property and similar rights of Beckhoff Automation GmbH. fp@1335: * fp@1335: *****************************************************************************/ fp@1335: fp@2524: /** \file fp@2524: * FoE defines. fp@2524: */ fp@2524: fp@1335: #ifndef __FOE_H__ fp@1335: #define __FOE_H__ fp@1335: fp@1335: /*****************************************************************************/ fp@1335: fp@2524: /** FoE error enumeration type. fp@2524: */ fp@1335: typedef enum { fp@2524: FOE_BUSY = 0, /**< Busy. */ fp@2524: FOE_READY = 1, /**< Ready. */ fp@2524: FOE_IDLE = 2, /**< Idle. */ fp@2524: FOE_WC_ERROR = 3, /**< Working counter error. */ fp@2524: FOE_RECEIVE_ERROR = 4, /**< Receive error. */ fp@2524: FOE_PROT_ERROR = 5, /**< Protocol error. */ fp@2524: FOE_NODATA_ERROR = 6, /**< No data error. */ fp@2524: FOE_PACKETNO_ERROR = 7, /**< Packet number error. */ fp@2524: FOE_OPCODE_ERROR = 8, /**< OpCode error. */ fp@2524: FOE_TIMEOUT_ERROR = 9, /**< Timeout error. */ fp@2524: FOE_SEND_RX_DATA_ERROR = 10, /**< Error sending received data. */ fp@2524: FOE_RX_DATA_ACK_ERROR = 11, /**< Error acknowledging received data. */ fp@2524: FOE_ACK_ERROR = 12, /**< Acknowledge error. */ fp@2524: FOE_MBOX_FETCH_ERROR = 13, /**< Error fetching data from mailbox. */ fp@2524: FOE_READ_NODATA_ERROR = 14, /**< No data while reading. */ fp@2524: FOE_MBOX_PROT_ERROR = 15, /**< Mailbox protocol error. */ fp@1335: } ec_foe_error_t; fp@1335: fp@1335: /*****************************************************************************/ fp@1335: fp@1335: #endif