Power manager

batteryChargeVoltage - SystemPowerConfiguration

Sets the battery charge termination voltage. The value is in millivolts or 1000ths of a volt, so 3880 is 3.880 volts. When the battery reaches this voltage, charging is stopped.

The default is 4112 (4.112V).

This sets the charge voltage limit (VREG) bits in the PMIC charge voltage control register. See PMIC::setChargeVoltage() and PMIC::getChargeVoltageValue() for the equivalent low-level PMIC methods.

// PROTOTYPES
SystemPowerConfiguration& batteryChargeVoltage(uint16_t voltage)
uint16_t batteryChargeVoltage() const