include/EtherCAT_si.h
changeset 66 cab9cc6a2721
parent 59 c8bd4fe3b38c
child 67 56964b20c15d
--- a/include/EtherCAT_si.h	Fri Feb 03 16:38:43 2006 +0000
+++ b/include/EtherCAT_si.h	Mon Feb 13 14:11:33 2006 +0000
@@ -39,6 +39,17 @@
 
 /*****************************************************************************/
 
+#define EC_READ_EL5001(SLAVE) \
+    ((unsigned int) (EC_PROC_DATA(SLAVE)[1] | \
+                     (EC_PROC_DATA(SLAVE)[2] << 8) | \
+                     (EC_PROC_DATA(SLAVE)[3] << 16) | \
+                     (EC_PROC_DATA(SLAVE)[4] << 24)))
+
+#define EC_READ_EL5001_STATE(SLAVE) \
+    ((unsigned char) EC_PROC_DATA(SLAVE)[0])
+
+/*****************************************************************************/
+
 /* Emacs-Konfiguration
 ;;; Local Variables: ***
 ;;; c-basic-offset:4 ***