Timer context structure. More...
#include <runtime-sys/sys.h>
Data Fields | |
void(* | callback )(struct sys_timer_t *) |
Function called when timer fires. | |
uint32_t | interval |
Timer interval in milliseconds. | |
void * | userdata |
User-defined data passed to callback. | |
union { | |
void * ptr | |
Pointer to external timer context (platform-specific) | |
uint8_t ctx [SYS_TIMER_CTX_SIZE] | |
Internal context buffer for timer state. | |
} | ctx |
Union holding either external pointer or internal context buffer. | |
Timer context structure.
Contains the state and configuration for timer operations.