mn::device::basic_input_pin Class Referenceabstract

basic_input_pin class is an interface for single input pin. More...

#include <mn_input_pin.hpp>

+ Inheritance diagram for mn::device::basic_input_pin:

Public Member Functions

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_input_pin class is an interface for single input pin.

Constructor & Destructor Documentation

◆ ~basic_input_pin()

virtual mn::device::basic_input_pin::~basic_input_pin ( )
virtualdefault

Member Function Documentation

◆ get() [1/2]

virtual const bool mn::device::basic_input_pin::get ( ) const
pure virtualnoexcept

Get current state of the pin.

Returns
Get the state of the pin.

◆ get() [2/2]

virtual bool mn::device::basic_input_pin::get ( )
pure virtualnoexcept

Get current state of the pin.

Returns
Get the state of the pin.

◆ read() [1/2]

virtual const int mn::device::basic_input_pin::read ( ) const
pure virtualnoexcept

Get current value of the pin.

Returns
Get the value of the pin.

◆ read() [2/2]

virtual int mn::device::basic_input_pin::read ( )
pure virtualnoexcept

Get current value of the pin.

Returns
Get the value of the pin.

The documentation for this class was generated from the following file: