36#ifndef SBL_VALIDATION_ADC_REQUIREMENTS_HPP_
37#define SBL_VALIDATION_ADC_REQUIREMENTS_HPP_
49template<
typename AdcDriver>
59 "SBL ERROR: ADC driver missing init() method.\n"
60 "Required: static bool init()");
63 "SBL ERROR: ADC driver missing configure_channel() method.\n"
64 "Required: static void configure_channel(const AdcHandle&, SampleTime)");
67 "SBL ERROR: ADC driver missing start_conversion() method.\n"
68 "Required: static void start_conversion(const AdcHandle&)");
71 "SBL ERROR: ADC driver missing is_conversion_complete() method.\n"
72 "Required: static bool is_conversion_complete()");
75 "SBL ERROR: ADC driver missing read_raw() method.\n"
76 "Required: static uint16_t read_raw()");
79 "SBL ERROR: ADC driver missing resolution_bits() method.\n"
80 "Required: static constexpr uint8_t resolution_bits()");
89 "SBL ERROR: ADC provides start_dma_scan() but not stop_dma_scan().\n"
90 "Both must be present for DMA scan support.");
105template<
typename AdcDriver>
ADC driver requirements validator.
static constexpr bool validate()
Validate all required ADC methods.
Method and interface detection for driver validation.
constexpr bool adc_driver_valid
Helper to validate an ADC driver implementation.
Root namespace for all Sound Byte Libs functionality.
ADC Driver Method Detection.