mn_output_in.hpp
Go to the documentation of this file.
1 
20 #ifndef __MINLIB_DEVICE_BASIC_OUTPUT_IN_H__
21 #define __MINLIB_DEVICE_BASIC_OUTPUT_IN_H__
22 
23 #include "../mn_config.hpp"
24 #include "mn_input_pin.hpp"
25 
26 namespace mn {
27  namespace device {
33  public:
38  virtual void write(int data) noexcept = 0;
43  virtual void write(const int& data) noexcept = 0;
48  virtual void set(bool state) noexcept = 0;
53  virtual void set(const bool& state) noexcept = 0;
54  };
55  }
56 }
57 
58 
59 
60 #endif // __MINLIB_DEVICE_BASIC_OUTPUT_IN_H__
basic_input_pin class is an interface for single input pin.
Definition: mn_input_pin.hpp:32
basic_output_pin class is an interface for single output pin.
Definition: mn_output_in.hpp:32
virtual void set(bool state) noexcept=0
Sets state of pin.
virtual void write(const int &data) noexcept=0
Sets value of pin.
virtual void set(const bool &state) noexcept=0
Sets state of pin.
virtual void write(int data) noexcept=0
Sets value of pin.
The basic input device interafaces This file is part of the Mini Thread Library (https://github....
Definition: mn_allocator_typetraits.hpp:25