Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/algos/
Dmag_cal.c123 static int moc_batch_complete(struct MagCal *moc, uint64_t sample_time_us) in moc_batch_complete() argument
127 if ((sample_time_us - moc->start_time > MIN_BATCH_WINDOW) in moc_batch_complete()
132 } else if (sample_time_us - moc->start_time > MAX_BATCH_WINDOW) { in moc_batch_complete()
164 bool magCalUpdate(struct MagCal *moc, uint64_t sample_time_us, in magCalUpdate() argument
190 moc->start_time = sample_time_us; in magCalUpdate()
194 if (moc_batch_complete(moc, sample_time_us)) { in magCalUpdate()
229 moc->update_time = sample_time_us; in magCalUpdate()
/device/google/contexthub/firmware/inc/algos/
Dmag_cal.h53 bool magCalUpdate(struct MagCal *moc, uint64_t sample_time_us,