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

Timer driver requirements validator. More...

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

Go to the source code of this file.

Classes

class  sbl::validation::TimerDriverRequirements< TimerDriver >
 Timer 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 TimerDriver >
constexpr bool sbl::validation::timer_driver_valid = TimerDriverRequirements<TimerDriver>::validate()
 Helper to validate a Timer driver implementation.
 

Detailed Description

Timer driver requirements validator.

Validates that Timer drivers provide required functionality using the method detection system.

Timer Driver Contract

Every Sound Byte Libs Timer driver MUST implement these methods:

Validation Usage

Add validation at the bottom of driver timer.hpp:

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

Definition in file timer_requirements.hpp.