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

32 lines
558 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.

/*
* DiscreteInput.h
*
* Created on: 1 дек. 2016 г.
* Author: titov
*/
#ifndef SOURCE_DRIVER_DISCRETEINPUT_H_
#define SOURCE_DRIVER_DISCRETEINPUT_H_
#include "../systemic/IStatus.hh"
#include "../peripheral/IGpio.hh"
namespace driver { namespace detail {
class DiscreteInput : public systemic::IStatus {
protected:
const peripheral::IGpio & input;
const bool level;
public:
DiscreteInput(const peripheral::IGpio &, bool level);
operator bool() const;
~DiscreteInput() = default;
};
}}
#endif /* SOURCE_DRIVER_DISCRETEINPUT_H_ */