aboutsummaryrefslogtreecommitdiffstats
path: root/temp.c
diff options
context:
space:
mode:
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] = {