From 7ad35373a45f151c3a25cfabeb529bc04aecb580 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Wed, 16 Jan 2013 20:50:58 +0100 Subject: io: generic_gpio - add input observation inputs needs to be monitored for change. this patch implements input monitoring based on a poll of the sys/class/gpio/gpioX/value file if raising, falling or both edges should be monitored can be configured in the conf file. Signed-off-by: Manuel Traut --- io/lib/distrio_io.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'io/lib') diff --git a/io/lib/distrio_io.h b/io/lib/distrio_io.h index 997e305..d32dd7e 100644 --- a/io/lib/distrio_io.h +++ b/io/lib/distrio_io.h @@ -99,9 +99,9 @@ public: protected: ::CORBA::Long val; + std::string io_name; private: - std::string io_name; ::CORBA::Long io_id; std::list cb_list_rise; std::list cb_list_fall; @@ -164,8 +164,9 @@ public: virtual void id ( ::CORBA::Long id); -private: +protected: std::string io_name; +private: ::Distrio::Direction dir; ::CORBA::Long io_id; }; -- cgit v1.2.3