diff options
| author | Manuel Traut <manut@mecka.net> | 2013-01-16 20:50:58 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2013-01-16 20:50:58 +0100 |
| commit | 7ad35373a45f151c3a25cfabeb529bc04aecb580 (patch) | |
| tree | bba5319df6a4cb286f6ecb78efce9b30daf98924 /io/lib | |
| parent | 33a7f9331cbce18c5f706ed614cbd7c04ef7a9da (diff) | |
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 <manut@mecka.net>
Diffstat (limited to 'io/lib')
| -rw-r--r-- | io/lib/distrio_io.h | 5 |
1 files changed, 3 insertions, 2 deletions
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<Distrio::Device_ptr> cb_list_rise; std::list<Distrio::Device_ptr> 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; }; |
