Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
d4fc91d6
Commit
d4fc91d6
authored
9 years ago
by
Alan Carvalho de Assis
Committed by
Gregory Nutt
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add Battery Fault and Battery Disconnected status
parent
2e70cdec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/nuttx/power/battery_charger.h
+3
-1
3 additions, 1 deletion
include/nuttx/power/battery_charger.h
with
3 additions
and
1 deletion
include/nuttx/power/battery_charger.h
+
3
−
1
View file @
d4fc91d6
...
...
@@ -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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment