avr-classes
|
#include <gpiopin.h>
Public Member Functions | |
virtual void | setDirection (Direction dir)=0 |
virtual void | setPullup (bool state)=0 |
![]() | |
virtual bool | getValue (void) const =0 |
![]() | |
virtual void | setValue (bool value)=0 |
GPIO pin that can be used as input or output. The interface supports control of an internal pullup resistor, e.g. when being used together with a device implementing the GpioPort interface.
|
pure virtual |
Configure direction (input/output) of pin.
dir | Direction to set. |
Implemented in GpioPortPin.
|
pure virtual |
Configure use of internal pullup resistors (if available) for pin.
state | State of pullup resistors: true means active, false means inactive. |
Implemented in GpioPortPin.