Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Enumerations
sbl::core::hal::adc Namespace Reference

Enumerations

enum class  SampleTime { Fast , Medium , Slow }
 ADC sample time configuration. More...
 
enum class  Resolution {
  Bits8 = 8 , Bits10 = 10 , Bits12 = 12 , Bits14 = 14 ,
  Bits16 = 16
}
 ADC resolution configuration. More...
 

Enumeration Type Documentation

◆ Resolution

ADC resolution configuration.

Some ADC peripherals support configurable resolution. Lower resolution provides faster conversions.

Enumerator
Bits8 
Bits10 
Bits12 
Bits14 
Bits16 

Definition at line 43 of file types.hpp.

◆ SampleTime

ADC sample time configuration.

Controls the sampling duration for ADC conversions. Longer sample times provide better accuracy for high-impedance sources but reduce throughput. Platform implementations map these to hardware-specific cycle counts.

Typical use cases:

  • Fast: Low-impedance sources, high-speed scanning
  • Medium: General purpose, balanced accuracy/speed (default)
  • Slow: High-impedance sources, maximum accuracy
Enumerator
Fast 

Shortest sample time, highest throughput.

Medium 

Balanced sample time (recommended default)

Slow 

Longest sample time, best for high-Z sources.

Definition at line 31 of file types.hpp.