summaryrefslogtreecommitdiff
path: root/include/battery_pack.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/battery_pack.h')
-rw-r--r--include/battery_pack.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/battery_pack.h b/include/battery_pack.h
index 10022ddac1..0a43619102 100644
--- a/include/battery_pack.h
+++ b/include/battery_pack.h
@@ -44,4 +44,18 @@ const struct battery_info *battery_get_info(void);
*/
void battery_vendor_params(struct batt_params *batt);
+/**
+ * Cut off the battery.
+ * This must be called without external power. After the battery is
+ * cut off, the user need to plug in a charger to revive it.
+ */
+int battery_cut_off(void);
+
+/**
+ * Check battery status and cut off the battery if needed.
+ *
+ * @return 1 if cutting off the battery. Otherwise, 0.
+ */
+int battery_check_cut_off(void);
+
#endif