Struct Csr
#[repr(transparent)]pub struct Csr(pub u32);Expand description
CSR register.
Tuple Fields§
§0: u32Implementations§
§impl Csr
impl Csr
pub const fn rmvf(&self) -> Rmvf
pub const fn rmvf(&self) -> Rmvf
Remove reset flag Set by software to clear the value of the reset flags. It auto clears by HW after clearing reason flags.
pub fn set_rmvf(&mut self, val: Rmvf)
pub fn set_rmvf(&mut self, val: Rmvf)
Remove reset flag Set by software to clear the value of the reset flags. It auto clears by HW after clearing reason flags.
pub const fn padrstf(&self) -> Padrstf
pub const fn padrstf(&self) -> Padrstf
SYSTEM reset flag Reset by software by writing the RMVF bit. Set by hardware when a reset from pad occurs.
pub fn set_padrstf(&mut self, val: Padrstf)
pub fn set_padrstf(&mut self, val: Padrstf)
SYSTEM reset flag Reset by software by writing the RMVF bit. Set by hardware when a reset from pad occurs.
pub const fn porrstf(&self) -> Porrstf
pub const fn porrstf(&self) -> Porrstf
POWER reset flag Reset by software by writing the RMVF bit. Set by hardware when a power reset occurs from LPMURESET block.
pub fn set_porrstf(&mut self, val: Porrstf)
pub fn set_porrstf(&mut self, val: Porrstf)
POWER reset flag Reset by software by writing the RMVF bit. Set by hardware when a power reset occurs from LPMURESET block.
pub const fn sftrstf(&self) -> Sftrstf
pub const fn sftrstf(&self) -> Sftrstf
Software reset flag Reset by software by writing the RMVF bit. Set by hardware when a software reset occurs.
pub fn set_sftrstf(&mut self, val: Sftrstf)
pub fn set_sftrstf(&mut self, val: Sftrstf)
Software reset flag Reset by software by writing the RMVF bit. Set by hardware when a software reset occurs.
pub const fn wdgrstf(&self) -> Wdgrstf
pub const fn wdgrstf(&self) -> Wdgrstf
Watchdog reset flag Reset by software by writing the RMVF bit. Set by hardware when a watchdog reset from V33 domain occurs.
pub fn set_wdgrstf(&mut self, val: Wdgrstf)
pub fn set_wdgrstf(&mut self, val: Wdgrstf)
Watchdog reset flag Reset by software by writing the RMVF bit. Set by hardware when a watchdog reset from V33 domain occurs.
pub const fn lockuprstf(&self) -> Lockuprstf
pub const fn lockuprstf(&self) -> Lockuprstf
LOCK UP reset flag from CM0 Reset by software by writing the RMVF bit. Set by hardware from unrecoverable exception CPU. It reset V12i domain, FLASH controller and peripherals.
pub fn set_lockuprstf(&mut self, val: Lockuprstf)
pub fn set_lockuprstf(&mut self, val: Lockuprstf)
LOCK UP reset flag from CM0 Reset by software by writing the RMVF bit. Set by hardware from unrecoverable exception CPU. It reset V12i domain, FLASH controller and peripherals.