mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
Separate the bd99992gw ADC interface from the NCP15WB thermistor adc-to-temp maths so that the thermistor can be used with various other interfaces. BUG=chrome-os-partner:44764 TEST=make buildall -j Manual on Glados. Boot to S0, run "temps". Verify that temperatures start around 28C and begin to increase after system is powered-on for a long duration. BRANCH=None Change-Id: I3e72e9f390feebaac2440dbe722485f8d1cf8c56 Signed-off-by: Wonjoon Lee <woojoo.lee@samsung.com> Reviewed-on: https://chromium-review.googlesource.com/296871 Reviewed-by: Shawn N <shawnn@chromium.org>
21 lines
522 B
C
21 lines
522 B
C
/* Copyright 2015 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* Thermistor module for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_TEMP_SENSOR_THERMISTOR_H
|
|
#define __CROS_EC_TEMP_SENSOR_THERMISTOR_H
|
|
|
|
/**
|
|
* ncp15wb temperature conversion routine.
|
|
*
|
|
* @param adc 10bit raw data on adc.
|
|
*
|
|
* @return temperature in C.
|
|
*/
|
|
int ncp15wb_calculate_temp(uint16_t adc);
|
|
|
|
#endif /* __CROS_EC_TEMP_SENSOR_THERMISTOR_NCP15WB_H */
|