summary refs log tree commit diff stats
path: root/hw/misc/tmp105.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/tmp105.h')
-rw-r--r--hw/misc/tmp105.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/misc/tmp105.h b/hw/misc/tmp105.h
index e5198fce80..7c97071ad7 100644
--- a/hw/misc/tmp105.h
+++ b/hw/misc/tmp105.h
@@ -43,6 +43,13 @@ struct TMP105State {
     int16_t limit[2];
     int faults;
     uint8_t alarm;
+    /*
+     * The TMP105 initially looks for a temperature rising above T_high;
+     * once this is detected, the condition it looks for next is the
+     * temperature falling below T_low. This flag is false when initially
+     * looking for T_high, true when looking for T_low.
+     */
+    bool detect_falling;
 };
 
 #endif