Contiki-NG
Loading...
Searching...
No Matches
tsch-adaptive-timesync.c File Reference

TSCH adaptive time synchronization. More...

#include "net/mac/tsch/tsch.h"
#include <stdio.h>
#include <inttypes.h>

Go to the source code of this file.

Functions

void tsch_timesync_update (struct tsch_neighbor *n, uint16_t time_delta_asn, int32_t drift_correction)
 Updates timesync information for a given neighbor.
 
int32_t tsch_timesync_adaptive_compensate (rtimer_clock_t delta_ticks)
 Computes time compensation for a given point in the future.
 
void tsch_adaptive_timesync_reset (void)
 Reset the status of the module.
 
long int tsch_adaptive_timesync_get_drift_ppm (void)
 Gives the estimated clock drift w.r.t.
 

Detailed Description

TSCH adaptive time synchronization.

Author
Atis Elsts atis..nosp@m.elst.nosp@m.s@sic.nosp@m.s.se

Definition in file tsch-adaptive-timesync.c.