summaryrefslogtreecommitdiff
path: root/include/adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/adc.h')
-rw-r--r--include/adc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/adc.h b/include/adc.h
index 3ff88b77f9..efca057445 100644
--- a/include/adc.h
+++ b/include/adc.h
@@ -57,4 +57,15 @@ int adc_enable_watchdog(int ain_id, int high, int low);
*/
int adc_disable_watchdog(void);
+/**
+ * Set the delay between ADC watchdog samples. This can be used as a trade-off
+ * of power consumption and performance.
+ *
+ * @param delay_ms The delay in milliseconds between two ADC watchdog
+ * samples.
+ *
+ * @return EC_SUCCESS, or non-zero if any error or not supported.
+ */
+int adc_set_watchdog_delay(int delay_ms);
+
#endif /* __CROS_EC_ADC_H */