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