|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Simple non-blocking delay using system time. More...
#include <non_blocking_delay.hpp>
Public Member Functions | |
| NonBlockingDelay (uint32_t delay_ms) | |
| Constructor with delay period. | |
| void | start () |
| Start the delay timer. | |
| bool | ready () const |
| Check if delay period has elapsed. | |
| void | reset () |
| Reset the delay timer for next period. | |
| void | stop () |
| Stop the delay timer. | |
| bool | isActive () const |
| Check if timer is active. | |
| void | setPeriod (uint32_t delay_ms) |
| Update delay period. | |
| uint32_t | getPeriod () const |
| Get current delay period. | |
Simple non-blocking delay using system time.
Template-based non-blocking delay that uses HAL system time interface. Applications typically use this through board-provided timing utilities.
| SystemTimeImpl | HAL system time implementation |
Definition at line 31 of file non_blocking_delay.hpp.
|
inlineexplicit |
Constructor with delay period.
| delay_ms | Delay period in milliseconds |
Definition at line 37 of file non_blocking_delay.hpp.
|
inline |
Get current delay period.
Definition at line 90 of file non_blocking_delay.hpp.
|
inline |
Check if timer is active.
Definition at line 74 of file non_blocking_delay.hpp.
|
inline |
Check if delay period has elapsed.
Definition at line 52 of file non_blocking_delay.hpp.
|
inline |
Reset the delay timer for next period.
Definition at line 60 of file non_blocking_delay.hpp.
|
inline |
Update delay period.
| delay_ms | New delay period in milliseconds |
Definition at line 82 of file non_blocking_delay.hpp.
|
inline |
Start the delay timer.
Definition at line 43 of file non_blocking_delay.hpp.
Referenced by sbl::core::components::cv::Trigger< PinImpl, TimerImpl >::fire(), and sbl::core::components::display::FlashLed< LedImpl, TimerImpl >::flash().
|
inline |
Stop the delay timer.
Definition at line 67 of file non_blocking_delay.hpp.