Struct rp_pac::dma::regs::SeccfgMisc
source · #[repr(transparent)]pub struct SeccfgMisc(pub u32);
Expand description
Miscellaneous security configuration
Tuple Fields§
§0: u32
Implementations§
source§impl SeccfgMisc
impl SeccfgMisc
sourcepub const fn sniff_p(&self) -> bool
pub const fn sniff_p(&self) -> bool
If 1, the sniffer can see data transfers from Privileged channels, and can itself only be accessed from a privileged context, or from a Secure context when SNIFF_S is 0. If 0, the sniffer can be accessed from either a Privileged or Unprivileged context (with sufficient security level) but can not see transfers from Privileged channels.
sourcepub fn set_sniff_p(&mut self, val: bool)
pub fn set_sniff_p(&mut self, val: bool)
If 1, the sniffer can see data transfers from Privileged channels, and can itself only be accessed from a privileged context, or from a Secure context when SNIFF_S is 0. If 0, the sniffer can be accessed from either a Privileged or Unprivileged context (with sufficient security level) but can not see transfers from Privileged channels.
sourcepub const fn sniff_s(&self) -> bool
pub const fn sniff_s(&self) -> bool
If 1, the sniffer can see data transfers from Secure channels, and can itself only be accessed from a Secure context. If 0, the sniffer can be accessed from either a Secure or Non-secure context, but can not see data transfers of Secure channels.
sourcepub fn set_sniff_s(&mut self, val: bool)
pub fn set_sniff_s(&mut self, val: bool)
If 1, the sniffer can see data transfers from Secure channels, and can itself only be accessed from a Secure context. If 0, the sniffer can be accessed from either a Secure or Non-secure context, but can not see data transfers of Secure channels.
sourcepub const fn timer_p(&self, n: usize) -> bool
pub const fn timer_p(&self, n: usize) -> bool
If 1, the TIMER0 register is only accessible from a Privileged (or more Secure) context, and timer DREQ 0 is only visible to Privileged (or more Secure) channels.
sourcepub fn set_timer_p(&mut self, n: usize, val: bool)
pub fn set_timer_p(&mut self, n: usize, val: bool)
If 1, the TIMER0 register is only accessible from a Privileged (or more Secure) context, and timer DREQ 0 is only visible to Privileged (or more Secure) channels.
sourcepub const fn timer_s(&self, n: usize) -> bool
pub const fn timer_s(&self, n: usize) -> bool
If 1, the TIMER0 register is only accessible from a Secure context, and timer DREQ 0 is only visible to Secure channels.
sourcepub fn set_timer_s(&mut self, n: usize, val: bool)
pub fn set_timer_s(&mut self, n: usize, val: bool)
If 1, the TIMER0 register is only accessible from a Secure context, and timer DREQ 0 is only visible to Secure channels.
Trait Implementations§
source§impl Clone for SeccfgMisc
impl Clone for SeccfgMisc
source§fn clone(&self) -> SeccfgMisc
fn clone(&self) -> SeccfgMisc
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SeccfgMisc
impl Default for SeccfgMisc
source§fn default() -> SeccfgMisc
fn default() -> SeccfgMisc
source§impl PartialEq for SeccfgMisc
impl PartialEq for SeccfgMisc
impl Copy for SeccfgMisc
impl Eq for SeccfgMisc
impl StructuralPartialEq for SeccfgMisc
Auto Trait Implementations§
impl Freeze for SeccfgMisc
impl RefUnwindSafe for SeccfgMisc
impl Send for SeccfgMisc
impl Sync for SeccfgMisc
impl Unpin for SeccfgMisc
impl UnwindSafe for SeccfgMisc
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
)