Type Alias xmc4300::ppb::mpu_rasr::W

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

Register MPU_RASR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn enable(&mut self) -> EnableW<'_, MpuRasrSpec>

Bit 0 - Region enable bit.

source

pub fn size(&mut self) -> SizeW<'_, MpuRasrSpec>

Bits 1:5 - MPU protection region size

source

pub fn srd(&mut self) -> SrdW<'_, MpuRasrSpec>

Bits 8:15 - Subregion disable bits

source

pub fn b(&mut self) -> BW<'_, MpuRasrSpec>

Bit 16 - Memory access attribute

source

pub fn c(&mut self) -> CW<'_, MpuRasrSpec>

Bit 17 - Memory access attribute

source

pub fn s(&mut self) -> SW<'_, MpuRasrSpec>

Bit 18 - Shareable bit

source

pub fn tex(&mut self) -> TexW<'_, MpuRasrSpec>

Bits 19:21 - Memory access attribute

source

pub fn ap(&mut self) -> ApW<'_, MpuRasrSpec>

Bits 24:26 - Access permission field

source

pub fn xn(&mut self) -> XnW<'_, MpuRasrSpec>

Bit 28 - Instruction access disable bit