36#ifndef EVENT_PERIODIC_H
37#define EVENT_PERIODIC_H
49#define EVENT_PERIODIC_FOREVER 0
128 event_periodic->
count = count;
static void event_periodic_stop(event_periodic_t *event_periodic)
Stop a periodic timeout event.
static void event_periodic_start_now(event_periodic_t *event_periodic, uint32_t interval)
Starts a periodic timeout without delay for the first occurrence.
static void event_periodic_set_count(event_periodic_t *event_periodic, uint32_t count)
Set the amount of times the periodic event should repeat itself.
static void event_periodic_start(event_periodic_t *event_periodic, uint32_t interval)
Starts a periodic timeout.
void event_periodic_init(event_periodic_t *event_periodic, ztimer_clock_t *clock, event_queue_t *queue, event_t *event)
Initialize a periodic event timeout.
MAYBE_INLINE void irq_restore(unsigned state)
This function restores the IRQ disable bit in the status register to the value contained within passe...
MAYBE_INLINE unsigned irq_disable(void)
This function sets the IRQ disable bit in the status register.
event_t * event
event to post after timeout
event_queue_t * queue
event queue to post event to
ztimer_periodic_t timer
ztimer object used for timeout
uint32_t count
times the event should repeat itself
ztimer periodic structure
uint32_t interval
interval of this timer
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.