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