|
PebbleOS v4.47.0-505-g4bbc630fa
|
Charger driver operations, called with the device lock held. More...
#include <charger.h>
Data Fields | |
| int(* | init )(const struct pbl_charger *charger) |
| Optional. | |
| int(* | is_online )(const struct pbl_charger *charger, bool *online) |
| Check whether external power is present. | |
| int(* | get_status )(const struct pbl_charger *charger, enum pbl_charger_status *status) |
| Get the charge status. | |
| int(* | get_measurements )(const struct pbl_charger *charger, struct pbl_charger_measurements *meas) |
| Measure the battery. | |
| int(* | enable )(const struct pbl_charger *charger, bool enable) |
| Allow charging or not. | |
| int(* | set_high_load )(const struct pbl_charger *charger, bool high_load) |
| Optional. | |
Charger driver operations, called with the device lock held.
| int(* pbl_charger_ops::enable) (const struct pbl_charger *charger, bool enable) |
Allow charging or not.
| int(* pbl_charger_ops::get_measurements) (const struct pbl_charger *charger, struct pbl_charger_measurements *meas) |
Measure the battery.
| int(* pbl_charger_ops::get_status) (const struct pbl_charger *charger, enum pbl_charger_status *status) |
Get the charge status.
| int(* pbl_charger_ops::init) (const struct pbl_charger *charger) |
Optional.
Bring the hardware up.
| int(* pbl_charger_ops::is_online) (const struct pbl_charger *charger, bool *online) |
Check whether external power is present.
| int(* pbl_charger_ops::set_high_load) (const struct pbl_charger *charger, bool high_load) |
Optional.
Let the battery supply a high current or not.