PebbleOS v4.47.0-505-g4bbc630fa
Loading...
Searching...
No Matches
pbl_charger_ops Struct Reference

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.
 

Detailed Description

Charger driver operations, called with the device lock held.

Field Documentation

◆ enable

int(* pbl_charger_ops::enable) (const struct pbl_charger *charger, bool enable)

Allow charging or not.

◆ get_measurements

int(* pbl_charger_ops::get_measurements) (const struct pbl_charger *charger, struct pbl_charger_measurements *meas)

Measure the battery.

◆ get_status

int(* pbl_charger_ops::get_status) (const struct pbl_charger *charger, enum pbl_charger_status *status)

Get the charge status.

◆ init

int(* pbl_charger_ops::init) (const struct pbl_charger *charger)

Optional.

Bring the hardware up.

◆ is_online

int(* pbl_charger_ops::is_online) (const struct pbl_charger *charger, bool *online)

Check whether external power is present.

◆ set_high_load

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.


The documentation for this struct was generated from the following file: