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_tampnoer(&mut self, n: usize, val: bool)
pub fn set_tampnoer(&mut self, n: usize, val: bool)
Tamper X no erase
pub const fn tampmsk(&self, n: usize) -> bool
pub const fn tampmsk(&self, n: usize) -> bool
Tamper X mask. The tamper 1 interrupt must not be enabled when TAMP1MSK is set.
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 1 interrupt must not be enabled when TAMP1MSK is set.
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 fn set_tamptrg(&mut self, n: usize, val: Tamptrg)
pub fn set_tamptrg(&mut self, n: usize, val: Tamptrg)
Active level for tamper 1 input.
Trait Implementations§
impl Copy for Cr2
impl Eq for Cr2
impl StructuralPartialEq for Cr2
Auto Trait Implementations§
impl Freeze for Cr2
impl RefUnwindSafe for Cr2
impl Send for Cr2
impl Sync for Cr2
impl Unpin for Cr2
impl UnwindSafe for Cr2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)