16#ifndef SBL_HAL_CV_VOCT_HPP_
17#define SBL_HAL_CV_VOCT_HPP_
40template<
typename Driver>
43 uint16_t raw = adc::read<Driver>(handle, sample_time);
60 uint8_t channel_index) {
61 auto raw =
static_cast<const volatile uint16_t*
>(buffer)[channel_index];
V/Oct input component — calibrated pitch CV from ADC values.
ADC driver interface - canonical types for MCU driver implementations.
SampleTime
ADC sample time configuration.
void read_dma(VoctInput &input, const uint16_t *buffer, uint8_t channel_index)
Read from DMA scan buffer and feed into VoctInput.
void read(VoctInput &input, const AdcHandle &handle, adc::SampleTime sample_time=adc::SampleTime::Slow)
Read ADC channel and feed into VoctInput.
Root namespace for all Sound Byte Libs functionality.
Linear calibration parameters for V/Oct conversion.