diff options
Diffstat (limited to 'include/accelgyro.h')
-rw-r--r-- | include/accelgyro.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h index 2f1131c9f5..237b139faf 100644 --- a/include/accelgyro.h +++ b/include/accelgyro.h @@ -7,6 +7,7 @@ #define __CROS_EC_ACCELGYRO_H #include "motion_sense.h" +#include "math_util.h" /* Header file for accelerometer / gyro drivers. */ @@ -38,6 +39,15 @@ struct accelgyro_drv { int (*read)(const struct motion_sensor_t *s, intv3_t v); /** + * Read the sensor's current internal temperature. + * + * @param s Pointer to sensor data. + * @param temp Pointer to store temperature in degrees Kelvin. + * @return EC_SUCCESS if successful, non-zero if error. + */ + int (*read_temp)(const struct motion_sensor_t *s, int *temp); + + /** * Setter and getter methods for the sensor range. The sensor range * defines the maximum value that can be returned from read(). As the * range increases, the resolution gets worse. |