arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
R2RDriver Class Reference

R2R driver which uses the Arduino API to setup and write to the digital pins. More...

#include <R2ROutput.h>

Inheritance diagram for R2RDriver:
R2RDriverBase

Public Member Functions

void setupPins (Vector< digital_pin_t > &channel1_pins, Vector< digital_pin_t > &channel2_pins) override
 
void writePins (int channels, int channel, unsigned uvalue) override
 

Protected Attributes

Vector< digital_pin_t > * p_channel1_pins = nullptr
 
Vector< digital_pin_t > * p_channel2_pins = nullptr
 

Detailed Description

R2R driver which uses the Arduino API to setup and write to the digital pins.

Author
Phil Schatzmann
Note
The logic is using a timer driving digitalWrite(), so the sample rate is not very high. For higher sample rates you can provide your own optimized driver.
Supported by Arduino, Zephyr and IDF!

Member Function Documentation

◆ setupPins()

void setupPins ( Vector< digital_pin_t > &  channel1_pins,
Vector< digital_pin_t > &  channel2_pins 
)
inlineoverridevirtual

Implements R2RDriverBase.

◆ writePins()

void writePins ( int  channels,
int  channel,
unsigned  uvalue 
)
inlineoverridevirtual

Implements R2RDriverBase.

Member Data Documentation

◆ p_channel1_pins

Vector<digital_pin_t>* p_channel1_pins = nullptr
protected

◆ p_channel2_pins

Vector<digital_pin_t>* p_channel2_pins = nullptr
protected

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