Struct stm32_metapac::exti::regs::Sec
#[repr(transparent)]pub struct Sec(pub u32);
Expand description
security configuration register
Tuple Fields§
§0: u32
Implementations§
§impl Sec
impl Sec
pub const fn sec(&self, n: usize) -> bool
pub const fn sec(&self, n: usize) -> bool
Security enable on event input x When EXTI_PRIVCFGR.PRIVx is disabled, SECx can be accessed with privileged and unprivileged access. When EXTI_PRIVCFGR.PRIVx is enabled, SECx can only be written with privileged access. Unprivileged write to this SECx is discarded.
pub fn set_sec(&mut self, n: usize, val: bool)
pub fn set_sec(&mut self, n: usize, val: bool)
Security enable on event input x When EXTI_PRIVCFGR.PRIVx is disabled, SECx can be accessed with privileged and unprivileged access. When EXTI_PRIVCFGR.PRIVx is enabled, SECx can only be written with privileged access. Unprivileged write to this SECx is discarded.
Trait Implementations§
impl Copy for Sec
impl Eq for Sec
impl StructuralPartialEq for Sec
Auto Trait Implementations§
impl Freeze for Sec
impl RefUnwindSafe for Sec
impl Send for Sec
impl Sync for Sec
impl Unpin for Sec
impl UnwindSafe for Sec
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
)