Type Alias rp2040_pac::ppb::mpu_rnr::W

source ·
pub type W = W<MPU_RNR_SPEC>;
Expand description

Register MPU_RNR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn region(&mut self) -> REGION_W<'_, MPU_RNR_SPEC>

Bits 0:3 - Indicates the MPU region referenced by the MPU_RBAR and MPU_RASR registers.
The MPU supports 8 memory regions, so the permitted values of this field are 0-7.

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