Function rp2040_hal::vreg::set_voltage

source ·
pub fn set_voltage(vreg_dev: &mut VREG_AND_CHIP_RESET, voltage: VSEL_A)
Expand description

Set voltage to the on-chip voltage regulator.

There is no guarantee that the device will operate at all of the available voltages. Appropriate values should be selected in consideration of the system clock frequency and other factors to be set.

§Arguments

  • vreg_dev - VREG peripheral
  • voltage - Voltage to set