master/slave.h
changeset 98 f564d0929292
parent 74 9bf603942791
child 101 b0c19892145a
--- a/master/slave.h	Thu Mar 02 13:08:07 2006 +0000
+++ b/master/slave.h	Mon Mar 06 15:12:34 2006 +0000
@@ -16,6 +16,28 @@
 /*****************************************************************************/
 
 /**
+   Zustand eines EtherCAT-Slaves.
+*/
+
+typedef enum
+{
+    EC_SLAVE_STATE_UNKNOWN = 0x00, /**< Status unbekannt */
+    EC_SLAVE_STATE_INIT = 0x01,    /**< Init-Zustand (Keine Mailbox-
+                                      Kommunikation, Kein I/O) */
+    EC_SLAVE_STATE_PREOP = 0x02,   /**< Pre-Operational (Mailbox-
+                                      Kommunikation, Kein I/O) */
+    EC_SLAVE_STATE_SAVEOP = 0x04,  /**< Save-Operational (Mailbox-
+                                      Kommunikation und Input Update) */
+    EC_SLAVE_STATE_OP = 0x08,      /**< Operational, (Mailbox-
+                                      Kommunikation und Input/Output Update) */
+    EC_ACK = 0x10                  /**< Acknoledge-Bit beim Zustandswechsel
+                                      (dies ist kein eigener Zustand) */
+}
+ec_slave_state_t;
+
+/*****************************************************************************/
+
+/**
    FMMU-Konfiguration.
 */