Structure for model timers. More...
#include <model_common.h>
Data Fields | |
model_timer_mode_t | mode |
Timer mode : Single shot, repeated. More... | |
uint64_t | timeout_rtc_ticks |
Timeout in number of RTC ticks. | |
void * | p_context |
context pointer for the timer callback | |
model_timer_cb_t | cb |
Timer callback. More... | |
uint64_t | total_rtc_ticks |
Total rtc ticks since beginning of the timer. | |
app_timer_id_t const * | p_timer_id |
APP timer instance pointer. | |
uint64_t | remaining_ticks |
Internal variable. More... | |
uint32_t | last_rtc_stamp |
Internal variable. More... | |
bool | cb_active |
Internal variable. More... | |
bool | timer_running |
Internal variable. More... | |
Structure for model timers.
Definition at line 198 of file model_common.h.
model_timer_mode_t model_timer_t::mode |
Timer mode : Single shot, repeated.
Definition at line 201 of file model_common.h.
model_timer_cb_t model_timer_t::cb |
Timer callback.
Definition at line 207 of file model_common.h.
uint64_t model_timer_t::remaining_ticks |
Internal variable.
Definition at line 215 of file model_common.h.
uint32_t model_timer_t::last_rtc_stamp |
Internal variable.
Definition at line 217 of file model_common.h.
bool model_timer_t::cb_active |
Internal variable.
Definition at line 219 of file model_common.h.
bool model_timer_t::timer_running |
Internal variable.
Definition at line 221 of file model_common.h.