master/globals.h
changeset 809 ec4ef8911824
parent 792 3778920f61e4
child 814 a51f857b1b2d
--- a/master/globals.h	Thu Feb 21 12:43:55 2008 +0000
+++ b/master/globals.h	Thu Feb 21 15:49:02 2008 +0000
@@ -179,7 +179,7 @@
 
 /*****************************************************************************/
 
-/** Code - Message pair.
+/** Code/Message pair.
  *
  * Some EtherCAT datagrams support reading a status code to display a certain
  * message. This type allows to map a code to a message string.
@@ -187,8 +187,7 @@
 typedef struct {
     uint32_t code; /**< Code. */
     const char *message; /**< Message belonging to \a code. */
-}
-ec_code_msg_t;
+} ec_code_msg_t;
 
 /*****************************************************************************/
 
@@ -204,6 +203,15 @@
 
 /*****************************************************************************/
 
+/** Origin type.
+ */
+typedef enum {
+    EC_ORIG_INTERNAL, /**< Internal. */
+    EC_ORIG_EXTERNAL /**< External. */
+} ec_origin_t;
+
+/*****************************************************************************/
+
 typedef struct ec_slave ec_slave_t; /**< \see ec_slave. */
 typedef struct ec_sdo ec_sdo_t; /**< \see ec_sdo */