timesynch.h File Reference

Header file for a simple time synchronization mechanism. More...

#include "net/mac/mac.h"
#include "sys/rtimer.h"

Go to the source code of this file.

Functions

void timesynch_init (void)
 Initialize the timesynch module.
rtimer_clock_t timesynch_time (void)
 Get the current time-synchronized time.
rtimer_clock_t timesynch_time_to_rtimer (rtimer_clock_t synched_time)
 Get the current time-synchronized time, suitable for use with the rtimer module.
rtimer_clock_t timesynch_rtimer_to_time (rtimer_clock_t rtimer_time)
 Get the synchronized equivalent of an rtimer time.
rtimer_clock_t timesynch_offset (void)
 Get the current time-synchronized offset from the rtimer clock, which is used mainly for debugging.
int timesynch_authority_level (void)
 Get the current authority level of the time-synchronized time.
void timesynch_set_authority_level (int level)
 Set the authority level of the current time.

Detailed Description

Header file for a simple time synchronization mechanism.

Author:
Adam Dunkels <adam@sics.se>

Definition in file timesynch.h.


Generated on Mon Apr 11 14:23:46 2011 for Contiki 2.5 by  doxygen 1.6.1