arduino-audio-driver
Loading...
Searching...
No Matches
GPIOExt Class Reference

#include <GPIOExt.h>

Inheritance diagram for GPIOExt:
API_GPIO

Public Member Functions

 GPIOExt ()=default
 Construct a new GPIO object.
int analogRead (ADCPin pin) override
 Returns the raw ADC value for the given pin, or -1 if not supported.
bool begin (IDriverDeviceInfo &pins) override
bool digitalRead (GpioPin pin) override
bool digitalWrite (GpioPin pin, bool value) override
void end () override
void pinMode (GpioPin pin, int mode) override
void setAltGPIO (API_GPIO &gpioExt, int offset=1000)

Protected Attributes

GPIOGPIO gpio
int offset = 1000
API_GPIO * p_ext = nullptr

Constructor & Destructor Documentation

◆ GPIOExt()

GPIOExt ( )
default

Construct a new GPIO object.

Parameters
pinThe pin number or handle.

Member Function Documentation

◆ analogRead()

int analogRead ( ADCPin pin)
inlineoverridevirtual

Returns the raw ADC value for the given pin, or -1 if not supported.

Implements API_GPIO.

◆ begin()

bool begin ( IDriverDeviceInfo & pins)
inlineoverridevirtual

Implements API_GPIO.

◆ digitalRead()

bool digitalRead ( GpioPin pin)
inlineoverridevirtual

Implements API_GPIO.

◆ digitalWrite()

bool digitalWrite ( GpioPin pin,
bool value )
inlineoverridevirtual

Implements API_GPIO.

◆ end()

void end ( )
inlineoverridevirtual

Implements API_GPIO.

◆ pinMode()

void pinMode ( GpioPin pin,
int mode )
inlineoverridevirtual

Implements API_GPIO.

◆ setAltGPIO()

void setAltGPIO ( API_GPIO & gpioExt,
int offset = 1000 )
inline

Member Data Documentation

◆ gpio

GPIOGPIO gpio
protected

◆ offset

int offset = 1000
protected

◆ p_ext

API_GPIO* p_ext = nullptr
protected

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