master/rtdm.h
branchstable-1.5
changeset 2433 3bdd7a747fae
child 2522 ec403cf308eb
equal deleted inserted replaced
2432:f4313f5aba88 2433:3bdd7a747fae
       
     1 /*****************************************************************************
       
     2  *
       
     3  *  $Id$
       
     4  *
       
     5  *  Copyright (C)      2012  Florian Pose <fp@igh-essen.com>
       
     6  *
       
     7  *  This file is part of the IgH EtherCAT master.
       
     8  *
       
     9  *  The IgH EtherCAT master is free software; you can redistribute it and/or
       
    10  *  modify it under the terms of the GNU General Public License as published
       
    11  *  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 useful,
       
    14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
       
    16  *  Public License for more details.
       
    17  *
       
    18  *  You should have received a copy of the GNU General Public License along
       
    19  *  with the IgH EtherCAT master. If not, see <http://www.gnu.org/licenses/>.
       
    20  *
       
    21  *  The license mentioned above concerns the source code only. Using the
       
    22  *  EtherCAT technology and brand is only permitted in compliance with the
       
    23  *  industrial property and similar rights of Beckhoff Automation GmbH.
       
    24  *
       
    25  ****************************************************************************/
       
    26 
       
    27 #ifndef __EC_RTDM_H__
       
    28 #define __EC_RTDM_H__
       
    29 
       
    30 #include "../include/ecrt.h" /* ec_master_t */
       
    31 
       
    32 /*****************************************************************************/
       
    33 
       
    34 struct rtdm_device;
       
    35 
       
    36 /*****************************************************************************/
       
    37 
       
    38 typedef struct ec_rtdm_dev {
       
    39     ec_master_t *master;
       
    40     struct rtdm_device *dev;
       
    41 } ec_rtdm_dev_t;
       
    42 
       
    43 /*****************************************************************************/
       
    44 
       
    45 int ec_rtdm_dev_init(ec_rtdm_dev_t *, ec_master_t *);
       
    46 void ec_rtdm_dev_clear(ec_rtdm_dev_t *);
       
    47 
       
    48 /****************************************************************************/
       
    49 
       
    50 #endif