diff options
| author | Manuel Traut <manut@mecka.net> | 2012-06-08 03:45:07 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-06-08 03:45:07 +0200 |
| commit | 7f167356955d0dedeb264687a9167b6258a54f2a (patch) | |
| tree | e19af18d19fd3cf4154ff25f621e63c736129ced /io/lib/distrio_io.h | |
| parent | c3e3ca4c7a0f94b722a62af162d6990a8137cdee (diff) | |
libdistrio_io: implement digital triggers
- also added error codes to non-implemented functions
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'io/lib/distrio_io.h')
| -rw-r--r-- | io/lib/distrio_io.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/io/lib/distrio_io.h b/io/lib/distrio_io.h index 7e0f394..c989508 100644 --- a/io/lib/distrio_io.h +++ b/io/lib/distrio_io.h @@ -33,6 +33,8 @@ #include "distrio_ioS.h" +#include <list> + #if !defined (ACE_LACKS_PRAGMA_ONCE) #pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ @@ -85,9 +87,21 @@ public: void id ( ::CORBA::Long id); + void raise (void); + + void fall (void); + + void update_timestamp (void); + +protected: + ::CORBA::Long val; + 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; + ::Distrio::Timestamp ts; }; class Distrio_Analog_i @@ -183,6 +197,9 @@ public: virtual void id ( ::CORBA::Long id); + +private: + ::CORBA::Long dev_id; }; |
