author | Florian Pose <fp@igh-essen.com> |
Tue, 21 Oct 2008 09:26:19 +0000 | |
changeset 1284 | 283aab089eb5 |
parent 1266 | dd1f501c4070 |
child 1287 | cc7b679c74e9 |
permissions | -rw-r--r-- |
1246 | 1 |
/****************************************************************************** |
1266
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
2 |
* |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
3 |
* $Id$ |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
4 |
* |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
5 |
* Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
6 |
* |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
7 |
* This file is part of the IgH EtherCAT master userspace library. |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
8 |
* |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
9 |
* The IgH EtherCAT master userspace library is free software: you can |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
10 |
* redistribute it and/or modify it under the terms of the GNU Lesser General |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
11 |
* Public License as published by the Free Software Foundation, version 2 of |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
12 |
* the License. |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
13 |
* |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
14 |
* The IgH EtherCAT master userspace library is distributed in the hope that |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
15 |
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
16 |
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
17 |
* GNU Lesser General Public License for more details. |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
18 |
* |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
19 |
* You should have received a copy of the GNU Lesser General Public License |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
20 |
* along with the IgH EtherCAT master userspace library. If not, see |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
21 |
* <http://www.gnu.org/licenses/>. |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
22 |
* |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
23 |
* The right to use EtherCAT Technology is granted and comes free of charge |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
24 |
* under condition of compatibility of product made by Licensee. People |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
25 |
* intending to distribute/sell products based on the code, have to sign an |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
26 |
* agreement to guarantee that products using software based on IgH EtherCAT |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
27 |
* master stay compatible with the actual EtherCAT specification (which are |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
28 |
* released themselves as an open standard) as the (only) precondition to have |
dd1f501c4070
Added LGPL licence headers to userspace library.
Florian Pose <fp@igh-essen.com>
parents:
1255
diff
changeset
|
29 |
* the right to use EtherCAT Technology, IP and trade marks. |
1246 | 30 |
* |
31 |
*****************************************************************************/ |
|
32 |
||
33 |
#include "include/ecrt.h" |
|
34 |
||
35 |
/*****************************************************************************/ |
|
36 |
||
37 |
struct ec_slave_config { |
|
1255
38b7e05b20c1
Added some slave configuration methods.
Florian Pose <fp@igh-essen.com>
parents:
1246
diff
changeset
|
38 |
ec_master_t *master; |
1246 | 39 |
unsigned int index; |
1255
38b7e05b20c1
Added some slave configuration methods.
Florian Pose <fp@igh-essen.com>
parents:
1246
diff
changeset
|
40 |
uint16_t alias; |
38b7e05b20c1
Added some slave configuration methods.
Florian Pose <fp@igh-essen.com>
parents:
1246
diff
changeset
|
41 |
uint16_t position; |
1246 | 42 |
}; |
43 |
||
44 |
/*****************************************************************************/ |