Struct esp32_hal::pac::spi0::cache_fctrl::W
pub struct W(_);
Expand description
Register CACHE_FCTRL
writer
Implementations§
§impl W
impl W
pub fn cache_req_en(
&mut self
) -> BitWriterRaw<'_, u32, CACHE_FCTRL_SPEC, bool, BitM, 0>
pub fn cache_req_en(
&mut self
) -> BitWriterRaw<'_, u32, CACHE_FCTRL_SPEC, bool, BitM, 0>
Bit 0 - For SPI0 Cache access enable 1: enable 0:disable.
pub fn cache_usr_cmd_4byte(
&mut self
) -> BitWriterRaw<'_, u32, CACHE_FCTRL_SPEC, bool, BitM, 1>
pub fn cache_usr_cmd_4byte(
&mut self
) -> BitWriterRaw<'_, u32, CACHE_FCTRL_SPEC, bool, BitM, 1>
Bit 1 - For SPI0 cache read flash with 4 bytes command 1: enable 0:disable.
pub fn cache_flash_usr_cmd(
&mut self
) -> BitWriterRaw<'_, u32, CACHE_FCTRL_SPEC, bool, BitM, 2>
pub fn cache_flash_usr_cmd(
&mut self
) -> BitWriterRaw<'_, u32, CACHE_FCTRL_SPEC, bool, BitM, 2>
Bit 2 - For SPI0 cache read flash for user define command 1: enable 0:disable.
pub fn cache_flash_pes_en(
&mut self
) -> BitWriterRaw<'_, u32, CACHE_FCTRL_SPEC, bool, BitM, 3>
pub fn cache_flash_pes_en(
&mut self
) -> BitWriterRaw<'_, u32, CACHE_FCTRL_SPEC, bool, BitM, 3>
Bit 3 - For SPI0 spi1 send suspend command before cache read flash 1: enable 0:disable.
Methods from Deref<Target = W<CACHE_FCTRL_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<CACHE_FCTRL_SPEC>> for W
impl From<W<CACHE_FCTRL_SPEC>> for W
§fn from(writer: W<CACHE_FCTRL_SPEC>) -> W
fn from(writer: W<CACHE_FCTRL_SPEC>) -> W
Converts to this type from the input type.