Rp2040/Components/driver/include/driver/os_timer.h
Go to the documentation of this file.
static uint64_t os_timer_expire(const os_timer_t *ptimer)
Definition: Rp2040/Components/driver/include/driver/os_timer.h:49
void os_timer_arm_ticks(os_timer_t *ptimer, uint32_t ticks, bool repeat_flag)
void os_timer_setfn(os_timer_t *ptimer, os_timer_func_t *pfunction, void *parg)
void os_timer_done(os_timer_t *ptimer)
void os_timer_func_t(void *timer_arg)
Definition: Rp2040/Components/driver/include/driver/os_timer.h:19
void os_timer_arm_us(os_timer_t *ptimer, uint32_t time, bool repeat_flag)
void os_timer_disarm(os_timer_t *ptimer)
void os_timer_arm(os_timer_t *ptimer, uint32_t time, bool repeat_flag)
Time< T > time(Unit unit, T value)
Helper function to create a Time and deduce the type.
Definition: NanoTime.h:423
This is the structure used by the Espressif timer API.
Definition: Rp2040/Components/driver/include/driver/os_timer.h:28
uint32_t timer_expire
Set to the next Timer2 count value when the timer will expire.
Definition: Rp2040/Components/driver/include/driver/os_timer.h:32
uint32_t timer_period
0 if this is a one-shot timer, otherwise defines the interval in Timer2 ticks
Definition: Rp2040/Components/driver/include/driver/os_timer.h:34
os_timer_func_t * timer_func
User-provided callback function pointer.
Definition: Rp2040/Components/driver/include/driver/os_timer.h:36
struct os_timer_t * timer_next
If disarmed, set to -1, otherwise points to the next queued timer (or NULL if last in the list)
Definition: Rp2040/Components/driver/include/driver/os_timer.h:30
void * timer_arg
Argument passed to the callback function.
Definition: Rp2040/Components/driver/include/driver/os_timer.h:38