Contiki 2.6
|
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. |
Header file for a simple time synchronization mechanism.
Definition in file timesynch.h.