|
Sound Byte Libs 29c5ff3
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 32 of file non_blocking_delay.hpp.
|
inlineexplicit |
Constructor with delay period.
| delay_ms | Delay period in milliseconds |
Definition at line 38 of file non_blocking_delay.hpp.
|
inline |
Get current delay period.
Definition at line 91 of file non_blocking_delay.hpp.
|
inline |
Check if timer is active.
Definition at line 75 of file non_blocking_delay.hpp.
|
inline |
Check if delay period has elapsed.
Definition at line 53 of file non_blocking_delay.hpp.
|
inline |
Reset the delay timer for next period.
Definition at line 61 of file non_blocking_delay.hpp.
|
inline |
Update delay period.
| delay_ms | New delay period in milliseconds |
Definition at line 83 of file non_blocking_delay.hpp.
|
inline |
Start the delay timer.
Definition at line 44 of file non_blocking_delay.hpp.
|
inline |
Stop the delay timer.
Definition at line 68 of file non_blocking_delay.hpp.