Struct stm32_metapac::pwr::regs::Cr1
#[repr(transparent)]pub struct Cr1(pub u32);
Expand description
PWR control register 1
Tuple Fields§
§0: u32
Implementations§
§impl Cr1
impl Cr1
pub const fn lpms(&self) -> u8
pub const fn lpms(&self) -> u8
Low-power mode selection These bits select the low-power mode entered when CPU enters deepsleep mode. 1XX: Shutdown mode
pub fn set_lpms(&mut self, val: u8)
pub fn set_lpms(&mut self, val: u8)
Low-power mode selection These bits select the low-power mode entered when CPU enters deepsleep mode. 1XX: Shutdown mode
pub const fn fpd_stop(&self) -> bool
pub const fn fpd_stop(&self) -> bool
Flash memory powered down during Stop mode This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Stop mode.
pub fn set_fpd_stop(&mut self, val: bool)
pub fn set_fpd_stop(&mut self, val: bool)
Flash memory powered down during Stop mode This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Stop mode.
pub const fn fpd_slp(&self) -> bool
pub const fn fpd_slp(&self) -> bool
Flash memory powered down during Sleep mode This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Sleep mode.
pub fn set_fpd_slp(&mut self, val: bool)
pub fn set_fpd_slp(&mut self, val: bool)
Flash memory powered down during Sleep mode This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Sleep mode.