40 #ifndef __TSCH_ADAPTIVE_TIMESYNC_H__ 41 #define __TSCH_ADAPTIVE_TIMESYNC_H__ struct tsch_neighbor * last_timesource_neighbor
The neighbor last used as our time source.
TSCH neighbor information.
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.
long int tsch_adaptive_timesync_get_drift_ppm(void)
Gives the estimated clock drift w.r.t.