GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_app_timer.h File Reference

Manipulates timers in an application main loop. More...

Go to the source code of this file.

Functions

void gp_app_timer_start (gp_timer *timer)
 Inserts a timer into the widgets timer queue.
 
void gp_app_timer_stop (gp_timer *timer)
 Removes a timer from the widgets timer queue.
 
void gp_app_timer_reschedule (gp_timer *timer, uint32_t expires_ms)
 Reschedules a timer.
 

Detailed Description

Manipulates timers in an application main loop.

Definition in file gp_app_timer.h.

Function Documentation

◆ gp_app_timer_reschedule()

void gp_app_timer_reschedule ( gp_timer * timer,
uint32_t expires_ms )

Reschedules a timer.

If a timer is running (inserted into the timer queue) it's stopped before it's started again.

Parameters
timerA timer.
expires_msA new timeout for the timer in miliseconds.

◆ gp_app_timer_start()

void gp_app_timer_start ( gp_timer * timer)

Inserts a timer into the widgets timer queue.

Note
No timers will expire until the widgets main loop runs.
Parameters
timerPointer to a gp_timer.

◆ gp_app_timer_stop()

void gp_app_timer_stop ( gp_timer * timer)

Removes a timer from the widgets timer queue.

Note
No timers will expire until the widgets main loop runs.
Parameters
timerPointer to a gp_timer.