objc

Data Fields
sys_timer_t Struct Reference

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.
 

Detailed Description

Timer context structure.

Contains the state and configuration for timer operations.

Examples:
clock/main.c.

Definition at line 48 of file timer.h.


The documentation for this struct was generated from the following file: