diff options
| author | Manuel Traut <manut@mecka.net> | 2013-01-14 10:38:45 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2013-01-14 10:38:45 +0100 |
| commit | f8b3b3b854ad05329c73d5b98fa24916a270de65 (patch) | |
| tree | 2e0b7927770f3be7ec27d90f77d788f93994aca7 /interfaces | |
| parent | 78da4fbc47c296a5f7b04865677398c672fd6895 (diff) | |
add direction attribute to IOs
is quiet useful to get an idea via IDL if it's an input or output
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'interfaces')
| -rw-r--r-- | interfaces/distrio_io.idl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/interfaces/distrio_io.idl b/interfaces/distrio_io.idl index 42da67d..67e6d9c 100644 --- a/interfaces/distrio_io.idl +++ b/interfaces/distrio_io.idl @@ -22,6 +22,11 @@ module Distrio { TRIGGER_FALLING_EDGE }; + enum Direction { + INPUT, + OUTPUT + }; + /** a digital input or output pin */ interface Digital { /** get the name of the hardware which is connected to this pin */ @@ -34,6 +39,8 @@ module Distrio { Distrio::Error get (out long value); /** register a callback that is called if the state of the pin changes */ Distrio::Error register_callback (in Device dev, in Digital_trigger trigger); + /** returns direction of digital IO */ + Distrio::Direction direction (); /** stores a timestamp of the last update of the referenced value */ attribute Distrio::Timestamp last_update; /** the id is given by Distrio::Manager during registration */ @@ -64,6 +71,8 @@ module Distrio { Distrio::Error get (out long value); /** register a callback that is called if the trigger matches */ Distrio::Error register_callback (in Device dev, in Analog_trigger trigger); + /** returns direction of analog IO */ + Distrio::Direction direction (); /** stores a timestamp of the last update of the referenced value */ attribute Distrio::Timestamp last_update; /** the id is given by Distrio::Manager during registration */ |
