diff options
Diffstat (limited to 'include/mag_cal.h')
-rw-r--r-- | include/mag_cal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mag_cal.h b/include/mag_cal.h index a730fcbe59..61b24c7da9 100644 --- a/include/mag_cal.h +++ b/include/mag_cal.h @@ -29,5 +29,13 @@ struct mag_cal_t { void init_mag_cal(struct mag_cal_t *moc); +/** + * Update the magnetometer calibration structure and possibly compute the new + * bias. + * + * @param moc Pointer to the magnetometer struct to update. + * @param v The new data. + * @return 1 if a new calibration value is available, 0 otherwise. + */ int mag_cal_update(struct mag_cal_t *moc, const intv3_t v); #endif /* __CROS_EC_MAG_CAL_H */ |