PMIC (Power Management IC)
Thermal regulation control reg
This is register REG06. It sets the junction temperature threshold (TREG) above which the PMIC begins reducing charge current to protect itself from overheating.
setThermalRegulation()
bool setThermalRegulation();
Sets the thermal regulation threshold (TREG, REG06 bits 1:0) to its default value, 120°C. This method does not currently take a parameter to select one of the other valid thresholds (60°C, 80°C, or 100°C).
getThermalRegulation()
byte getThermalRegulation();
Returns the raw thermal regulation threshold bits (TREG).