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

V/Oct input convenience functions. More...

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

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::voct
 

Typedefs

using sbl::voct::VoctInput = sbl::components::cv::VoctInput
 
using sbl::voct::VoctCalibration = sbl::components::cv::VoctCalibration
 

Functions

template<typename Driver >
void sbl::voct::read (VoctInput &input, const AdcHandle &handle, adc::SampleTime sample_time=adc::SampleTime::Slow)
 Read ADC channel and feed into VoctInput.
 
void sbl::voct::read_dma (VoctInput &input, const uint16_t *buffer, uint8_t channel_index)
 Read from DMA scan buffer and feed into VoctInput.
 

Detailed Description

V/Oct input convenience functions.

Composes ADC driver reads with VoctInput update in a single call. Same pattern as sbl::cv::read<Driver>() and sbl::pot::read<Driver>().

Usage: #include <sbl/hal/cv/voct.hpp>

sbl::voct::read<sbl::driver::Adc>(voct, handle, SampleTime::Slow); float freq = voct.frequency();

Definition in file voct.hpp.