mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
Add a LPC host command to read temperature sensor value with given sensor id. Add ectool command to read temperature sensor value through LPC. BUG=chrome-os-partner:7329 TEST=Manual check the reading received is the same as value printed by console command. Change-Id: Id3386774435be6c3ae010a143f4fa894568efdb8
20 lines
540 B
C
20 lines
540 B
C
/* Copyright (c) 2011 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.
|
|
*/
|
|
|
|
/* Temperature sensor commands for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_TEMP_SENSOR_COMMANDS_H
|
|
#define __CROS_EC_TEMP_SENSOR_COMMANDS_H
|
|
|
|
#include "common.h"
|
|
|
|
/* Initializes the module. */
|
|
int temp_sensor_commands_init(void);
|
|
|
|
/* Host command handlers. */
|
|
enum lpc_status temp_sensor_command_get_readings(uint8_t *data);
|
|
|
|
#endif /* __CROS_EC_TEMP_SENSOR_COMMANDS_H */
|