69#ifndef ZTIMER_PERIODIC_H
70#define ZTIMER_PERIODIC_H
84#define ZTIMER_PERIODIC_KEEP_GOING true
117 bool (*callback)(
void *),
118 void *arg, uint32_t interval);
uint32_t ztimer_now_t
type for ztimer_now() result
ztimer periodic structure
ztimer_clock_t * clock
clock for this timer
ztimer_periodic_callback_t callback
called on each trigger
void * arg
argument for callback
ztimer_now_t last
last trigger time
uint32_t interval
interval of this timer
ztimer_t timer
timer object used for this timer
bool(* ztimer_periodic_callback_t)(void *)
Type of callbacks in periodic timers.
void ztimer_periodic_stop(ztimer_periodic_t *timer)
Stop a periodic timer.
void ztimer_periodic_start_now(ztimer_periodic_t *timer)
Start or restart a periodic timer without initial timer delay.
void ztimer_periodic_start(ztimer_periodic_t *timer)
Start or restart a periodic timer.
void ztimer_periodic_init(ztimer_clock_t *clock, ztimer_periodic_t *timer, bool(*callback)(void *), void *arg, uint32_t interval)
Initialize a periodic timer structure.