Struct esp32s3_hal::pac::extmem::dcache_ctrl::W
pub struct W(_);
Expand description
Register DCACHE_CTRL
writer
Implementations§
§impl W
impl W
pub fn dcache_enable(
&mut self
) -> BitWriterRaw<'_, u32, DCACHE_CTRL_SPEC, bool, BitM, 0>
pub fn dcache_enable(
&mut self
) -> BitWriterRaw<'_, u32, DCACHE_CTRL_SPEC, bool, BitM, 0>
Bit 0 - The bit is used to activate the data cache. 0: disable, 1: enable
pub fn dcache_size_mode(
&mut self
) -> BitWriterRaw<'_, u32, DCACHE_CTRL_SPEC, bool, BitM, 2>
pub fn dcache_size_mode(
&mut self
) -> BitWriterRaw<'_, u32, DCACHE_CTRL_SPEC, bool, BitM, 2>
Bit 2 - The bit is used to configure cache memory size.0: 32KB, 1: 64KB
pub fn dcache_blocksize_mode(
&mut self
) -> FieldWriterRaw<'_, u32, DCACHE_CTRL_SPEC, u8, u8, Unsafe, 2, 3>
pub fn dcache_blocksize_mode(
&mut self
) -> FieldWriterRaw<'_, u32, DCACHE_CTRL_SPEC, u8, u8, Unsafe, 2, 3>
Bits 3:4 - The bit is used to configure cache block size.0: 16 bytes, 1: 32 bytes,2: 64 bytes
Methods from Deref<Target = W<DCACHE_CTRL_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations§
§impl From<W<DCACHE_CTRL_SPEC>> for W
impl From<W<DCACHE_CTRL_SPEC>> for W
§fn from(writer: W<DCACHE_CTRL_SPEC>) -> W
fn from(writer: W<DCACHE_CTRL_SPEC>) -> W
Converts to this type from the input type.