avr-classes
Public Member Functions | List of all members
InputPin Class Referenceabstract

#include <inputpin.h>

Inheritance diagram for InputPin:
GpioPin InputPortPin GpioPortPin

Public Member Functions

virtual bool getValue (void) const =0
 

Detailed Description

Input pin that can be asked for its state, returning a boolean value.

Member Function Documentation

◆ getValue()

virtual bool InputPin::getValue ( void  ) const
pure virtual

Gets the value of the pin.

Returns
Value of the pin, true for HIGH level, false for LOW level.

Implemented in GpioPortPin, and InputPortPin.