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]

virtual void mn::device::basic_output_pin::set ( bool  state)
pure virtualnoexcept

Sets state of pin.

Parameters
[in]stateis the new state of pin.

◆ set() [2/2]

virtual void mn::device::basic_output_pin::set ( const bool &  state)
pure virtualnoexcept

Sets state of pin.

Parameters
[in]stateis the new state of pin.

◆ write() [1/2]

virtual void mn::device::basic_output_pin::write ( const int &  data)
pure virtualnoexcept

Sets value of pin.

Parameters
[in]datais the new state of pin.

◆ write() [2/2]

virtual void mn::device::basic_output_pin::write ( int  data)
pure virtualnoexcept

Sets value of pin.

Parameters
[in]datais the new state of pin.

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