32#include "../../../platform/comm/I2CDeviceWithHal.hpp"
98 bool initImpl(uint8_t param)
override;
Core I2C communication layer for the AXP2101 PMIC.
WatchdogConfig
Watchdog timer configuration options.
@ TIMEOUT_IRQ_AND_SYS_RESET_PULLDOWN_PWROK_1S
Trigger IRQ, system reset, and pull down PWROK after 1s.
@ TIMEOUT_IRQ_AND_SYS_RESET_AFTER_POWEROFF_THEN_POWERON
Trigger IRQ, system reset after power off, then power on.
@ TIMEOUT_IRQ_AND_SYS_RESET
Trigger IRQ and system reset.
@ TIMEOUT_IRQ_ONLY
Trigger IRQ only.
bool isModuleEnabled(Module module)
Check whether an internal module is enabled.
bool enableModule(Module module, bool enable)
Enable or disable an internal functional module.
bool setWatchdogConfig(WatchdogConfig config)
Set watchdog timer configuration.
Module
Identifiers for AXP2101 internal functional modules.
@ TS_MEASURE
TS pin ADC (REG 0x30 bit 1)
@ CELL_CHARGE
Cell battery charger (REG 0x18 bit 1)
@ TEMP_MEASURE
Die temperature ADC (REG 0x30 bit 4)
@ GAUGE
Fuel gauge (REG 0x18 bit 3)
@ VSYS_MEASURE
VSYS voltage ADC (REG 0x30 bit 3)
@ BAT_VOLT_MEASURE
Battery voltage ADC (REG 0x30 bit 0)
@ BTN_CHARGE
Button/backup battery charger (REG 0x18 bit 2)
@ BAT_DETECT
Battery detection (REG 0x68 bit 0)
@ VBUS_MEASURE
VBUS voltage ADC (REG 0x30 bit 2)
@ WATCHDOG
Watchdog timer (REG 0x18 bit 0)
@ GENERAL_ADC
General-purpose ADC (REG 0x30 bit 5)