master/debug.h
changeset 231 767548c75bf3
child 246 0bf7c769de06
equal deleted inserted replaced
230:382bdb9138ec 231:767548c75bf3
       
     1 /******************************************************************************
       
     2  *
       
     3  *  $Id$
       
     4  *
       
     5  *  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
       
     6  *
       
     7  *  This file is part of the IgH EtherCAT Master.
       
     8  *
       
     9  *  The IgH EtherCAT Master is free software; you can redistribute it
       
    10  *  and/or modify it under the terms of the GNU General Public License
       
    11  *  as published by the Free Software Foundation; version 2 of the License.
       
    12  *
       
    13  *  The IgH EtherCAT Master is distributed in the hope that it will be
       
    14  *  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    16  *  GNU General Public License for more details.
       
    17  *
       
    18  *  You should have received a copy of the GNU General Public License
       
    19  *  along with the IgH EtherCAT Master; if not, write to the Free Software
       
    20  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    21  *
       
    22  *****************************************************************************/
       
    23 
       
    24 /**
       
    25    \file
       
    26    Network interface for debugging purposes.
       
    27 */
       
    28 
       
    29 /*****************************************************************************/
       
    30 
       
    31 #include <linux/netdevice.h>
       
    32 
       
    33 /*****************************************************************************/
       
    34 
       
    35 /**
       
    36    Debugging network interface.
       
    37 */
       
    38 
       
    39 typedef struct
       
    40 {
       
    41     struct net_device *dev; /**< net_device for virtual ethernet device */
       
    42     struct net_device_stats stats; /**< device statistics */
       
    43     uint8_t opened; /**< net_device is opened */
       
    44 }
       
    45 ec_debug_t;
       
    46 
       
    47 /*****************************************************************************/
       
    48 
       
    49 int ec_debug_init(ec_debug_t *);
       
    50 void ec_debug_clear(ec_debug_t *);
       
    51 void ec_debug_send(ec_debug_t *, const uint8_t *, size_t);
       
    52 
       
    53 /*****************************************************************************/