objc

Data Structures | Macros | Typedefs | Functions
timer.h File Reference

Creating periodic and one-shot timers. More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sys_timer_t
 Timer context structure. More...
 

Macros

#define SYS_TIMER_CTX_SIZE   32
 Size of the timer context buffer. More...
 

Typedefs

typedef struct sys_timer_t sys_timer_t
 Timer context structure. More...
 

Functions

sys_timer_t sys_timer_init (uint32_t interval_ms, void *userdata, void(*callback)(sys_timer_t *))
 Initializes a new timer context. More...
 
bool sys_timer_start (sys_timer_t *timer)
 Starts a timer. More...
 
bool sys_timer_finalize (sys_timer_t *timer)
 Cancels and finalizes a timer. More...
 
bool sys_timer_valid (sys_timer_t *timer)
 Checks if a timer is valid, configured and running. More...
 

Detailed Description

Creating periodic and one-shot timers.

Definition in file timer.h.