Struct stm32_metapac::tamp::regs::Smcr
#[repr(transparent)]pub struct Smcr(pub u32);
Expand description
TAMP secure mode register
Tuple Fields§
§0: u32
Implementations§
§impl Smcr
impl Smcr
pub const fn bkprwdprot(&self) -> u8
pub const fn bkprwdprot(&self) -> u8
Backup registers read/write protection offset
pub fn set_bkprwdprot(&mut self, val: u8)
pub fn set_bkprwdprot(&mut self, val: u8)
Backup registers read/write protection offset
pub fn set_bkpwdprot(&mut self, val: u8)
pub fn set_bkpwdprot(&mut self, val: u8)
Backup registers write protection offset
pub fn set_tampdprot(&mut self, val: bool)
pub fn set_tampdprot(&mut self, val: bool)
Tamper protection
Trait Implementations§
impl Copy for Smcr
impl Eq for Smcr
impl StructuralPartialEq for Smcr
Auto Trait Implementations§
impl Freeze for Smcr
impl RefUnwindSafe for Smcr
impl Send for Smcr
impl Sync for Smcr
impl Unpin for Smcr
impl UnwindSafe for Smcr
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
)