master/master.h
changeset 197 b9a6e2c22745
parent 195 674071846ee3
child 199 04ecf40fc2e9
equal deleted inserted replaced
196:f8a1e9f364a3 197:b9a6e2c22745
     3  *  m a s t e r . h
     3  *  m a s t e r . h
     4  *
     4  *
     5  *  EtherCAT master structure.
     5  *  EtherCAT master structure.
     6  *
     6  *
     7  *  $Id$
     7  *  $Id$
       
     8  *
       
     9  *  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
       
    10  *
       
    11  *  This file is part of the IgH EtherCAT Master.
       
    12  *
       
    13  *  The IgH EtherCAT Master is free software; you can redistribute it
       
    14  *  and/or modify it under the terms of the GNU General Public License
       
    15  *  as published by the Free Software Foundation; version 2 of the License.
       
    16  *
       
    17  *  The IgH EtherCAT Master is distributed in the hope that it will be
       
    18  *  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    19  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    20  *  GNU General Public License for more details.
       
    21  *
       
    22  *  You should have received a copy of the GNU General Public License
       
    23  *  along with the IgH EtherCAT Master; if not, write to the Free Software
       
    24  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     8  *
    25  *
     9  *****************************************************************************/
    26  *****************************************************************************/
    10 
    27 
    11 #ifndef _EC_MASTER_H_
    28 #ifndef _EC_MASTER_H_
    12 #define _EC_MASTER_H_
    29 #define _EC_MASTER_H_
    15 #include <linux/sysfs.h>
    32 #include <linux/sysfs.h>
    16 #include <linux/timer.h>
    33 #include <linux/timer.h>
    17 
    34 
    18 #include "device.h"
    35 #include "device.h"
    19 #include "domain.h"
    36 #include "domain.h"
       
    37 
       
    38 /*****************************************************************************/
       
    39 
       
    40 /**
       
    41    \defgroup Master EtherCAT master
       
    42    Data types and functions of the EtherCAT master.
       
    43    \{
       
    44 */
    20 
    45 
    21 /*****************************************************************************/
    46 /*****************************************************************************/
    22 
    47 
    23 /**
    48 /**
    24    EtherCAT master mode.
    49    EtherCAT master mode.
    78     unsigned int reserved; /**< true, if the master is reserved for RT */
   103     unsigned int reserved; /**< true, if the master is reserved for RT */
    79     struct timer_list freerun_timer; /**< timer object for free run mode */
   104     struct timer_list freerun_timer; /**< timer object for free run mode */
    80     ec_master_mode_t mode; /**< master mode */
   105     ec_master_mode_t mode; /**< master mode */
    81 };
   106 };
    82 
   107 
       
   108 /** \} */
       
   109 
    83 /*****************************************************************************/
   110 /*****************************************************************************/
    84 
   111 
    85 // master creation and deletion
   112 // master creation and deletion
    86 int ec_master_init(ec_master_t *, unsigned int);
   113 int ec_master_init(ec_master_t *, unsigned int);
    87 void ec_master_clear(struct kobject *);
   114 void ec_master_clear(struct kobject *);