diff options
Diffstat (limited to 'include/charge_state.h')
-rw-r--r-- | include/charge_state.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/charge_state.h b/include/charge_state.h index 7aaf77b93d..152e767295 100644 --- a/include/charge_state.h +++ b/include/charge_state.h @@ -143,5 +143,16 @@ int charge_want_shutdown(void); #else static inline int charge_want_shutdown(void) { return 0; } #endif + +/** + * Get the last polled battery/charger temperature. + * + * @param idx Sensor index to read. + * @param temp_ptr Destination for temperature in K. + * + * @return EC_SUCCESS if successful, non-zero if error. + */ +int charge_temp_sensor_get_val(int idx, int *temp_ptr); + #endif /* __CROS_EC_CHARGE_STATE_H */ |