Class hal::soft::inert_timer
ClassList > hal > soft > inert_timer
Inert implementation of timer hardware.
#include <inert_timer.hpp>
Inherits the following classes: hal::timer
Public Functions inherited from hal::timer
See hal::timer
Type | Name |
---|---|
result< cancel_t > | cancel () Stops a scheduled event from happening. |
result< is_running_t > | is_running () Determine if the timer is currently running. |
result< schedule_t > | schedule (hal::callback< void(void)> p_callback, hal::time_duration p_delay) Schedule an callback be be executed after the delay time. |
virtual | ~timer () = default |
Public Static Functions
Type | Name |
---|---|
result< inert_timer > | create (is_running_t p_is_running) Factory function to create inert_timer object. |
Public Static Functions Documentation
function create
Factory function to create inert_timer object.
static inline result< inert_timer > hal::soft::inert_timer::create (
is_running_t p_is_running
)
Parameters:
p_is_running
- is_running_t object to return when is_running() is called
Returns:
result<inert_timer> - Constructed inert_timer object
The documentation for this class was generated from the following file libraries/include/libhal-soft/inert_drivers/inert_timer.hpp