MotorControlModuleSDFM_TMS3.../Projects/EFC_Application/UMLibrary/driver/DiscreteOutput_OnePin.hh

35 lines
625 B
C++

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