Struct stm32_metapac::tamp::regs::Sr
#[repr(transparent)]pub struct Sr(pub u32);
Expand description
TAMP status register
Tuple Fields§
§0: u32
Implementations§
§impl Sr
impl Sr
pub const fn tampf(&self, n: usize) -> bool
pub const fn tampf(&self, n: usize) -> bool
TAMPx detection flag. This flag is set by hardware when a tamper detection event is detected on the TAMPx input.
pub fn set_tampf(&mut self, n: usize, val: bool)
pub fn set_tampf(&mut self, n: usize, val: bool)
TAMPx detection flag. This flag is set by hardware when a tamper detection event is detected on the TAMPx input.
pub const fn itampf(&self, n: usize) -> bool
pub const fn itampf(&self, n: usize) -> bool
Internal tamper X flag. This flag is set by hardware when a tamper detection event is detected on the internal tamper X.
pub fn set_itampf(&mut self, n: usize, val: bool)
pub fn set_itampf(&mut self, n: usize, val: bool)
Internal tamper X flag. This flag is set by hardware when a tamper detection event is detected on the internal tamper X.
Trait Implementations§
impl Copy for Sr
impl Eq for Sr
impl StructuralPartialEq for Sr
Auto Trait Implementations§
impl Freeze for Sr
impl RefUnwindSafe for Sr
impl Send for Sr
impl Sync for Sr
impl Unpin for Sr
impl UnwindSafe for Sr
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
)