1 #ifndef __ADAPTIVE_SYNC_H
2 #define __ADAPTIVE_SYNC_H
PORT_RADIOTIMER_WIDTH elapsedSlots
Definition: adaptive_sync.h:37
asn_t oldASN
Definition: adaptive_sync.h:40
uint16_t compensationSlots
Definition: adaptive_sync.h:32
adaptive_sync_state_t clockState
Definition: adaptive_sync.h:36
void adaptive_sync_preprocess(int16_t timeCorrection, open_addr_t timesource)
Calculated how many slots have elapsed since last synchronized.
Definition: adaptive_sync.c:51
void adaptive_sync_countCompensationTimeout()
update compensationTimeout at the beginning of each slot and adjust current slot length when the elap...
Definition: adaptive_sync.c:167
Definition: adaptive_sync.h:35
Definition: adaptive_sync.h:30
compensationInfo_t compensationInfo_vars
Definition: adaptive_sync.h:41
Definition: openwsn.h:268
void adaptive_sync_driftChanged()
set driftChanged to true.
Definition: adaptive_sync.c:249
Definition: adaptive_sync.h:22
void adaptive_sync_calculateCompensatedSlots(int16_t timeCorrection)
Calculate the compensation interval, in number of slots.
Definition: adaptive_sync.c:117
void adaptive_sync_init()
initial this module
Definition: adaptive_sync.c:35
Definition: adaptive_sync.h:21
Definition: adaptive_sync.h:23
Definition: openwsn.h:276
void adaptive_sync_countCompensationTimeout_compoundSlots(uint16_t compoundSlots)
update compensationTimeout when compound slots are scheduled and adjust the slot when the elapsed slo...
Definition: adaptive_sync.c:202
int16_t sumOfTC
Definition: adaptive_sync.h:42
uint16_t compensationTimeout
Definition: adaptive_sync.h:38
adaptive_sync_state_t
Definition: adaptive_sync.h:20
uint16_t compensateThreshold
Definition: adaptive_sync.h:43
uint16_t compensateTicks
Definition: adaptive_sync.h:39
open_addr_t neighborID
Definition: adaptive_sync.h:31
bool driftChanged
Definition: adaptive_sync.h:44