#[repr(transparent)]pub struct SeccfgIrq(pub u32);
Expand description
Security configuration for IRQ 3. Control whether the IRQ permits configuration by Non-secure/Unprivileged contexts, and whether it can observe Secure/Privileged channel interrupt flags.
Tuple Fields§
§0: u32
Implementations§
source§impl SeccfgIrq
impl SeccfgIrq
sourcepub const fn p(&self) -> bool
pub const fn p(&self) -> bool
Privileged IRQ. If 1, this IRQ’s control registers can only be accessed from a Privileged context. If 0, this IRQ’s control registers can be accessed from an Unprivileged context, but Privileged channels (as per SECCFG_CHx) are masked from the IRQ status, and this IRQ’s registers can not be used to acknowledge the channel interrupts of Privileged channels.
sourcepub fn set_p(&mut self, val: bool)
pub fn set_p(&mut self, val: bool)
Privileged IRQ. If 1, this IRQ’s control registers can only be accessed from a Privileged context. If 0, this IRQ’s control registers can be accessed from an Unprivileged context, but Privileged channels (as per SECCFG_CHx) are masked from the IRQ status, and this IRQ’s registers can not be used to acknowledge the channel interrupts of Privileged channels.
sourcepub const fn s(&self) -> bool
pub const fn s(&self) -> bool
Secure IRQ. If 1, this IRQ’s control registers can only be accessed from a Secure context. If 0, this IRQ’s control registers can be accessed from a Non-secure context, but Secure channels (as per SECCFG_CHx) are masked from the IRQ status, and this IRQ’s registers can not be used to acknowledge the channel interrupts of Secure channels.
sourcepub fn set_s(&mut self, val: bool)
pub fn set_s(&mut self, val: bool)
Secure IRQ. If 1, this IRQ’s control registers can only be accessed from a Secure context. If 0, this IRQ’s control registers can be accessed from a Non-secure context, but Secure channels (as per SECCFG_CHx) are masked from the IRQ status, and this IRQ’s registers can not be used to acknowledge the channel interrupts of Secure channels.
Trait Implementations§
impl Copy for SeccfgIrq
impl Eq for SeccfgIrq
impl StructuralPartialEq for SeccfgIrq
Auto Trait Implementations§
impl Freeze for SeccfgIrq
impl RefUnwindSafe for SeccfgIrq
impl Send for SeccfgIrq
impl Sync for SeccfgIrq
impl Unpin for SeccfgIrq
impl UnwindSafe for SeccfgIrq
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
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)
clone_to_uninit
)