|
PebbleOS v4.47.0-512-g5285d4236
|
The battery cell, as the hardware description gives it. More...
Data Structures | |
| struct | pbl_battery_ocv_point |
| A point of an open-circuit voltage curve. More... | |
| struct | pbl_battery |
| The battery cell, as the hardware description gives it. More... | |
Macros | |
| #define | PBL_BATTERY_DEFINE(sym, _capacity_uah, _resistance_uohm, _chg_current_ua, _term_current_ua, _chg_voltage_uv, ...) |
| Define a battery. | |
Variables | |
| const struct pbl_battery *const | BATTERY |
| The board's battery. | |
The battery cell, as the hardware description gives it.
| struct pbl_battery_ocv_point |
| struct pbl_battery |
The battery cell, as the hardware description gives it.
Data, not a device: chargers and fuel gauges read it. Fields the description lacks are 0.
| Data Fields | ||
|---|---|---|
| uint32_t | charge_full_design_uah | Design capacity in uAh. |
| uint32_t | charge_term_current_ua | Charge termination current in uA. |
| uint32_t | constant_charge_current_ua | Constant charge current in uA. |
| uint32_t | constant_charge_voltage_uv | Constant charge voltage in uV. |
| uint32_t | internal_resistance_uohm | Internal resistance in uOhm. |
| const struct pbl_battery_ocv_point * | ocv | Open-circuit voltage curve, from full to empty, or NULL. |
| size_t | ocv_count |
Number of points of ocv. |
| #define PBL_BATTERY_DEFINE | ( | sym, | |
| _capacity_uah, | |||
| _resistance_uohm, | |||
| _chg_current_ua, | |||
| _term_current_ua, | |||
| _chg_voltage_uv, | |||
| ... | |||
| ) |
Define a battery.
| sym | Symbol of the battery. |
| _capacity_uah | Design capacity in uAh. |
| _resistance_uohm | Internal resistance in uOhm. |
| _chg_current_ua | Constant charge current in uA. |
| _term_current_ua | Charge termination current in uA. |
| _chg_voltage_uv | Constant charge voltage in uV. |
| ... | Open-circuit voltage curve, as {uV, percent} points from full to empty, if any. |
|
extern |
The board's battery.