Struct stm32_metapac::pwr::regs::Csr2
#[repr(transparent)]pub struct Csr2(pub u32);
Expand description
PWR control register 2.
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl Csr2
impl Csr2
pub const fn bypass(&self) -> bool
pub const fn bypass(&self) -> bool
Power management unit bypass Note: Illegal combinations of SDHILEVEL, SMPSEXTHP, SDEN, LDOEN and BYPASS are described in Table 41.
pub fn set_bypass(&mut self, val: bool)
pub fn set_bypass(&mut self, val: bool)
Power management unit bypass Note: Illegal combinations of SDHILEVEL, SMPSEXTHP, SDEN, LDOEN and BYPASS are described in Table 41.
pub const fn ldoen(&self) -> bool
pub const fn ldoen(&self) -> bool
Low drop-out regulator enable Note: Illegal combinations of SDHILEVEL, SMPSEXTHP, SDEN, LDOEN and BYPASS are described in Table 41.
pub fn set_ldoen(&mut self, val: bool)
pub fn set_ldoen(&mut self, val: bool)
Low drop-out regulator enable Note: Illegal combinations of SDHILEVEL, SMPSEXTHP, SDEN, LDOEN and BYPASS are described in Table 41.
pub const fn sden(&self) -> bool
pub const fn sden(&self) -> bool
SMPS step-down converter enable Note: Illegal combinations of SDHILEVEL, SMPSEXTHP, SDEN, LDOEN and BYPASS are described in Table 41.
pub fn set_sden(&mut self, val: bool)
pub fn set_sden(&mut self, val: bool)
SMPS step-down converter enable Note: Illegal combinations of SDHILEVEL, SMPSEXTHP, SDEN, LDOEN and BYPASS are described in Table 41.
pub const fn sdexthp(&self) -> bool
pub const fn sdexthp(&self) -> bool
SMPS external power delivery selection Note: Illegal combinations of SDHILEVEL, SMPSEXTHP, SDEN, LDOEN and BYPASS are described in Table 41.
pub fn set_sdexthp(&mut self, val: bool)
pub fn set_sdexthp(&mut self, val: bool)
SMPS external power delivery selection Note: Illegal combinations of SDHILEVEL, SMPSEXTHP, SDEN, LDOEN and BYPASS are described in Table 41.
pub const fn sdlevel(&self) -> Sdlevel
pub const fn sdlevel(&self) -> Sdlevel
SMPS step-down converter voltage output for LDO or external supply This bit is used when both the LDO and SMPS step-down converter are enabled with SDEN and LDOEN enabled or when SMPSEXTHP is enabled. In this case SDHILEVEL has to be set to 1 to confirm the regulator settings.
pub fn set_sdlevel(&mut self, val: Sdlevel)
pub fn set_sdlevel(&mut self, val: Sdlevel)
SMPS step-down converter voltage output for LDO or external supply This bit is used when both the LDO and SMPS step-down converter are enabled with SDEN and LDOEN enabled or when SMPSEXTHP is enabled. In this case SDHILEVEL has to be set to 1 to confirm the regulator settings.
pub const fn xspicap1(&self) -> Xspicap
pub const fn xspicap1(&self) -> Xspicap
XSPI port 1 capacitor control bits see the product datasheet for more details.
pub fn set_xspicap1(&mut self, val: Xspicap)
pub fn set_xspicap1(&mut self, val: Xspicap)
XSPI port 1 capacitor control bits see the product datasheet for more details.
pub const fn xspicap2(&self) -> Xspicap
pub const fn xspicap2(&self) -> Xspicap
XSPI port 2 capacitor control bits see the product datasheet for more details.
pub fn set_xspicap2(&mut self, val: Xspicap)
pub fn set_xspicap2(&mut self, val: Xspicap)
XSPI port 2 capacitor control bits see the product datasheet for more details.
pub const fn en_xspim1(&self) -> bool
pub const fn en_xspim1(&self) -> bool
EN_XSPIM1: this bit allow the SW to enable the XSPI interface. The XSPIM_P1 supply must be stable prior to setting this bit.
pub fn set_en_xspim1(&mut self, val: bool)
pub fn set_en_xspim1(&mut self, val: bool)
EN_XSPIM1: this bit allow the SW to enable the XSPI interface. The XSPIM_P1 supply must be stable prior to setting this bit.
pub const fn en_xspim2(&self) -> bool
pub const fn en_xspim2(&self) -> bool
EN_XSPIM2: this bit allows the SW to enable the XSPI interface, when available. The XSPIM_P2 supply must be stable prior to setting this bit. It should also be set when FMC is used.
pub fn set_en_xspim2(&mut self, val: bool)
pub fn set_en_xspim2(&mut self, val: bool)
EN_XSPIM2: this bit allows the SW to enable the XSPI interface, when available. The XSPIM_P2 supply must be stable prior to setting this bit. It should also be set when FMC is used.
pub const fn sdextrdy(&self) -> bool
pub const fn sdextrdy(&self) -> bool
SMPS step-down converter external supply ready This bit is set by hardware to indicate that the external supply from the SMPS step-down converter is ready.
pub fn set_sdextrdy(&mut self, val: bool)
pub fn set_sdextrdy(&mut self, val: bool)
SMPS step-down converter external supply ready This bit is set by hardware to indicate that the external supply from the SMPS step-down converter is ready.
pub fn set_usb33den(&mut self, val: bool)
pub fn set_usb33den(&mut self, val: bool)
VDD33_USB voltage level detector enable.
pub fn set_usbregen(&mut self, val: bool)
pub fn set_usbregen(&mut self, val: bool)
USB regulator enable.
pub fn set_usb33rdy(&mut self, val: bool)
pub fn set_usb33rdy(&mut self, val: bool)
USB supply ready.
pub const fn usbhsregen(&self) -> bool
pub const fn usbhsregen(&self) -> bool
USB HS regulator enable.
pub fn set_usbhsregen(&mut self, val: bool)
pub fn set_usbhsregen(&mut self, val: bool)
USB HS regulator enable.