MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/driver/DiscreteOutput_DoublePin.hh
2024-06-07 11:12:56 +03:00

40 lines
777 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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_ */