Files
OpenCellular/include/temp_sensor_commands.h
Vic Yang b228bc14c0 Add host command to read temperature sensor value
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
2011-12-22 13:51:07 +08:00

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 */