/* * DiscreteOutput_OnePin.h * * Created on: 3 δεκ. 2018 γ. * Author: titov */ #ifndef SOURCE_DRIVER_DISCRETEOUTPUT_ONEPIN_H_ #define SOURCE_DRIVER_DISCRETEOUTPUT_ONEPIN_H_ #include "../driver/IDiscreteOutput.hh" #include "../peripheral/IGpio.hh" namespace driver { namespace detail { class DiscreteOutput_OnePin : public IDiscreteOutput { private: peripheral::IGpio & one; const bool active_one; public: DiscreteOutput_OnePin( peripheral::IGpio & one, bool active_one ); void on(); void off(); bool isCompleted() const; }; }} #endif /* SOURCE_DRIVER_DISCRETEOUTPUT_ONEPIN_H_ */