Struct stm32_metapac::rcc::regs::Csr
#[repr(transparent)]pub struct Csr(pub u32);
Expand description
RCC control/status register
Tuple Fields§
§0: u32
Implementations§
§impl Csr
impl Csr
pub const fn msiksrange(&self) -> Msixsrange
pub const fn msiksrange(&self) -> Msixsrange
MSIK range after Standby mode Set by software to chose the MSIK frequency at startup. This range is used after exiting Standby mode until MSIRGSEL is set. After a NRST pin or a power-on reset or when exiting Shutdown mode, the range is always 4 MHz. MSIKSRANGE can be written only when MSIRGSEL = 1. others: reserved Note: Changing the MSIKSRANGE does not change the current MSIK frequency.
pub fn set_msiksrange(&mut self, val: Msixsrange)
pub fn set_msiksrange(&mut self, val: Msixsrange)
MSIK range after Standby mode Set by software to chose the MSIK frequency at startup. This range is used after exiting Standby mode until MSIRGSEL is set. After a NRST pin or a power-on reset or when exiting Shutdown mode, the range is always 4 MHz. MSIKSRANGE can be written only when MSIRGSEL = 1. others: reserved Note: Changing the MSIKSRANGE does not change the current MSIK frequency.
pub const fn msissrange(&self) -> Msixsrange
pub const fn msissrange(&self) -> Msixsrange
MSIS range after Standby mode Set by software to chose the MSIS frequency at startup. This range is used after exiting Standby mode until MSIRGSEL is set. After a NRST pin or a power-on reset or when exiting Shutdown mode, the range is always 4 MHz. MSISSRANGE can be written only when MSIRGSEL = 1. others: reserved Note: Changing the MSISSRANGE does not change the current MSIS frequency.
pub fn set_msissrange(&mut self, val: Msixsrange)
pub fn set_msissrange(&mut self, val: Msixsrange)
MSIS range after Standby mode Set by software to chose the MSIS frequency at startup. This range is used after exiting Standby mode until MSIRGSEL is set. After a NRST pin or a power-on reset or when exiting Shutdown mode, the range is always 4 MHz. MSISSRANGE can be written only when MSIRGSEL = 1. others: reserved Note: Changing the MSISSRANGE does not change the current MSIS frequency.
pub const fn oblrstf(&self) -> bool
pub const fn oblrstf(&self) -> bool
Option byte loader reset flag Set by hardware when a reset from the option byte loading occurs. Cleared by writing to the RMVF bit.
pub fn set_oblrstf(&mut self, val: bool)
pub fn set_oblrstf(&mut self, val: bool)
Option byte loader reset flag Set by hardware when a reset from the option byte loading occurs. Cleared by writing to the RMVF bit.
pub const fn pinrstf(&self) -> bool
pub const fn pinrstf(&self) -> bool
NRST pin reset flag Set by hardware when a reset from the NRST pin occurs. Cleared by writing to the RMVF bit.
pub fn set_pinrstf(&mut self, val: bool)
pub fn set_pinrstf(&mut self, val: bool)
NRST pin reset flag Set by hardware when a reset from the NRST pin occurs. Cleared by writing to the RMVF bit.
pub const fn borrstf(&self) -> bool
pub const fn borrstf(&self) -> bool
BOR flag Set by hardware when a BOR occurs. Cleared by writing to the RMVF bit.
pub fn set_borrstf(&mut self, val: bool)
pub fn set_borrstf(&mut self, val: bool)
BOR flag Set by hardware when a BOR occurs. Cleared by writing to the RMVF bit.
pub const fn sftrstf(&self) -> bool
pub const fn sftrstf(&self) -> bool
Software reset flag Set by hardware when a software reset occurs. Cleared by writing to the RMVF bit.
pub fn set_sftrstf(&mut self, val: bool)
pub fn set_sftrstf(&mut self, val: bool)
Software reset flag Set by hardware when a software reset occurs. Cleared by writing to the RMVF bit.
pub const fn iwdgrstf(&self) -> bool
pub const fn iwdgrstf(&self) -> bool
Independent watchdog reset flag Set by hardware when an independent watchdog reset domain occurs. Cleared by writing to the RMVF bit.
pub fn set_iwdgrstf(&mut self, val: bool)
pub fn set_iwdgrstf(&mut self, val: bool)
Independent watchdog reset flag Set by hardware when an independent watchdog reset domain occurs. Cleared by writing to the RMVF bit.
pub const fn wwdgrstf(&self) -> bool
pub const fn wwdgrstf(&self) -> bool
Window watchdog reset flag Set by hardware when a window watchdog reset occurs. Cleared by writing to the RMVF bit.
pub fn set_wwdgrstf(&mut self, val: bool)
pub fn set_wwdgrstf(&mut self, val: bool)
Window watchdog reset flag Set by hardware when a window watchdog reset occurs. Cleared by writing to the RMVF bit.
pub const fn lpwrrstf(&self) -> bool
pub const fn lpwrrstf(&self) -> bool
Low-power reset flag Set by hardware when a reset occurs due to Stop, Standby or Shutdown mode entry, whereas the corresponding nRST_STOP, nRST_STBY or nRST_SHDW option bit is cleared. Cleared by writing to the RMVF bit.
pub fn set_lpwrrstf(&mut self, val: bool)
pub fn set_lpwrrstf(&mut self, val: bool)
Low-power reset flag Set by hardware when a reset occurs due to Stop, Standby or Shutdown mode entry, whereas the corresponding nRST_STOP, nRST_STBY or nRST_SHDW option bit is cleared. Cleared by writing to the RMVF bit.