00001 #ifndef IP_OPTOINPUT_DININTERFACE_HPP 00002 #define IP_OPTOINPUT_DININTERFACE_HPP 00003 00004 00005 #include <rtt/dev/DigitalInInterface.hpp> 00006 00007 00008 class IP_OptoInput_DInInterface : public RTT::DigitalInInterface 00009 { 00010 public: 00011 IP_OptoInput_DInInterface(const std::string& name) : RTT::DigitalInInterface(name) {}; 00012 IP_OptoInput_DInInterface() {}; 00013 virtual ~IP_OptoInput_DInInterface() {}; 00014 00015 virtual bool isOn( unsigned int bit = 0) const; 00016 00017 virtual bool isOff( unsigned int bit = 0) const; 00018 00019 virtual bool readBit( unsigned int bit = 0) const; 00020 00021 virtual unsigned int readSequence(unsigned int start_bit, unsigned int stop_bit) const; 00022 00023 virtual unsigned int nbOfInputs() const { return 16; } 00024 }; 00025 00026 00027 #endif