|
PebbleOS
|
#include <stdbool.h>#include <stdint.h>Functions | |
| bool | pmic_init (void) |
| Initialize the PMIC driver. | |
| bool | pmic_power_off (void) |
| Power off the board. | |
| bool | pmic_enable_battery_measure (void) |
| Enable the PMIC battery monitor. | |
| bool | pmic_disable_battery_measure (void) |
| Disable the PMIC battery monitor. | |
| bool | pmic_set_charger_state (bool enable) |
| Enable or disable battery charging. | |
| bool | pmic_is_charging (void) |
| Check whether the battery is being charged. | |
| bool | pmic_is_usb_connected (void) |
| Check whether a USB charger is connected. | |
| void | pmic_read_chip_info (uint8_t *chip_id, uint8_t *chip_revision, uint8_t *buck1_vset) |
| Read chip information for tracking purposes. | |
| uint16_t | pmic_get_vsys (void) |
| Measure VSYS. | |
| void | set_ldo3_power_state (bool enabled) |
| Switch the LDO3 power rail. | |
| void | set_4V5_power_state (bool enabled) |
| Switch the 4.5 V power rail. | |
| void | set_6V6_power_state (bool enabled) |
| Switch the 6.6 V power rail. | |