os_timer_t Struct Reference
This is the structure used by the Espressif timer API. More...
#include <os_timer.h>
Collaboration diagram for os_timer_t:
Public Attributes | |
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) More... | |
uint32_t | timer_expire |
Set to the next Timer2 count value when the timer will expire. More... | |
uint32_t | timer_period |
0 if this is a one-shot timer, otherwise defines the interval in Timer2 ticks More... | |
os_timer_func_t * | timer_func |
User-provided callback function pointer. More... | |
void * | timer_arg |
Argument passed to the callback function. More... | |
Detailed Description
This is the structure used by the Espressif timer API.
- Note
- This is used as an element in a linked list The Espressif implementation orders the list according to next expiry time. os_timer_setfn and os_timer_disarm set timer_next to -1 When expired, timer_next is 0
Member Data Documentation
◆ timer_arg
void* os_timer_t::timer_arg |
Argument passed to the callback function.
◆ timer_expire
uint32_t os_timer_t::timer_expire |
Set to the next Timer2 count value when the timer will expire.
◆ timer_func
os_timer_func_t* os_timer_t::timer_func |
User-provided callback function pointer.
◆ timer_next
struct os_timer_t* os_timer_t::timer_next |
If disarmed, set to -1, otherwise points to the next queued timer (or NULL if last in the list)
◆ timer_period
uint32_t os_timer_t::timer_period |
0 if this is a one-shot timer, otherwise defines the interval in Timer2 ticks
The documentation for this struct was generated from the following file: