36#ifndef SBL_HW_VALIDATION_ADC_REQUIREMENTS_HPP_
37#define SBL_HW_VALIDATION_ADC_REQUIREMENTS_HPP_
49template<
typename AdcDriver>
59 "Required: static bool init()");
62 "SBL ERROR: ADC driver missing configure_channel() method.\n"
63 "Required: static void configure_channel(const AdcHandle&, SampleTime)");
66 "SBL ERROR: ADC driver missing start_conversion() method.\n"
67 "Required: static void start_conversion(const AdcHandle&)");
70 "SBL ERROR: ADC driver missing is_conversion_complete() method.\n"
71 "Required: static bool is_conversion_complete()");
74 "Required: static uint16_t read_raw()");
77 "SBL ERROR: ADC driver missing resolution_bits() method.\n"
78 "Required: static constexpr uint8_t resolution_bits()");
84 "SBL ERROR: ADC provides start_dma_scan() but not stop_dma_scan().\n"
85 "Both must be present for DMA scan support.");
100template<
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 code.
True if T::init() is a valid static call.
True if T::is_conversion_complete() is a valid static call.
True if T::read_raw() is a valid static call.
True if T::resolution_bits() is a valid static call.
True if T::start_conversion(const AdcHandle&) is a valid static call.
True if T::start_dma_scan(const AdcHandle*, uint8_t, uint16_t*, SampleTime) is a valid static call (o...
True if T::stop_dma_scan() is a valid static call (optional)