fp@2589: /***************************************************************************** fp@2589: * fp@2589: * $Id$ fp@2589: * fp@2589: * Copyright (C) 2012 Florian Pose fp@2589: * fp@2589: * This file is part of the IgH EtherCAT master. fp@2589: * fp@2589: * The IgH EtherCAT master is free software; you can redistribute it and/or fp@2589: * modify it under the terms of the GNU General Public License as published fp@2589: * by the Free Software Foundation; version 2 of the License. fp@2589: * fp@2589: * The IgH EtherCAT master is distributed in the hope that it will be useful, fp@2589: * but WITHOUT ANY WARRANTY; without even the implied warranty of fp@2589: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@2589: * Public License for more details. fp@2589: * fp@2589: * You should have received a copy of the GNU General Public License along fp@2589: * with the IgH EtherCAT master. If not, see . fp@2589: * fp@2589: * The license mentioned above concerns the source code only. Using the fp@2589: * EtherCAT technology and brand is only permitted in compliance with the fp@2589: * industrial property and similar rights of Beckhoff Automation GmbH. fp@2589: * fp@2589: ****************************************************************************/ fp@2589: fp@2589: /** \file fp@2589: * RTDM interface. fp@2589: */ fp@2589: fp@2589: #ifndef __EC_RTDM_H__ fp@2589: #define __EC_RTDM_H__ fp@2589: fp@2589: #include "../include/ecrt.h" /* ec_master_t */ fp@2589: fp@2589: /*****************************************************************************/ fp@2589: fp@2589: struct rtdm_device; fp@2589: fp@2589: /*****************************************************************************/ fp@2589: fp@2589: /** EtherCAT RTDM device. fp@2589: */ fp@2589: typedef struct ec_rtdm_dev { fp@2589: ec_master_t *master; /**< Master pointer. */ fp@2589: struct rtdm_device *dev; /**< RTDM device. */ fp@2589: } ec_rtdm_dev_t; fp@2589: fp@2589: /*****************************************************************************/ fp@2589: fp@2589: int ec_rtdm_dev_init(ec_rtdm_dev_t *, ec_master_t *); fp@2589: void ec_rtdm_dev_clear(ec_rtdm_dev_t *); fp@2589: fp@2589: /****************************************************************************/ fp@2589: fp@2589: #endif