PMIC (Power Management IC)
getSystemStatus()
byte getSystemStatus();
Returns the raw value of the read-only system status register (REG08). This register reports the power source (VBUS), charging state, DPM/thermal regulation status, and power-good status all at once. The individual bits can be decoded with the following methods, described in more detail in the System status register section, below:
getVbusStat()— bits 7:6, power source (unknown, USB host, adapter, OTG)getChargingStat()— bits 5:4, charging stategetDPMStat()— bit 3, in dynamic power management (VINDPM or IINDPM)isPowerGood()— bit 2, power goodisHot()— bit 1, in thermal regulationgetVsysStat()— bit 0, in minimum system voltage regulation