Struct Cr2
#[repr(transparent)]pub struct Cr2(pub u32);Expand description
TAMP control register 2.
Tuple Fields§
§0: u32Implementations§
§impl Cr2
impl Cr2
pub const fn tampnoer(&self, n: usize) -> bool
pub const fn tampnoer(&self, n: usize) -> bool
Tamper X no erase (potential mode). 0: tamper X event detection is in confirmed mode. 1: tamper X event detection is in potential mode.
pub const fn set_tampnoer(&mut self, n: usize, val: bool)
pub const fn set_tampnoer(&mut self, n: usize, val: bool)
Tamper X no erase (potential mode). 0: tamper X event detection is in confirmed mode. 1: tamper X event detection is in potential mode.
pub const fn tampmsk(&self, n: usize) -> bool
pub const fn tampmsk(&self, n: usize) -> bool
Tamper X mask. The tamper X interrupt must not be enabled when TAMPxMSK is set.
pub const fn set_tampmsk(&mut self, n: usize, val: bool)
pub const fn set_tampmsk(&mut self, n: usize, val: bool)
Tamper X mask. The tamper X interrupt must not be enabled when TAMPxMSK is set.
pub const fn set_bkblock(&mut self, val: bool)
pub const fn set_bkblock(&mut self, val: bool)
Backup registers and device secrets access blocked.
pub const fn bkerase(&self) -> bool
pub const fn bkerase(&self) -> bool
Backup registers and device secrets erase. Writing 1 to this bit resets the backup registers and device secrets. Writing 0 has no effect. This bit is always read as 0.
pub const fn set_bkerase(&mut self, val: bool)
pub const fn set_bkerase(&mut self, val: bool)
Backup registers and device secrets erase. Writing 1 to this bit resets the backup registers and device secrets. Writing 0 has no effect. This bit is always read as 0.
pub const fn set_tamptrg(&mut self, n: usize, val: Tamptrg)
pub const fn set_tamptrg(&mut self, n: usize, val: Tamptrg)
Active level for tamper X input.