AM64x MCU+ SDK  08.02.00
timeSync_Offset_Stable_Algo_t Struct Reference

Detailed Description

Variables used for offset stabilization algorithm.

Data Fields

uint8_t lastSeen_good_drift_index
 
uint8_t driftThreshold
 
uint8_t num_entries_index
 
uint8_t binFull
 
int32_t correction [OFFSET_ALGO_BIN_SIZE]
 

Field Documentation

◆ lastSeen_good_drift_index

uint8_t timeSync_Offset_Stable_Algo_t::lastSeen_good_drift_index

Count for last sync which had drift lower than threshold. This index keeps incrementing for every sync frame and gets reset to 0 if it crosses a threshold.

◆ driftThreshold

uint8_t timeSync_Offset_Stable_Algo_t::driftThreshold

Only offsets lower than this threshold are recorded for purpose of stabilization

◆ num_entries_index

uint8_t timeSync_Offset_Stable_Algo_t::num_entries_index

Counter for recording the offsets

◆ binFull

uint8_t timeSync_Offset_Stable_Algo_t::binFull

Indicating to the averaging algo to process the data in the array

◆ correction

int32_t timeSync_Offset_Stable_Algo_t::correction[OFFSET_ALGO_BIN_SIZE]

Array of correction values with low drift which are clustered together