MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
8 #include "ExtendedInputOutput.hpp"
92 updateBufferedOutputs();
113 updateBufferedOutputs();
132 updateBufferedInputs();
153 updateBufferedOutputs();
172 updateBufferedInputs();
191 static void beginAll();
202 static void updateAllBufferedOutputs();
213 static void updateAllBufferedInputs();
239 pin_t getLength()
const;
245 pin_t getEnd()
const;
251 pin_t getStart()
const;
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
virtual void digitalWrite(pin_t pin, PinStatus_t state)
Set the output of the given pin to the given state.
virtual analog_t analogReadBuffered(pin_t pin)=0
Read the analog value of the given pin from the software buffer.
virtual void analogWrite(pin_t pin, analog_t val)
Write an analog (or PWM) value to the given pin.
#define AH_DIAGNOSTIC_POP()
int digitalReadBuffered(pin_t pin)
A buffered ExtIO version of the Arduino function.
A super class for object that have to be updated regularly.
virtual void begin()=0
Initialize the extended IO element.
An abstract base class for Extended Input/Output elements.
void pinModeBuffered(pin_t pin, PinMode_t mode)
A buffered ExtIO version of the Arduino function.
analog_t analogReadBuffered(pin_t pin)
A buffered ExtIO version of the Arduino function.
virtual analog_t analogRead(pin_t pin)
Read the analog value of the given pin.
virtual void pinModeBuffered(pin_t pin, PinMode_t mode)=0
Set the mode of a given pin in the software buffer.
void analogWriteBuffered(pin_t pin, analog_t val)
A buffered ExtIO version of the Arduino function.
virtual void pinMode(pin_t pin, PinMode_t mode)
Set the mode of a given pin.
uint16_t analog_t
The type returned from analogRead and similar functions.
virtual int digitalReadBuffered(pin_t pin)=0
Read the state of the given pin from the software buffer.
virtual int digitalRead(pin_t pin)
Read the state of the given pin.
virtual void updateBufferedOutputs()=0
Write the internal state to the physical outputs.
virtual void digitalWriteBuffered(pin_t pin, PinStatus_t state)=0
Set the output of a given pin in the software buffer.
#define AH_DIAGNOSTIC_WERROR()
virtual void updateBufferedInputs()=0
Read the physical state into the input buffers.
void digitalWriteBuffered(pin_t pin, PinStatus_t val)
A buffered ExtIO version of the Arduino function.
#define BEGIN_AH_NAMESPACE
virtual void analogWriteBuffered(pin_t pin, analog_t val)=0
Write an analog (or PWM) value to the software buffer given pin.