#[repr(transparent)]pub struct RbarA2(pub u32);Expand description
MPU Region Base Address Register.
Tuple Fields§
§0: u32Implementations§
Source§impl RbarA2
impl RbarA2
Sourcepub const fn xn(&self) -> RbarA2Xn
pub const fn xn(&self) -> RbarA2Xn
The XN bit is an Execute Never bit, that indicates whether the processor can execute instructions from the region.
Sourcepub const fn set_xn(&mut self, val: RbarA2Xn)
pub const fn set_xn(&mut self, val: RbarA2Xn)
The XN bit is an Execute Never bit, that indicates whether the processor can execute instructions from the region.
Sourcepub const fn ap(&self) -> RbarA2Ap
pub const fn ap(&self) -> RbarA2Ap
The AP[2:0] bits indicate the access and privilege properties of the region.
Sourcepub const fn set_ap(&mut self, val: RbarA2Ap)
pub const fn set_ap(&mut self, val: RbarA2Ap)
The AP[2:0] bits indicate the access and privilege properties of the region.
Sourcepub const fn sh(&self) -> RbarA2Sh
pub const fn sh(&self) -> RbarA2Sh
For Normal memory regions, the S bit indicates whether the region is shareable. For Strongly-ordered and Device memory, the S bit is ignored.
Sourcepub const fn set_sh(&mut self, val: RbarA2Sh)
pub const fn set_sh(&mut self, val: RbarA2Sh)
For Normal memory regions, the S bit indicates whether the region is shareable. For Strongly-ordered and Device memory, the S bit is ignored.
Trait Implementations§
impl Copy for RbarA2
impl Eq for RbarA2
impl StructuralPartialEq for RbarA2
Auto Trait Implementations§
impl Freeze for RbarA2
impl RefUnwindSafe for RbarA2
impl Send for RbarA2
impl Sync for RbarA2
impl Unpin for RbarA2
impl UnwindSafe for RbarA2
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
Mutably borrows from an owned value. Read more