#include <AnalogDriverZephyr.h>
|
| static void | scaleTo16Bits (uint8_t *data, size_t size_bytes, int adc_bits, bool is_centered) |
| |
◆ AnalogDriverZephyr()
◆ ~AnalogDriverZephyr()
◆ available()
◆ availableForWrite()
| int availableForWrite |
( |
| ) |
|
|
inlineoverridevirtual |
◆ begin()
◆ end()
◆ readBytes()
| size_t readBytes |
( |
uint8_t * |
dst, |
|
|
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 |
The documentation for this class was generated from the following file: