master/master.h
branchstable-1.0
changeset 1618 5cff10efb927
parent 195 674071846ee3
child 1619 0d4119024f55
equal deleted inserted replaced
1617:9f83a343ae75 1618:5cff10efb927
     1 /******************************************************************************
     1 /******************************************************************************
     2  *
       
     3  *  m a s t e r . h
       
     4  *
       
     5  *  EtherCAT master structure.
       
     6  *
     2  *
     7  *  $Id$
     3  *  $Id$
     8  *
     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  *
     9  *****************************************************************************/
    22  *****************************************************************************/
       
    23 
       
    24 /**
       
    25    \file
       
    26    EtherCAT master structure.
       
    27 */
       
    28 
       
    29 /*****************************************************************************/
    10 
    30 
    11 #ifndef _EC_MASTER_H_
    31 #ifndef _EC_MASTER_H_
    12 #define _EC_MASTER_H_
    32 #define _EC_MASTER_H_
    13 
    33 
    14 #include <linux/list.h>
    34 #include <linux/list.h>
    33 ec_master_mode_t;
    53 ec_master_mode_t;
    34 
    54 
    35 /*****************************************************************************/
    55 /*****************************************************************************/
    36 
    56 
    37 /**
    57 /**
    38    Cyclic EtherCAT statistics.
    58    Cyclic statistics.
    39 */
    59 */
    40 
    60 
    41 typedef struct
    61 typedef struct
    42 {
    62 {
    43     unsigned int timeouts; /**< command timeouts */
    63     unsigned int timeouts; /**< command timeouts */
    50 ec_stats_t;
    70 ec_stats_t;
    51 
    71 
    52 /*****************************************************************************/
    72 /*****************************************************************************/
    53 
    73 
    54 /**
    74 /**
    55    EtherCAT-Master.
    75    EtherCAT master.
    56    Manages slaves, domains and IO.
    76    Manages slaves, domains and IO.
    57 */
    77 */
    58 
    78 
    59 struct ec_master
    79 struct ec_master
    60 {
    80 {
    98 
   118 
    99 // slave management
   119 // slave management
   100 int ec_master_bus_scan(ec_master_t *);
   120 int ec_master_bus_scan(ec_master_t *);
   101 
   121 
   102 // misc.
   122 // misc.
   103 void ec_master_debug(const ec_master_t *);
       
   104 void ec_master_output_stats(ec_master_t *);
   123 void ec_master_output_stats(ec_master_t *);
   105 void ec_master_run_eoe(ec_master_t *);
   124 void ec_master_run_eoe(ec_master_t *);
   106 
   125 
   107 /*****************************************************************************/
   126 /*****************************************************************************/
   108 
   127