Please use AnalogAudioStream: A ADC and DAC API for the Arduino Giga.
More...
#include <AnalogDriverMBED.h>
|
| size_t | writeBuffer () |
| | The ringbuffer is used to make sure that we can write full SampleBuffers.
|
| |
|
| static void | scaleTo16Bits (uint8_t *data, size_t size_bytes, int adc_bits, bool is_centered) |
| |
Please use AnalogAudioStream: A ADC and DAC API for the Arduino Giga.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ AnalogDriverMBED()
◆ ~AnalogDriverMBED()
◆ available()
| virtual int available |
( |
| ) |
|
|
inlineoverridevirtual |
◆ availableForWrite()
| int availableForWrite |
( |
| ) |
|
|
inlinevirtual |
◆ begin()
◆ end()
◆ flush()
◆ readBytes()
| size_t readBytes |
( |
uint8_t * |
dest, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlineoverridevirtual |
◆ scaleTo16Bits()
| static void scaleTo16Bits |
( |
uint8_t * |
data, |
|
|
size_t |
size_bytes, |
|
|
int |
adc_bits, |
|
|
bool |
is_centered |
|
) |
| |
|
inlinestaticprotectedinherited |
Scales int16_t samples with adc_bits resolution to the full 16 bit range. If the samples are not centered yet, the midpoint of the ADC range is subtracted first.
◆ write()
| size_t write |
( |
const uint8_t * |
src, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlineoverridevirtual |
◆ writeBuffer()
The ringbuffer is used to make sure that we can write full SampleBuffers.
◆ active
◆ adc1
◆ adc2
◆ auto_center
◆ dac1
◆ dac2
◆ info
◆ ring_buffer
The documentation for this class was generated from the following file: