distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
InputPin.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_
13 #define INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_
14 
15 namespace distortos
16 {
17 
18 namespace devices
19 {
20 
27 class InputPin
28 {
29 public:
30 
35  virtual ~InputPin() = default;
36 
41  virtual bool get() const = 0;
42 };
43 
44 } // namespace devices
45 
46 } // namespace distortos
47 
48 #endif // INCLUDE_DISTORTOS_DEVICES_IO_INPUTPIN_HPP_
virtual ~InputPin()=default
InputPin's destructor.
Top-level namespace of distortos project.
Definition: buttons.hpp:33
Definition: InputPin.hpp:27
virtual bool get() const =0