Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
pot.hpp File Reference

Potentiometer component — smoothed, calibrated ADC with su output. More...

Detailed Description

Potentiometer component — smoothed, calibrated ADC with su output.

Pot is a source adapter (L1/L2, FDP-072): raw ADC counts in, normalized signal units out. Pipeline: raw → EWMA (raw domain) → two-point calibration → su [0, 1]. Deadband operates in su.

Acquisition is owned by the component: feed values with update(), or read straight from a DMA scan buffer with update_dma() (ISR-safe).

Usage: sbl::components::input::Pot knob; knob.update_dma(adc_buf, 0); if (knob.changed()) { apply(knob.value()); } // deadbanded su widget.set_cutoff_su(knob.smoothed()); // full-resolution su

Definition in file pot.hpp.

Go to the source code of this file.

Classes

struct  sbl::components::input::PotConfig
 
class  sbl::components::input::Pot
 Potentiometer with EWMA smoothing, calibration and deadband. More...
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::components
 Functional hardware components.
 
namespace  sbl::components::input
 Pots, buttons, encoders.