Type Alias rp2040_pac::xip_ctrl::ctrl::R
source · pub type R = R<CTRL_SPEC>;
Expand description
Register CTRL
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn en(&self) -> EN_R
pub fn en(&self) -> EN_R
Bit 0 - When 1, enable the cache. When the cache is disabled, all XIP accesses
will go straight to the flash, without querying the cache. When enabled,
cacheable XIP accesses will query the cache, and the flash will
not be accessed if the tag matches and the valid bit is set.
If the cache is enabled, cache-as-SRAM accesses have no effect on the
cache data RAM, and will produce a bus error response.
sourcepub fn err_badwrite(&self) -> ERR_BADWRITE_R
pub fn err_badwrite(&self) -> ERR_BADWRITE_R
Bit 1 - When 1, writes to any alias other than 0x0 (caching, allocating)
will produce a bus fault. When 0, these writes are silently ignored.
In either case, writes to the 0x0 alias will deallocate on tag match,
as usual.
sourcepub fn power_down(&self) -> POWER_DOWN_R
pub fn power_down(&self) -> POWER_DOWN_R
Bit 3 - When 1, the cache memories are powered down. They retain state,
but can not be accessed. This reduces static power dissipation.
Writing 1 to this bit forces CTRL_EN to 0, i.e. the cache cannot
be enabled when powered down.
Cache-as-SRAM accesses will produce a bus error response when
the cache is powered down.