#[repr(transparent)]pub struct MpuCtrl(pub u32);
Expand description
Control register for DMA MPU. Accessible only from a Privileged context.
Tuple Fields§
§0: u32
Implementations§
source§impl MpuCtrl
impl MpuCtrl
sourcepub const fn p(&self) -> bool
pub const fn p(&self) -> bool
Determine whether an address not covered by an active MPU region is Privileged (1) or Unprivileged (0)
sourcepub fn set_p(&mut self, val: bool)
pub fn set_p(&mut self, val: bool)
Determine whether an address not covered by an active MPU region is Privileged (1) or Unprivileged (0)
sourcepub const fn s(&self) -> bool
pub const fn s(&self) -> bool
Determine whether an address not covered by an active MPU region is Secure (1) or Non-secure (0)
sourcepub fn set_s(&mut self, val: bool)
pub fn set_s(&mut self, val: bool)
Determine whether an address not covered by an active MPU region is Secure (1) or Non-secure (0)
sourcepub const fn ns_hide_addr(&self) -> bool
pub const fn ns_hide_addr(&self) -> bool
By default, when a region’s S bit is clear, Non-secure-Privileged reads can see the region’s base address and limit address. Set this bit to make the addresses appear as 0 to Non-secure reads, even when the region is Non-secure, to avoid leaking information about the processor SAU map.
sourcepub fn set_ns_hide_addr(&mut self, val: bool)
pub fn set_ns_hide_addr(&mut self, val: bool)
By default, when a region’s S bit is clear, Non-secure-Privileged reads can see the region’s base address and limit address. Set this bit to make the addresses appear as 0 to Non-secure reads, even when the region is Non-secure, to avoid leaking information about the processor SAU map.
Trait Implementations§
impl Copy for MpuCtrl
impl Eq for MpuCtrl
impl StructuralPartialEq for MpuCtrl
Auto Trait Implementations§
impl Freeze for MpuCtrl
impl RefUnwindSafe for MpuCtrl
impl Send for MpuCtrl
impl Sync for MpuCtrl
impl Unpin for MpuCtrl
impl UnwindSafe for MpuCtrl
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
)