Home
last modified time | relevance | path

Searched refs:NUM_TIME_SYNC_DATAPOINTS (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/firmware/src/algos/
Dtime_sync.c42 : (sync->i + NUM_TIME_SYNC_DATAPOINTS - sync->n); in time_sync_truncate()
49 for (m = 0; m < NUM_TIME_SYNC_DATAPOINTS - 1; ++m) { in time_sync_truncate()
53 sync->time1[NUM_TIME_SYNC_DATAPOINTS - 1] = tmp1; in time_sync_truncate()
54 sync->time2[NUM_TIME_SYNC_DATAPOINTS - 1] = tmp2; in time_sync_truncate()
57 sync->i = (sync->n < NUM_TIME_SYNC_DATAPOINTS) ? sync->n : 0; in time_sync_truncate()
66 if (++i == NUM_TIME_SYNC_DATAPOINTS) { in time_sync_add()
73 if (sync->n < NUM_TIME_SYNC_DATAPOINTS) { in time_sync_add()
101 if (n < NUM_TIME_SYNC_DATAPOINTS) { in time_sync_estimate_time1()
122 if (++ii == NUM_TIME_SYNC_DATAPOINTS) { in time_sync_estimate_time1()
140 if (++ii == NUM_TIME_SYNC_DATAPOINTS) { in time_sync_estimate_time1()
/device/google/contexthub/firmware/inc/algos/
Dtime_sync.h29 #define NUM_TIME_SYNC_DATAPOINTS 16 macro
32 uint64_t time1[NUM_TIME_SYNC_DATAPOINTS];
33 uint64_t time2[NUM_TIME_SYNC_DATAPOINTS];