Contiki 2.5
Functions
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. More...
 
rtimer_clock_t timesynch_time (void)
 Get the current time-synchronized time. More...
 
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. More...
 
rtimer_clock_t timesynch_rtimer_to_time (rtimer_clock_t rtimer_time)
 Get the synchronized equivalent of an rtimer time. More...
 
rtimer_clock_t timesynch_offset (void)
 Get the current time-synchronized offset from the rtimer clock, which is used mainly for debugging. More...
 
int timesynch_authority_level (void)
 Get the current authority level of the time-synchronized time. More...
 
void timesynch_set_authority_level (int level)
 Set the authority level of the current time. More...
 

Detailed Description

    Header file for a simple time synchronization mechanism
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file timesynch.h.