#[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.