|
PebbleOS
|
#include <inttypes.h>#include <stdbool.h>Data Structures | |
| struct | BatteryConstants |
| Battery measurements. More... | |
Enumerations | |
| enum | BatteryChargeStatus { BatteryChargeStatusUnknown , BatteryChargeStatusComplete , BatteryChargeStatusTrickle , BatteryChargeStatusCC , BatteryChargeStatusCV } |
| Battery charge status. More... | |
Functions | |
| void | battery_init (void) |
| Initialize the battery driver. | |
| int | battery_get_millivolts (void) |
| Measure the battery voltage. | |
| int | battery_get_constants (BatteryConstants *constants) |
| Measure battery voltage, current and temperature. | |
| bool | battery_charge_controller_thinks_we_are_charging (void) |
| Check whether the charge controller reports charging. | |
| bool | battery_is_usb_connected (void) |
| Check whether USB power is connected. | |
| void | battery_set_charge_enable (bool charging_enabled) |
| Enable or disable the charger. | |
| void | battery_set_fast_charge (bool fast_charge_enabled) |
| Enable or disable fast charging. | |
| bool | battery_is_usb_connected_impl (void) |
| Driver implementation of battery_is_usb_connected(). | |
| bool | battery_charge_controller_thinks_we_are_charging_impl (void) |
| Driver implementation of battery_charge_controller_thinks_we_are_charging(). | |
| void | battery_force_charge_enable (bool is_charging) |
| Force charging on or off. | |
| int | battery_charge_status_get (BatteryChargeStatus *status) |
| Get the charge status. | |