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

source

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.

source

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.

source

pub fn addr(&mut self) -> ADDR_W<'_, MPU_RBAR_SPEC>

Bits 8:31 - Base address of the region.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual