aboutsummaryrefslogtreecommitdiffstats
path: root/temp.c
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2019-05-01 09:36:10 -0400
committerClyne Sullivan <tullivan99@gmail.com>2019-05-01 09:36:10 -0400
commit4f8b7f39f5d404a076142b1f62c85eb09df9061d (patch)
tree88fd0fa2c11abc5d10763895bf8914787cadba5c /temp.c
parentfa8974a5dd710e8352ebde9ade6b9d22eb98b96c (diff)
show object voltage
Diffstat (limited to 'temp.c')
-rwxr-xr-xtemp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/temp.c b/temp.c
index e094d6f..e617a58 100755
--- a/temp.c
+++ b/temp.c
@@ -69,6 +69,11 @@ int16_t tempGetDieTemperature(void)
return (raw >> 2) / 32;
}
+int16_t tempGetObjVoltage(void)
+{
+ return tempI2CRead(TMP006_VOBJ);
+}
+
void tempI2CWrite(uint8_t reg, uint16_t value)
{
uint8_t data[3] = {