summaryrefslogtreecommitdiff
path: root/net/ethercat/master/foe.h
blob: 44090b0b743505a4679c70bcd5c528ec1e4b8dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/******************************************************************************
 *
 *  $Id$
 *
 *  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH
 *
 *  This file is part of the IgH EtherCAT Master.
 *
 *  The IgH EtherCAT Master is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License version 2, as
 *  published by the Free Software Foundation.
 *
 *  The IgH EtherCAT Master is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 *  Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with the IgH EtherCAT Master; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 *  ---
 *
 *  The license mentioned above concerns the source code only. Using the
 *  EtherCAT technology and brand is only permitted in compliance with the
 *  industrial property and similar rights of Beckhoff Automation GmbH.
 *
 *****************************************************************************/

/** \file
 * FoE defines.
 */

#ifndef __FOE_H__
#define __FOE_H__

/*****************************************************************************/

/** FoE error enumeration type.
 */
typedef enum {
    FOE_BUSY               = 0, /**< Busy. */
    FOE_READY              = 1, /**< Ready. */
    FOE_IDLE               = 2, /**< Idle. */
    FOE_WC_ERROR           = 3, /**< Working counter error. */
    FOE_RECEIVE_ERROR      = 4, /**< Receive error. */
    FOE_PROT_ERROR         = 5, /**< Protocol error. */
    FOE_NODATA_ERROR       = 6, /**< No data error. */
    FOE_PACKETNO_ERROR     = 7, /**< Packet number error. */
    FOE_OPCODE_ERROR       = 8, /**< OpCode error. */
    FOE_TIMEOUT_ERROR      = 9, /**< Timeout error. */
    FOE_SEND_RX_DATA_ERROR = 10, /**< Error sending received data. */
    FOE_RX_DATA_ACK_ERROR  = 11, /**< Error acknowledging received data. */
    FOE_ACK_ERROR          = 12, /**< Acknowledge error. */
    FOE_MBOX_FETCH_ERROR   = 13, /**< Error fetching data from mailbox. */
    FOE_READ_NODATA_ERROR  = 14, /**< No data while reading. */
    FOE_MBOX_PROT_ERROR    = 15, /**< Mailbox protocol error. */
} ec_foe_error_t;

/*****************************************************************************/

#endif