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 set_tamppom(&mut self, n: usize, val: bool)
pub const fn set_tamppom(&mut self, n: usize, val: bool)
Tamper X 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 bkblock(&self) -> bool
pub const fn bkblock(&self) -> bool
Software potential tamper (backup registers and device secrets access blocked). 0: backup registers and device secrets can be accessed if no tamper flag is set. 1: backup registers and device secrets cannot be accessed.
pub const fn set_bkblock(&mut self, val: bool)
pub const fn set_bkblock(&mut self, val: bool)
Software potential tamper (backup registers and device secrets access blocked). 0: backup registers and device secrets can be accessed if no tamper flag is set. 1: backup registers and device secrets cannot be accessed.
pub const fn bkerase(&self) -> bool
pub const fn bkerase(&self) -> bool
Software confirmed tamper (backup registers and device secrets erase). Writing 1 to this bit raises the tamp_confirmed and tamp_confirmed_rpcfgx signals. 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)
Software confirmed tamper (backup registers and device secrets erase). Writing 1 to this bit raises the tamp_confirmed and tamp_confirmed_rpcfgx signals. 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.