|
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 /** \file |
|
28 * RTDM interface. |
|
29 */ |
|
30 |
|
31 #ifndef __EC_RTDM_H__ |
|
32 #define __EC_RTDM_H__ |
|
33 |
|
34 #include "../include/ecrt.h" /* ec_master_t */ |
|
35 |
|
36 /*****************************************************************************/ |
|
37 |
|
38 struct rtdm_device; |
|
39 |
|
40 /*****************************************************************************/ |
|
41 |
|
42 /** EtherCAT RTDM device. |
|
43 */ |
|
44 typedef struct ec_rtdm_dev { |
|
45 ec_master_t *master; /**< Master pointer. */ |
|
46 struct rtdm_device *dev; /**< RTDM device. */ |
|
47 } ec_rtdm_dev_t; |
|
48 |
|
49 /*****************************************************************************/ |
|
50 |
|
51 int ec_rtdm_dev_init(ec_rtdm_dev_t *, ec_master_t *); |
|
52 void ec_rtdm_dev_clear(ec_rtdm_dev_t *); |
|
53 |
|
54 /****************************************************************************/ |
|
55 |
|
56 #endif |