Removed ugly ec_slave_has_subbus() function.
--- a/TODO Mon Mar 05 10:35:50 2007 +0000
+++ b/TODO Mon Mar 05 11:34:52 2007 +0000
@@ -10,7 +10,7 @@
- Remove ecrt_master_run(). Make master FSM run in process context instead.
- Remove addressing scheme "X:Y".
- Allow only MAC address as device ID.
- - Remove ugly ec_slave_is_coupler() and ec_slave_has_subbus().
+ - Remove ugly ec_slave_is_coupler().
* Future features:
- SDO dictionary and -access in operation mode.
--- a/master/slave.c Mon Mar 05 10:35:50 2007 +0000
+++ b/master/slave.c Mon Mar 05 11:34:52 2007 +0000
@@ -1194,18 +1194,6 @@
/*****************************************************************************/
/**
- \return non-zero if slave is a bus coupler
-*/
-
-int ec_slave_has_subbus(const ec_slave_t *slave /**< EtherCAT slave */)
-{
- return slave->sii_vendor_id == 0x00000002
- && slave->sii_product_code == 0x04602c22;
-}
-
-/*****************************************************************************/
-
-/**
\return 0 in case of success, else < 0
*/
--- a/master/slave.h Mon Mar 05 10:35:50 2007 +0000
+++ b/master/slave.h Mon Mar 05 11:34:52 2007 +0000
@@ -291,7 +291,6 @@
uint16_t ec_slave_calc_sync_size(const ec_slave_t *, const ec_sii_sync_t *);
int ec_slave_is_coupler(const ec_slave_t *);
-int ec_slave_has_subbus(const ec_slave_t *);
int ec_slave_validate(const ec_slave_t *, uint32_t, uint32_t);