Type Alias rp2040_pac::ppb::mpu_rasr::R
source · pub type R = R<MPU_RASR_SPEC>;
Expand description
Register MPU_RASR
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn size(&self) -> SIZE_R
pub fn size(&self) -> SIZE_R
Bits 1:5 - Indicates the region size. Region size in bytes = 2^(SIZE+1). The minimum permitted value is 7 (b00111) = 256Bytes
sourcepub fn srd(&self) -> SRD_R
pub fn srd(&self) -> SRD_R
Bits 8:15 - Subregion Disable. For regions of 256 bytes or larger, each bit of this field controls whether one of the eight equal subregions is enabled.
sourcepub fn attrs(&self) -> ATTRS_R
pub fn attrs(&self) -> ATTRS_R
Bits 16:31 - The MPU Region Attribute field. Use to define the region attribute control.
28 = XN: Instruction access disable bit:
0 = Instruction fetches enabled.
1 = Instruction fetches disabled.
26:24 = AP: Access permission field
18 = S: Shareable bit
17 = C: Cacheable bit
16 = B: Bufferable bit