133 void (*f)(
void *),
void *ptr,
struct process *p);
150ctimer_set(
struct ctimer *c, clock_time_t t,
void (*f)(
void *),
void *ptr)
174static inline clock_time_t
188static inline clock_time_t
void ctimer_init(void)
Initialize the callback timer library.
void ctimer_stop(struct ctimer *c)
Stop a pending callback timer.
void ctimer_reset(struct ctimer *c)
Reset a callback timer with the same interval as was previously set.
static clock_time_t ctimer_expiration_time(struct ctimer *c)
Get the expiration time for the callback timer.
bool ctimer_expired(struct ctimer *c)
Check if a callback timer has expired.
static void ctimer_set(struct ctimer *c, clock_time_t t, void(*f)(void *), void *ptr)
Set a callback timer.
void ctimer_reset_with_new_interval(struct ctimer *c, clock_time_t interval)
Reset a callback timer with a new interval.
void ctimer_restart(struct ctimer *c)
Restart a callback timer from the current point in time.
static clock_time_t ctimer_start_time(struct ctimer *c)
Get the start time for the callback timer.
void ctimer_set_with_process(struct ctimer *c, clock_time_t t, void(*f)(void *), void *ptr, struct process *p)
Set a callback timer.
clock_time_t etimer_start_time(struct etimer *et)
Get the start time for the event timer.
clock_time_t etimer_expiration_time(struct etimer *et)
Get the expiration time for the event timer.
#define PROCESS_CURRENT()
Get a pointer to the currently running process.