rp-pac

Crates

git

Versions

rp235x

Flavors

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

source

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.

source

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.

source

pub const fn nsp(&self) -> bool

If 1, TIMER0 can be accessed from a Non-secure, Privileged context.

source

pub fn set_nsp(&mut self, val: bool)

If 1, TIMER0 can be accessed from a Non-secure, Privileged context.

source

pub const fn su(&self) -> bool

If 1, and SP is also set, TIMER0 can be accessed from a Secure, Unprivileged context.

source

pub fn set_su(&mut self, val: bool)

If 1, and SP is also set, TIMER0 can be accessed from a Secure, Unprivileged context.

source

pub const fn sp(&self) -> bool

If 1, TIMER0 can be accessed from a Secure, Privileged context.

source

pub fn set_sp(&mut self, val: bool)

If 1, TIMER0 can be accessed from a Secure, Privileged context.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub const fn dbg(&self) -> bool

If 1, TIMER0 can be accessed by the debugger, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.

source

pub fn set_dbg(&mut self, val: bool)

If 1, TIMER0 can be accessed by the debugger, at security/privilege levels permitted by SP/NSP/SU/NSU in this register.

Trait Implementations§

source§

impl Clone for Access

source§

fn clone(&self) -> Access

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for Access

source§

fn default() -> Access

Returns the “default value” for a type. Read more
source§

impl PartialEq for Access

source§

fn eq(&self, other: &Access) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Access

source§

impl Eq for Access

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.