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

35 lines
629 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_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_ */