|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
CV input convenience functions. More...
Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs functionality. | |
| namespace | sbl::cv |
Typedefs | |
| using | sbl::cv::CvInput = sbl::components::cv::CvInput |
| using | sbl::cv::CvInputConfig = sbl::components::cv::CvInputConfig |
| using | sbl::cv::Smoothing = sbl::components::cv::Smoothing |
Functions | |
| template<typename Driver > | |
| uint16_t | sbl::cv::read (CvInput &input, const AdcHandle &handle, adc::SampleTime sample_time=adc::SampleTime::Slow) |
| Read ADC channel and feed into CvInput filter. | |
| uint16_t | sbl::cv::read_dma (CvInput &input, const uint16_t *buffer, uint8_t channel_index) |
| Read from DMA scan buffer and feed into CvInput filter. | |
CV input convenience functions.
Composes ADC driver reads with CvInput update in a single call. Mirrors the sbl::adc::read<Driver>() pattern.
Usage: #include <sbl/hal/cv/input.hpp>
sbl::cv::read<sbl::driver::Adc>(knob, handle, SampleTime::Slow);
Definition in file input.hpp.