|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Timer driver requirements validator. More...
Timer driver requirements validator.
Validates that Timer drivers provide required functionality using the method detection system.
Every Sound Byte Libs Timer driver MUST implement these methods:
busy_wait_ms(uint32_t) - Blocking millisecond delaymillis() -> uint32_t - Milliseconds since bootmicros() -> uint32_t - Microseconds since bootOptional methods (validated if present):
init(uint32_t) - Initialize timer (STM32 needs it, RP2xxx don't)Add validation at the bottom of driver timer.hpp:
Definition in file timer_requirements.hpp.
#include "method_detection.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 code. | |
| namespace | sbl::validation |
| Compile-time driver contracts. | |
Variables | |
| template<typename TimerDriver > | |
| constexpr bool | sbl::validation::timer_driver_valid = TimerDriverRequirements<TimerDriver>::validate() |
| Helper to validate a Timer driver implementation. | |