Type Alias rp2040_pac::ppb::mpu_rbar::W
source · pub type W = W<MPU_RBAR_SPEC>;
Expand description
Register MPU_RBAR
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn region(&mut self) -> REGION_W<'_, MPU_RBAR_SPEC>
pub fn region(&mut self) -> REGION_W<'_, MPU_RBAR_SPEC>
Bits 0:3 - On writes, specifies the number of the region whose base address to update provided VALID is set written as 1. On reads, returns bits [3:0] of MPU_RNR.
sourcepub fn valid(&mut self) -> VALID_W<'_, MPU_RBAR_SPEC>
pub fn valid(&mut self) -> VALID_W<'_, MPU_RBAR_SPEC>
Bit 4 - On writes, indicates whether the write must update the base address of the region identified by the REGION field, updating the MPU_RNR to indicate this new region.
Write:
0 = MPU_RNR not changed, and the processor:
Updates the base address for the region specified in the MPU_RNR.
Ignores the value of the REGION field.
1 = The processor:
Updates the value of the MPU_RNR to the value of the REGION field.
Updates the base address for the region specified in the REGION field.
Always reads as zero.
sourcepub fn addr(&mut self) -> ADDR_W<'_, MPU_RBAR_SPEC>
pub fn addr(&mut self) -> ADDR_W<'_, MPU_RBAR_SPEC>
Bits 8:31 - Base address of the region.