#[repr(transparent)]pub struct Access(pub u32);
Expand description
Control whether debugger, DMA, core 0 and core 1 can access ADC0, 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, ADC0 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, ADC0 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, ADC0 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, ADC0 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, ADC0 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, ADC0 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, ADC0 can be accessed from a Secure, Privileged context.
Sourcepub const fn core0(&self) -> bool
pub const fn core0(&self) -> bool
If 1, ADC0 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, ADC0 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, ADC0 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, ADC0 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, ADC0 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, ADC0 can be accessed by the DMA, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.