summaryrefslogtreecommitdiff
path: root/include/charge_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/charge_state.h')
-rw-r--r--include/charge_state.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index 0cf70c22de..fb1a41527a 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -92,6 +92,16 @@ uint32_t charge_get_flags(void);
int charge_get_percent(void);
/**
+ * Check if board is consuming full input current
+ *
+ * This returns true if the battery charge percentage is between 2% and 95%
+ * exclusive.
+ *
+ * @return Board is consuming full input current
+ */
+int charge_is_consuming_full_input_current(void);
+
+/**
* Return non-zero if discharging and battery so low we should shut down.
*/
int charge_want_shutdown(void);