author | Florian Pose <fp@igh-essen.com> |
Fri, 20 Feb 2015 16:06:23 +0100 | |
changeset 2600 | 1a969896d52e |
parent 2589 | 2b9c78543663 |
permissions | -rw-r--r-- |
1246 | 1 |
/****************************************************************************** |
2589
2b9c78543663
Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents:
1959
diff
changeset
|
2 |
* |
1326
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
3 |
* $Id$ |
2589
2b9c78543663
Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents:
1959
diff
changeset
|
4 |
* |
2b9c78543663
Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents:
1959
diff
changeset
|
5 |
* Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH |
2b9c78543663
Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents:
1959
diff
changeset
|
6 |
* |
1326
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
7 |
* This file is part of the IgH EtherCAT master userspace library. |
2589
2b9c78543663
Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents:
1959
diff
changeset
|
8 |
* |
1326
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
9 |
* The IgH EtherCAT master userspace library is free software; you can |
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
10 |
* redistribute it and/or modify it under the terms of the GNU Lesser General |
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
11 |
* Public License as published by the Free Software Foundation; version 2.1 |
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
12 |
* of the License. |
1287 | 13 |
* |
1326
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
14 |
* The IgH EtherCAT master userspace library is distributed in the hope that |
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
15 |
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
16 |
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
17 |
* GNU Lesser General Public License for more details. |
1287 | 18 |
* |
1326
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
19 |
* You should have received a copy of the GNU Lesser General Public License |
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
20 |
* along with the IgH EtherCAT master userspace library. If not, see |
ef907b0b5125
merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents:
1287
diff
changeset
|
21 |
* <http://www.gnu.org/licenses/>. |
2589
2b9c78543663
Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents:
1959
diff
changeset
|
22 |
* |
1363
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1326
diff
changeset
|
23 |
* --- |
2589
2b9c78543663
Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents:
1959
diff
changeset
|
24 |
* |
1363
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1326
diff
changeset
|
25 |
* The license mentioned above concerns the source code only. Using the |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1326
diff
changeset
|
26 |
* EtherCAT technology and brand is only permitted in compliance with the |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1326
diff
changeset
|
27 |
* industrial property and similar rights of Beckhoff Automation GmbH. |
1246 | 28 |
* |
29 |
*****************************************************************************/ |
|
30 |
||
31 |
#include "include/ecrt.h" |
|
32 |
||
33 |
/*****************************************************************************/ |
|
34 |
||
35 |
struct ec_slave_config { |
|
1959
656f114153c2
Free all userspace library objects on releasing master.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
36 |
ec_slave_config_t *next; |
1255
38b7e05b20c1
Added some slave configuration methods.
Florian Pose <fp@igh-essen.com>
parents:
1246
diff
changeset
|
37 |
ec_master_t *master; |
1246 | 38 |
unsigned int index; |
1255
38b7e05b20c1
Added some slave configuration methods.
Florian Pose <fp@igh-essen.com>
parents:
1246
diff
changeset
|
39 |
uint16_t alias; |
38b7e05b20c1
Added some slave configuration methods.
Florian Pose <fp@igh-essen.com>
parents:
1246
diff
changeset
|
40 |
uint16_t position; |
1959
656f114153c2
Free all userspace library objects on releasing master.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
41 |
ec_sdo_request_t *first_sdo_request; |
2589
2b9c78543663
Reverted default branch to stable-1.5.
Florian Pose <fp@igh-essen.com>
parents:
1959
diff
changeset
|
42 |
ec_reg_request_t *first_reg_request; |
1959
656f114153c2
Free all userspace library objects on releasing master.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
43 |
ec_voe_handler_t *first_voe_handler; |
1246 | 44 |
}; |
45 |
||
46 |
/*****************************************************************************/ |
|
1959
656f114153c2
Free all userspace library objects on releasing master.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
47 |
|
656f114153c2
Free all userspace library objects on releasing master.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
48 |
void ec_slave_config_clear(ec_slave_config_t *); |
656f114153c2
Free all userspace library objects on releasing master.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
49 |
|
656f114153c2
Free all userspace library objects on releasing master.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
50 |
/*****************************************************************************/ |