Contiki-NG
Loading...
Searching...
No Matches
ctimer.c File Reference

Callback timer implementation. More...

#include "sys/ctimer.h"
#include "contiki.h"
#include "lib/list.h"
#include "sys/log.h"

Go to the source code of this file.

Functions

void ctimer_init (void)
 Initialize the callback timer library.
 
void ctimer_set_with_process (struct ctimer *c, clock_time_t t, void(*f)(void *), void *ptr, struct process *p)
 Set a callback timer.
 
void ctimer_reset (struct ctimer *c)
 Reset a callback timer with the same interval as was previously set.
 
void ctimer_restart (struct ctimer *c)
 Restart a callback timer from the current point in time.
 
void ctimer_stop (struct ctimer *c)
 Stop a pending callback timer.
 
bool ctimer_expired (struct ctimer *c)
 Check if a callback timer has expired.
 

Detailed Description

Callback timer implementation.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file ctimer.c.