PMIC (Power Management IC)

getFault()

byte getFault();

Returns the raw value of the read-only fault register (REG09). This register latches watchdog, charge, battery, and NTC (thermistor) faults. Reading this register clears it, so to get the current fault state (as opposed to the latched fault since the last read) you must read it twice in a row, as shown in the shipping mode example in the power supply guide.

The individual bits can be decoded with the following methods, described in more detail in the Fault register section, below: