|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Typedefs | |
| using | VoctInput = sbl::components::cv::VoctInput |
| using | VoctCalibration = sbl::components::cv::VoctCalibration |
Functions | |
| template<typename Driver > | |
| void | read (VoctInput &input, const AdcHandle &handle, adc::SampleTime sample_time=adc::SampleTime::Slow) |
| Read ADC channel and feed into VoctInput. | |
| void | read_dma (VoctInput &input, const uint16_t *buffer, uint8_t channel_index) |
| Read from DMA scan buffer and feed into VoctInput. | |
| using sbl::voct::VoctCalibration = typedef sbl::components::cv::VoctCalibration |
| using sbl::voct::VoctInput = typedef sbl::components::cv::VoctInput |
|
inline |
Read ADC channel and feed into VoctInput.
Blocking read followed by VoctInput::update().
| Driver | ADC driver type (e.g., sbl::driver::Adc) |
| input | VoctInput instance to update |
| handle | ADC channel handle |
| sample_time | Sampling duration (default: Slow for high-Z sources) |
Definition at line 41 of file voct.hpp.
References sbl::components::cv::VoctInput::update().
|
inline |
Read from DMA scan buffer and feed into VoctInput.
For use with sbl::adc::start_scan(). Casts to volatile to ensure the compiler generates a real memory read (buffer updated by DMA hardware).
| input | VoctInput instance to update |
| buffer | DMA scan buffer (from start_scan) |
| channel_index | Index of this channel in the scan sequence |
Definition at line 59 of file voct.hpp.
References sbl::components::cv::VoctInput::update().