Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
adc_requirements.hpp File Reference

ADC driver requirements validator. More...

#include "method_detection.hpp"
Include dependency graph for adc_requirements.hpp:

Go to the source code of this file.

Classes

class  sbl::validation::AdcDriverRequirements< AdcDriver >
 ADC driver requirements validator. More...
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::validation
 Compile-time validation infrastructure.
 

Variables

template<typename AdcDriver >
constexpr bool sbl::validation::adc_driver_valid = AdcDriverRequirements<AdcDriver>::validate()
 Helper to validate an ADC driver implementation.
 

Detailed Description

ADC driver requirements validator.

Validates that ADC drivers provide required functionality using the method detection system. This is the core ADC contract enforcement for Sound Byte Libs drivers.

ADC Driver Contract

Every Sound Byte Libs ADC driver MUST implement these methods:

Validation Usage

Add validation at the bottom of driver adc.hpp:

static_assert(sbl::validation::adc_driver_valid<sbl::driver::Adc>,
"ADC driver missing required methods");
ADC driver requirements validator.
See also
method_detection.hpp

Definition in file adc_requirements.hpp.