Struct rp_pac::accessctrl::regs::Access
source · #[repr(transparent)]pub struct Access(pub u32);
Expand description
Control whether debugger, DMA, core 0 and core 1 can access TIMER0, and at what security/privilege levels they can do so. Defaults to Secure access from any master. This register is writable only from a Secure, Privileged processor or debugger, with the exception of the NSU bit, which becomes Non-secure-Privileged-writable when the NSP bit is set.
Tuple Fields§
§0: u32
Implementations§
source§impl Access
impl Access
sourcepub const fn nsu(&self) -> bool
pub const fn nsu(&self) -> bool
If 1, and NSP is also set, TIMER0 can be accessed from a Non-secure, Unprivileged context. This bit is writable from a Non-secure, Privileged context, if and only if the NSP bit is set.
sourcepub fn set_nsu(&mut self, val: bool)
pub fn set_nsu(&mut self, val: bool)
If 1, and NSP is also set, TIMER0 can be accessed from a Non-secure, Unprivileged context. This bit is writable from a Non-secure, Privileged context, if and only if the NSP bit is set.
sourcepub const fn nsp(&self) -> bool
pub const fn nsp(&self) -> bool
If 1, TIMER0 can be accessed from a Non-secure, Privileged context.
sourcepub fn set_nsp(&mut self, val: bool)
pub fn set_nsp(&mut self, val: bool)
If 1, TIMER0 can be accessed from a Non-secure, Privileged context.
sourcepub const fn su(&self) -> bool
pub const fn su(&self) -> bool
If 1, and SP is also set, TIMER0 can be accessed from a Secure, Unprivileged context.
sourcepub fn set_su(&mut self, val: bool)
pub fn set_su(&mut self, val: bool)
If 1, and SP is also set, TIMER0 can be accessed from a Secure, Unprivileged context.
sourcepub fn set_sp(&mut self, val: bool)
pub fn set_sp(&mut self, val: bool)
If 1, TIMER0 can be accessed from a Secure, Privileged context.
sourcepub const fn core0(&self) -> bool
pub const fn core0(&self) -> bool
If 1, TIMER0 can be accessed by core 0, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.
sourcepub fn set_core0(&mut self, val: bool)
pub fn set_core0(&mut self, val: bool)
If 1, TIMER0 can be accessed by core 0, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.
sourcepub const fn core1(&self) -> bool
pub const fn core1(&self) -> bool
If 1, TIMER0 can be accessed by core 1, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.
sourcepub fn set_core1(&mut self, val: bool)
pub fn set_core1(&mut self, val: bool)
If 1, TIMER0 can be accessed by core 1, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.
sourcepub const fn dma(&self) -> bool
pub const fn dma(&self) -> bool
If 1, TIMER0 can be accessed by the DMA, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.
sourcepub fn set_dma(&mut self, val: bool)
pub fn set_dma(&mut self, val: bool)
If 1, TIMER0 can be accessed by the DMA, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.
Trait Implementations§
impl Copy for Access
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnwindSafe for Access
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
)