diff options
author | Randall Spangler <rspangler@chromium.org> | 2014-03-07 10:27:28 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-07 20:33:31 +0000 |
commit | c42bf9940282bd9d92187b69a81b6ff2f012c1e2 (patch) | |
tree | c4bd38f126d548ab55ef83d9d20ce92f9b595215 /include | |
parent | ada635006d80064aa9aa2706838eb16d81832cd8 (diff) | |
download | chrome-ec-c42bf9940282bd9d92187b69a81b6ff2f012c1e2.tar.gz |
samus: Add host command to read raw tmp006 data
This is needed to calibrate the tmp006 remote sensor values.
BUG=chrome-os-partner:26581
BRANCH=none
TEST='ectool tmp006raw N' works for N=0,1,2,3
And fails with invalid param for N=4.
Data matches result of tmp006 ec console command.
Change-Id: I04ec093c7727b55caca7d02baaf373d1ff234731
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/189207
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 1913361250..14efc3eb68 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1323,6 +1323,18 @@ struct ec_params_tmp006_set_calibration { float b2; } __packed; +/* Read raw TMP006 data */ +#define EC_CMD_TMP006_GET_RAW 0x55 + +struct ec_params_tmp006_get_raw { + uint8_t index; +} __packed; + +struct ec_response_tmp006_get_raw { + int32_t t; /* In 1/100 K */ + int32_t v; /* In nV */ +}; + /*****************************************************************************/ /* MKBP - Matrix KeyBoard Protocol */ |