Skip to content
Snippets Groups Projects
Commit d4fc91d6 authored by Alan Carvalho de Assis's avatar Alan Carvalho de Assis Committed by Gregory Nutt
Browse files

Add Battery Fault and Battery Disconnected status

parent 2e70cdec
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,7 @@
enum battery_charger_status_e
{
BATTERY_UNKNOWN = 0, /* Battery state is not known */
BATTERY_FAULT, /* Charger reported a fault, get health for more info */
BATTERY_IDLE, /* Not full, not charging, not discharging */
BATTERY_FULL, /* Full, not discharging */
BATTERY_CHARGING, /* Not full, charging */
......@@ -109,7 +110,8 @@ enum battery_charger_health_e
BATTERY_HEALTH_UNSPEC_FAIL, /* Battery charger reported an unspected failure */
BATTERY_HEALTH_COLD, /* Battery is under recommended temperature */
BATTERY_HEALTH_WD_TMR_EXP, /* Battery WatchDog Timer Expired */
BATTERY_HEALTH_SAFE_TMR_EXP /* Battery Safety Timer Expired */
BATTERY_HEALTH_SAFE_TMR_EXP, /* Battery Safety Timer Expired */
BATTERY_HEALTH_DISCONNECTED /* Battery is not connected */
};
/* This structure defines the lower half battery interface */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment