Struct stm32_metapac::tamp::regs::Cr2
#[repr(transparent)]pub struct Cr2(pub u32);
Expand description
TAMP control register 2.
Tuple Fields§
§0: u32
Implementations§
§impl Cr2
impl Cr2
pub fn set_tamppom(&mut self, n: usize, val: bool)
pub fn set_tamppom(&mut self, n: usize, val: bool)
Tamper x potential mode. (x=1-8)
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. (x=1-3)
pub fn set_tampmsk(&mut self, n: usize, val: bool)
pub fn set_tampmsk(&mut self, n: usize, val: bool)
Tamper x mask. The tamper x interrupt must not be enabled when TAMPxMSK is set. (x=1-3)
pub fn set_bkblock(&mut self, val: bool)
pub 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 reset the backup registers and device secrets(1). Writing 0 has no effect. This bit is always read as 0.
pub fn set_bkerase(&mut self, val: bool)
pub fn set_bkerase(&mut self, val: bool)
Backup registers and device secrets erase Writing ‘1’ to this bit reset the backup registers and device secrets(1). Writing 0 has no effect. This bit is always read as 0.
pub const fn tamptrg(&self, n: usize) -> bool
pub const fn tamptrg(&self, n: usize) -> bool
Active level for tamper x input If TAMPFLT = 00 Tamper x input rising edge triggers a tamper detection event. If TAMPFLT = 00 Tamper x input falling edge triggers a tamper detection event. (x=1-8)
pub fn set_tamptrg(&mut self, n: usize, val: bool)
pub fn set_tamptrg(&mut self, n: usize, val: bool)
Active level for tamper x input If TAMPFLT = 00 Tamper x input rising edge triggers a tamper detection event. If TAMPFLT = 00 Tamper x input falling edge triggers a tamper detection event. (x=1-8)