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

30 lines
459 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.

/*
* IDiscreteOutput.h
*
* Created on: 17 авг. 2017 г.
* Author: titov
*/
#ifndef SOURCE_DRIVER_IDISCRETEOUTPUT_H_
#define SOURCE_DRIVER_IDISCRETEOUTPUT_H_
namespace driver {
class IDiscreteOutput {
public:
virtual void on() = 0;
virtual void off() = 0;
virtual bool isCompleted() const { return true; }
virtual ~IDiscreteOutput() noexcept {}
};
IDiscreteOutput & getDummyOutput();
}
#endif /* SOURCE_DRIVER_IDISCRETEOUTPUT_H_ */