|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
The system timer over the tick port: the count, the 64-bit count, busy waits and milliseconds. More...
The system timer over the tick port: the count, the 64-bit count, busy waits and milliseconds.
Classes | |
| struct | MillisTimestamp |
Typedefs | |
| using | Port = sbl::driver::Tick |
Functions | |
| constexpr uint32_t | rate () |
| uint32_t | count () |
| uint64_t | count64 () |
| void | init () |
| void | busy_wait_us (uint32_t us) |
| void | busy_wait_ms (uint32_t ms) |
| uint32_t | millis () |
|
inlineconstexpr |
Counts per second.
Definition at line 34 of file timer.hpp.
Referenced by busy_wait_us(), and millis().
|
inline |
|
inline |
The count since the port started, 64 bits.
Definition at line 40 of file timer.hpp.
References sbl::system::Epoch< Port >::count64().
Referenced by millis().
|
inline |
Register the overflow handler and enable the interrupt. Called by the driver's init().
Definition at line 43 of file timer.hpp.
References sbl::system::Epoch< Port >::reset().
|
inline |
Spin for us microseconds. Any execution level.
Definition at line 50 of file timer.hpp.
References count(), and rate().
Referenced by busy_wait_ms().
|
inline |
Spin for ms milliseconds. Any execution level.
Definition at line 58 of file timer.hpp.
References busy_wait_us().