Feature-Flag der Klemmentypen nicht mehr ben?tigt.
authorFlorian Pose <fp@igh-essen.com>
Thu, 23 Feb 2006 13:54:27 +0000
changeset 75 aae1b9520e4d
parent 74 9bf603942791
child 76 9dc136e3801c
Feature-Flag der Klemmentypen nicht mehr ben?tigt.
master/types.c
master/types.h
--- a/master/types.c	Thu Feb 23 13:38:54 2006 +0000
+++ b/master/types.c	Thu Feb 23 13:54:27 2006 +0000
@@ -25,14 +25,14 @@
 /*****************************************************************************/
 
 const ec_slave_type_t Beckhoff_EK1100 = {
-    "Beckhoff", "EK1100", "Bus Coupler", EC_NOSYNC_SLAVE,
+    "Beckhoff", "EK1100", "Bus Coupler",
     {NULL} // Keine Sync-Manager
 };
 
 /*****************************************************************************/
 
 const ec_slave_type_t Beckhoff_EK1110 = {
-    "Beckhoff", "EK1110", "Extension terminal", EC_NOSYNC_SLAVE,
+    "Beckhoff", "EK1110", "Extension terminal",
     {NULL} // Keine Sync-Manager
 };
 
@@ -46,7 +46,7 @@
 };
 
 const ec_slave_type_t Beckhoff_EL1014 = {
-    "Beckhoff", "EL1014", "4x Digital Input", EC_SIMPLE_SLAVE,
+    "Beckhoff", "EL1014", "4x Digital Input",
     {&el1014_sm0, NULL}
 };
 
@@ -60,12 +60,12 @@
 };
 
 const ec_slave_type_t Beckhoff_EL2004 = {
-    "Beckhoff", "EL2004", "4x Digital Output", EC_SIMPLE_SLAVE,
+    "Beckhoff", "EL2004", "4x Digital Output",
     {&el20XX_sm0, NULL}
 };
 
 const ec_slave_type_t Beckhoff_EL2032 = {
-    "Beckhoff", "EL2032", "2x Digital Output (2A)", EC_SIMPLE_SLAVE,
+    "Beckhoff", "EL2032", "2x Digital Output (2A)",
     {&el20XX_sm0, NULL}
 };
 
@@ -87,12 +87,12 @@
 };
 
 const ec_slave_type_t Beckhoff_EL3102 = {
-    "Beckhoff", "EL3102", "2x Analog Input diff.", EC_MAILBOX_SLAVE,
+    "Beckhoff", "EL3102", "2x Analog Input diff.",
     {&mailbox_sm0, &mailbox_sm1, &el31X2_sm2, &el31X2_sm2, NULL}
 };
 
 const ec_slave_type_t Beckhoff_EL3162 = {
-    "Beckhoff", "EL3102", "2x Analog Input", EC_MAILBOX_SLAVE,
+    "Beckhoff", "EL3102", "2x Analog Input",
     {&mailbox_sm0, &mailbox_sm1, &el31X2_sm2, &el31X2_sm2, NULL}
 };
 
@@ -106,12 +106,12 @@
 };
 
 const ec_slave_type_t Beckhoff_EL4102 = {
-    "Beckhoff", "EL4102", "2x Analog Output", EC_MAILBOX_SLAVE,
+    "Beckhoff", "EL4102", "2x Analog Output",
     {&mailbox_sm0, &mailbox_sm1, &el41X2_sm2, NULL}
 };
 
 const ec_slave_type_t Beckhoff_EL4132 = {
-    "Beckhoff", "EL4132", "2x Analog Output diff.", EC_MAILBOX_SLAVE,
+    "Beckhoff", "EL4132", "2x Analog Output diff.",
     {&mailbox_sm0, &mailbox_sm1, &el41X2_sm2, NULL}
 };
 
@@ -131,7 +131,7 @@
 };
 
 const ec_slave_type_t Beckhoff_EL5001 = {
-    "Beckhoff", "EL5001", "SSI-Interface", EC_MAILBOX_SLAVE,
+    "Beckhoff", "EL5001", "SSI-Interface",
     {&mailbox_sm0, &mailbox_sm1, &el5001_sm2, &el5001_sm3, NULL}
 };
 
@@ -155,7 +155,7 @@
 
 const ec_slave_type_t Beckhoff_EL5101 =
 {
-    "Beckhoff", "EL5101", "Incremental Encoder Interface", EC_MAILBOX_SLAVE,
+    "Beckhoff", "EL5101", "Incremental Encoder Interface",
     {&mailbox_sm0, &mailbox_sm1, &el5101_sm2, &el5101_sm3, NULL}
 };
 
--- a/master/types.h	Thu Feb 23 13:38:54 2006 +0000
+++ b/master/types.h	Thu Feb 23 13:54:27 2006 +0000
@@ -23,22 +23,6 @@
 /*****************************************************************************/
 
 /**
-   Features eines EtherCAT-Slaves.
-
-   Diese Angabe muss für die Konfiguration bekannt sein. Der
-   Master entscheidet danach, ober bspw. Mailboxes konfigurieren,
-   oder Sync-Manager setzen soll.
-*/
-
-typedef enum
-{
-    EC_SIMPLE_SLAVE, EC_MAILBOX_SLAVE, EC_NOSYNC_SLAVE
-}
-ec_slave_features_t;
-
-/*****************************************************************************/
-
-/**
    Prozessdatenfeld.
 */
 
@@ -79,7 +63,6 @@
     const char *vendor_name; /**< Name des Herstellers */
     const char *product_name; /**< Name des Slaves-Typs */
     const char *description; /**< Genauere Beschreibung des Slave-Typs */
-    ec_slave_features_t features; /**< Features des Slave-Typs */
     const ec_sync_t *sync_managers[EC_MAX_SYNC]; /**< Sync-Manager
                                                     Konfigurationen */
 }