Type Alias rp235x_pac::dma::mpu_lar5::R

source ·
pub type R = R<MPU_LAR5_SPEC>;
Expand description

Register MPU_LAR5 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn en(&self) -> EN_R

Bit 0 - Region enable. If 1, any address within range specified by the base address (BAR_ADDR) and limit address (LAR_ADDR) has the attributes specified by S and P.

source

pub fn p(&self) -> P_R

Bit 1 - Determines the Privileged/Unprivileged (=1/0) status of addresses matching this region, if this region is enabled. Writable from any Privileged context, if and only if the S bit is clear. Otherwise, writable only from a Secure, Privileged context.

source

pub fn s(&self) -> S_R

Bit 2 - Determines the Secure/Non-secure (=1/0) status of addresses matching this region, if this region is enabled.

source

pub fn addr(&self) -> ADDR_R

Bits 5:31 - Limit address bits 31:5. Readable from any Privileged context, if and only if this region’s S bit is clear, and MPU_CTRL_NS_HIDE_ADDR is clear. Otherwise readable only from a Secure, Privileged context.