13#include <components/libraries/scheduler/app_scheduler.h>
14#include <components/libraries/timer/app_timer.h>
17#define HZ_TO_TICKS(hz) APP_TIMER_TICKS(1000 / hz)
18#define MS_TO_TICKS(ms) APP_TIMER_TICKS(ms)
42 void start(app_timer_id_t& timer_handle, uint32_t ticks,
void* obj);
47 void stop(app_timer_id_t& timer_handle);
54 void reset(app_timer_id_t& timer_handle, uint32_t ticks,
void* obj);
Timer on top of the timer peripheral.
Definition: cs_Timer.h:22
void reset(app_timer_id_t &timer_handle, uint32_t ticks, void *obj)
Resets a timer (if already active) to the new ticks @timer_handle Reference to previously created tim...
void stop(app_timer_id_t &timer_handle)
Stop a timer @timer_handle Reference to previously created timer.
void createSingleShot(app_timer_id_t &timer_handle, app_timer_timeout_handler_t func)
Create single shot timer.
void start(app_timer_id_t &timer_handle, uint32_t ticks, void *obj)
Start a previously created timer @timer_handle Reference to previously created timer @ticks Number of...
Timer()
Definition: cs_Timer.h:57
static Timer & getInstance()
void operator=(Timer const &)
Definition: function.h:63