00001 #ifndef IP_DIGITAL_24_DOUTINTERFACE
00002 #define IP_DIGITAL_24_DOUTINTERFACE
00003
00004
00005 #include <rtt/dev/DigitalOutInterface.hpp>
00006
00007
00008 class IP_Digital_24_DOutInterface : public RTT::DigitalOutInterface
00009 {
00010 public:
00011 IP_Digital_24_DOutInterface(const std::string& name) : RTT::DigitalOutInterface(name) {};
00012 IP_Digital_24_DOutInterface() {};
00013 virtual ~IP_Digital_24_DOutInterface() {};
00014
00015 virtual void switchOn( unsigned int n );
00016
00017 virtual void switchOff( unsigned int n );
00018
00019 virtual void setBit( unsigned int bit, bool value );
00020
00021 virtual void setSequence(unsigned int start_bit, unsigned int stop_bit, unsigned int value);
00022
00023 virtual bool checkBit(unsigned int n) const;
00024
00025 virtual unsigned int checkSequence( unsigned int start_bit, unsigned int stop_bit ) const;
00026
00027 virtual unsigned int nbOfOutputs() const { return 24; }
00028 };
00029
00030
00031 #endif