|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
The periodic-callback timer contract. More...
The periodic-callback timer contract.
Every MCU provides sbl::driver::TimerCallback, one periodic interrupt with one callback (the control tick's base period):
start(uint32_t period_us, void (*cb)()) - start; a second start while running is an errorset_period(uint32_t period_us) - change the periodstop() - stopThe free-running counter is the tick port, whose contract is <sbl/system/port/tick_requirements.hpp>.
Usage, at the bottom of a driver's timer_callback.hpp:
Definition in file timer_requirements.hpp.
#include <cstdint>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::validation |
| Compile-time driver contracts. | |
Variables | |
| template<typename Driver > | |
| constexpr bool | sbl::validation::timer_callback_valid = TimerCallbackRequirements<Driver>::validate() |