arduino-audio-driver
Loading...
Searching...
No Matches
API_GPIO.h
Go to the documentation of this file.
1#pragma once
2#include "DriverCommon.h"
3
4namespace audio_driver {
5
6class IDriverDeviceInfo;
7
8class API_GPIO {
9 public:
10 virtual bool begin(IDriverDeviceInfo& pins) = 0;
11 virtual void end() = 0;
12 virtual void pinMode(GpioPin pin, int mode) = 0;
13 virtual bool digitalWrite(GpioPin pin, bool value) = 0;
14 virtual bool digitalRead(GpioPin pin) = 0;
16 virtual int analogRead(ADCPin pin) = 0;
17};
18
19}
Definition API_GPIO.h:8
virtual bool digitalRead(GpioPin pin)=0
virtual bool digitalWrite(GpioPin pin, bool value)=0
virtual int analogRead(ADCPin pin)=0
Returns the raw ADC value for the given pin, or -1 if not supported.
virtual void end()=0
virtual bool begin(IDriverDeviceInfo &pins)=0
virtual void pinMode(GpioPin pin, int mode)=0
Definition IDriverDeviceInfo.h:171
Namespace for audio driver components.
Definition AudioBoard.h:5
int16_t GpioPin
Definition DriverCommon.h:153
int16_t ADCPin
Definition DriverCommon.h:154