mn_input_pin.hpp
Go to the documentation of this file.
1 
20 #ifndef __MINLIB_DEVICE_BASIC_INPUT_PIN_H__
21 #define __MINLIB_DEVICE_BASIC_INPUT_PIN_H__
22 
23 #include "../mn_config.hpp"
24 
25 
26 namespace mn {
27  namespace device {
33  public:
34  virtual ~basic_input_pin() = default;
35 
40  virtual int read() noexcept = 0;
45  virtual const int read() const noexcept = 0;
50  virtual bool get() noexcept = 0;
55  virtual const bool get() const noexcept = 0;
56  };
57  }
58 }
59 
60 
61 
62 
63 #endif // __MINLIB_DEVICE_BASIC_INPUT_PIN_H__
basic_input_pin class is an interface for single input pin.
Definition: mn_input_pin.hpp:32
virtual ~basic_input_pin()=default
virtual bool get() noexcept=0
Get current state of the pin.
virtual int read() noexcept=0
Get current value of the pin.
Definition: mn_allocator_typetraits.hpp:25