Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
input.hpp File Reference

CV input convenience functions. More...

#include <sbl/hal/adc/driver.hpp>
#include <sbl/components/cv/input.hpp>
Include dependency graph for input.hpp:

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.
 

Detailed Description

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.