include/ecrt.h
branchstable-1.5
changeset 2445 072d4c0dccd8
parent 2444 4b43c90142c8
child 2447 e93efb4af231
--- a/include/ecrt.h	Tue Nov 20 13:23:21 2012 +0100
+++ b/include/ecrt.h	Tue Nov 20 14:20:59 2012 +0100
@@ -55,7 +55,8 @@
  * - Added interface for direct EtherCAT register access: Added data type
  *   ec_reg_request_t and methods ecrt_slave_config_create_reg_request(),
  *   ecrt_reg_request_data(), ecrt_reg_request_state(),
- *   ecrt_reg_request_write() and ecrt_reg_request_read().
+ *   ecrt_reg_request_write(), ecrt_reg_request_read() and the feature flag
+ *   EC_HAVE_REG_ACCESS.
  *
  * Changes in version 1.5:
  *
@@ -154,6 +155,14 @@
  */
 #define EC_HAVE_EMERGENCY
 
+/** Defined, if the register access interface is available.
+ *
+ * I. e. if the methods ecrt_slave_config_create_reg_request(),
+ * ecrt_reg_request_data(), ecrt_reg_request_state(), ecrt_reg_request_write()
+ * and ecrt_reg_request_read() are available.
+ */
+#define EC_HAVE_REG_ACCESS
+
 /*****************************************************************************/
 
 /** End of list marker.