From 297e389057b702bbeb99139a8c248cfccfc0724e Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Thu, 7 Jun 2012 23:56:05 +0200 Subject: digital out can now be controlled by simple_device - extended libdistrio_common to enable easy access Signed-off-by: Manuel Traut --- io/bin/generic_gpio/generic_gpio.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'io/bin') diff --git a/io/bin/generic_gpio/generic_gpio.cpp b/io/bin/generic_gpio/generic_gpio.cpp index 1042c09..14ab8cc 100644 --- a/io/bin/generic_gpio/generic_gpio.cpp +++ b/io/bin/generic_gpio/generic_gpio.cpp @@ -30,7 +30,16 @@ class My_digital : public Distrio_Digital_i { ::Distrio::Error *name (::CORBA::String_out _name) { _name = CORBA::string_dup (my_name.c_str ()); - std::cout << "name: " << my_name << std::endl; + return distrio_success (); + } + + ::Distrio::Error *set () { + std::cout << "set" << std::endl; + return distrio_success (); + } + + ::Distrio::Error *reset () { + std::cout << "reset" << std::endl; return distrio_success (); } -- cgit v1.2.3