|
1 /****************************************************************************** |
|
2 * |
|
3 * $Id$ |
|
4 * |
|
5 * Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH |
|
6 * |
|
7 * This file is part of the IgH EtherCAT Master. |
|
8 * |
|
9 * The IgH EtherCAT Master is free software; you can redistribute it |
|
10 * and/or modify it under the terms of the GNU General Public License |
|
11 * as published by the Free Software Foundation; either version 2 of the |
|
12 * License, or (at your option) any later version. |
|
13 * |
|
14 * The IgH EtherCAT Master is distributed in the hope that it will be |
|
15 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 * GNU General Public License for more details. |
|
18 * |
|
19 * You should have received a copy of the GNU General Public License |
|
20 * along with the IgH EtherCAT Master; if not, write to the Free Software |
|
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
22 * |
|
23 * The right to use EtherCAT Technology is granted and comes free of |
|
24 * charge under condition of compatibility of product made by |
|
25 * Licensee. People intending to distribute/sell products based on the |
|
26 * code, have to sign an agreement to guarantee that products using |
|
27 * software based on IgH EtherCAT master stay compatible with the actual |
|
28 * EtherCAT specification (which are released themselves as an open |
|
29 * standard) as the (only) precondition to have the right to use EtherCAT |
|
30 * Technology, IP and trade marks. |
|
31 * |
|
32 *****************************************************************************/ |
|
33 |
|
34 /** |
|
35 \file |
|
36 EtherCAT DUMMY slave methods. |
|
37 */ |
|
38 |
|
39 /*****************************************************************************/ |
|
40 |
|
41 #include "../include/ecrt.h" |
|
42 #include "../master/master.h" |
|
43 #include "../master/slave.h" |
|
44 |
|
45 /*****************************************************************************/ |
|
46 |
|
47 /** \cond */ |
|
48 |
|
49 int ecrt_slave_conf_sdo8(ec_slave_t *slave, /**< EtherCAT slave */ |
|
50 uint16_t sdo_index, /**< SDO index */ |
|
51 uint8_t sdo_subindex, /**< SDO subindex */ |
|
52 uint8_t value /**< new SDO value */ |
|
53 ) |
|
54 { |
|
55 return 0; |
|
56 } |
|
57 |
|
58 /*****************************************************************************/ |
|
59 |
|
60 /** |
|
61 \return 0 in case of success, else < 0 |
|
62 \ingroup RealtimeInterface |
|
63 */ |
|
64 |
|
65 int ecrt_slave_conf_sdo16(ec_slave_t *slave, /**< EtherCAT slave */ |
|
66 uint16_t sdo_index, /**< SDO index */ |
|
67 uint8_t sdo_subindex, /**< SDO subindex */ |
|
68 uint16_t value /**< new SDO value */ |
|
69 ) |
|
70 { |
|
71 return 0; |
|
72 } |
|
73 |
|
74 /*****************************************************************************/ |
|
75 |
|
76 /** |
|
77 \return 0 in case of success, else < 0 |
|
78 \ingroup RealtimeInterface |
|
79 */ |
|
80 |
|
81 int ecrt_slave_conf_sdo32(ec_slave_t *slave, /**< EtherCAT slave */ |
|
82 uint16_t sdo_index, /**< SDO index */ |
|
83 uint8_t sdo_subindex, /**< SDO subindex */ |
|
84 uint32_t value /**< new SDO value */ |
|
85 ) |
|
86 { |
|
87 return 0; |
|
88 } |
|
89 |
|
90 /*****************************************************************************/ |
|
91 |
|
92 void ecrt_slave_pdo_mapping_clear( |
|
93 ec_slave_t *slave, /**< EtherCAT slave */ |
|
94 ec_direction_t dir /**< output/input */ |
|
95 ) |
|
96 { |
|
97 } |
|
98 |
|
99 /*****************************************************************************/ |
|
100 |
|
101 int ecrt_slave_pdo_mapping_add( |
|
102 ec_slave_t *slave, /**< EtherCAT slave */ |
|
103 ec_direction_t dir, /**< input/output */ |
|
104 uint16_t pdo_index /**< Index of PDO mapping list */) |
|
105 { |
|
106 return 0; |
|
107 } |
|
108 |
|
109 /*****************************************************************************/ |
|
110 |
|
111 int ecrt_slave_pdo_mapping(ec_slave_t *slave, /**< EtherCAT slave */ |
|
112 ec_direction_t dir, /**< input/output */ |
|
113 unsigned int num_args, /**< Number of following arguments */ |
|
114 ... /**< PDO indices to map */ |
|
115 ) |
|
116 { |
|
117 return 0; |
|
118 } |
|
119 |
|
120 |
|
121 /*****************************************************************************/ |
|
122 |
|
123 /** \cond */ |
|
124 |
|
125 EXPORT_SYMBOL(ecrt_slave_conf_sdo8); |
|
126 EXPORT_SYMBOL(ecrt_slave_conf_sdo16); |
|
127 EXPORT_SYMBOL(ecrt_slave_conf_sdo32); |
|
128 EXPORT_SYMBOL(ecrt_slave_pdo_mapping_clear); |
|
129 EXPORT_SYMBOL(ecrt_slave_pdo_mapping_add); |
|
130 EXPORT_SYMBOL(ecrt_slave_pdo_mapping); |
|
131 |
|
132 /** \endcond */ |
|
133 |
|
134 /*****************************************************************************/ |