Rp2040/Components/driver/include/driver/os_timer.h File Reference
#include <c_types.h>
Include dependency graph for Rp2040/Components/driver/include/driver/os_timer.h:

Go to the source code of this file.

Classes

struct  os_timer_t
 This is the structure used by the Espressif timer API. More...
 

Macros

#define OS_TIMER_DEFAULT()
 

Typedefs

typedef void os_timer_func_t(void *timer_arg)
 

Functions

void os_timer_arm_ticks (os_timer_t *ptimer, uint32_t ticks, bool repeat_flag)
 
void os_timer_arm (os_timer_t *ptimer, uint32_t time, bool repeat_flag)
 
void os_timer_arm_us (os_timer_t *ptimer, uint32_t time, bool repeat_flag)
 
void os_timer_disarm (os_timer_t *ptimer)
 
void os_timer_setfn (os_timer_t *ptimer, os_timer_func_t *pfunction, void *parg)
 
static uint64_t os_timer_expire (const os_timer_t *ptimer)
 
void os_timer_done (os_timer_t *ptimer)
 

Macro Definition Documentation

◆ OS_TIMER_DEFAULT

#define OS_TIMER_DEFAULT ( )
Value:
{ \
.timer_next = (os_timer_t*)-1, \
}
This is the structure used by the Espressif timer API.
Definition: Rp2040/Components/driver/include/driver/os_timer.h:28

Typedef Documentation

◆ os_timer_func_t

typedef void os_timer_func_t(void *timer_arg)

Function Documentation

◆ os_timer_arm()

void os_timer_arm ( os_timer_t ptimer,
uint32_t  time,
bool  repeat_flag 
)

◆ os_timer_arm_ticks()

void os_timer_arm_ticks ( os_timer_t ptimer,
uint32_t  ticks,
bool  repeat_flag 
)

◆ os_timer_arm_us()

void os_timer_arm_us ( os_timer_t ptimer,
uint32_t  time,
bool  repeat_flag 
)

◆ os_timer_disarm()

void os_timer_disarm ( os_timer_t ptimer)

◆ os_timer_done()

void os_timer_done ( os_timer_t ptimer)

◆ os_timer_expire()

static uint64_t os_timer_expire ( const os_timer_t ptimer)
inlinestatic

◆ os_timer_setfn()

void os_timer_setfn ( os_timer_t ptimer,
os_timer_func_t pfunction,
void *  parg 
)