mn::device::basic_output_pin Class Referenceabstract
basic_output_pin class is an interface for single output pin. More...
#include <mn_output_in.hpp>
Inheritance diagram for mn::device::basic_output_pin:
Collaboration diagram for mn::device::basic_output_pin:
Public Member Functions | |
virtual void | write (int data) noexcept=0 |
Sets value of pin. More... | |
virtual void | write (const int &data) noexcept=0 |
Sets value of pin. More... | |
virtual void | set (bool state) noexcept=0 |
Sets state of pin. More... | |
virtual void | set (const bool &state) noexcept=0 |
Sets state of pin. More... | |
Public Member Functions inherited from mn::device::basic_input_pin | |
virtual | ~basic_input_pin ()=default |
virtual int | read () noexcept=0 |
Get current value of the pin. More... | |
virtual const int | read () const noexcept=0 |
Get current value of the pin. More... | |
virtual bool | get () noexcept=0 |
Get current state of the pin. More... | |
virtual const bool | get () const noexcept=0 |
Get current state of the pin. More... | |
Detailed Description
basic_output_pin class is an interface for single output pin.
Member Function Documentation
◆ set() [1/2]
|
pure virtualnoexcept |
Sets state of pin.
- Parameters
-
[in] state is the new state of pin.
◆ set() [2/2]
|
pure virtualnoexcept |
Sets state of pin.
- Parameters
-
[in] state is the new state of pin.
◆ write() [1/2]
|
pure virtualnoexcept |
Sets value of pin.
- Parameters
-
[in] data is the new state of pin.
◆ write() [2/2]
|
pure virtualnoexcept |
Sets value of pin.
- Parameters
-
[in] data is the new state of pin.
The documentation for this class was generated from the following file: