Files
OpenCellular/common
Bill Richardson 91a5fa0194 Add more fields and error flags to struct batt_params
This adds two battery parameters that need to be monitored constantly:
remaining_capacity and full_capacity (that one only changes occasionally,
but we have to notify the AP when it does).

It also adds the is_present field to indicate whether the battery is
physically present or not (when we can tell), so we know whether to try to
wake up a deep-discharged battery.

Along with that, we clean up the error flags to provide indication of which
fields were unable to be read, and replace the manual logical-or of all
errors as they were set with a bitmask (BATT_FLAG_BAD_ANY).

No functionality is changed, only new & better information is provided for
use in the upcoming cleanup of the charge state machine.

BUG=chrome-os-partner:20881
BRANCH=ToT
TEST=make buildall -j

All targets build; all tests pass.

Change-Id: I4312c2fdd3cf2dd9570718e90571eff796b269db
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/191917
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2014-03-28 15:23:01 +00:00
..
2014-02-08 00:14:48 +00:00
2013-12-20 05:07:58 +00:00
2014-03-06 21:32:57 +00:00
2013-10-25 20:12:49 +00:00
2014-02-21 22:10:09 +00:00
2013-12-19 00:12:28 +00:00
2013-12-17 21:27:53 +00:00
2014-03-06 21:33:09 +00:00
2013-10-30 23:10:13 +00:00
2014-01-14 09:19:45 +00:00
2013-09-10 23:46:07 +00:00
2013-12-05 22:30:58 +00:00
2012-10-26 09:49:38 -07:00
2013-12-19 00:12:28 +00:00
2013-06-10 01:48:44 -07:00
2013-12-19 00:12:28 +00:00
2013-11-01 20:07:24 +00:00
2014-03-01 20:15:59 +00:00