Struct esp32c2_hal::pac::spi0::core_clk_sel::W
pub struct W(_);
Expand description
Register CORE_CLK_SEL
writer
Implementations§
§impl W
impl W
pub fn spi01_clk_sel(
&mut self
) -> FieldWriterRaw<'_, u32, CORE_CLK_SEL_SPEC, u8, u8, Unsafe, 2, 0>
pub fn spi01_clk_sel(
&mut self
) -> FieldWriterRaw<'_, u32, CORE_CLK_SEL_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - When the digital system clock selects PLL clock and the frequency of PLL clock is 480MHz, the value of reg_spi01_clk_sel: 0: SPI0/1 module clock (clk) is 80MHz. 1: SPI0/1 module clock (clk) is 120MHz. 2: SPI0/1 module clock (clk) 160MHz. 3: Not used. When the digital system clock selects PLL clock and the frequency of PLL clock is 320MHz, the value of reg_spi01_clk_sel: 0: SPI0/1 module clock (clk) is 80MHz. 1: SPI0/1 module clock (clk) is 80MHz. 2: SPI0/1 module clock (clk) 160MHz. 3: Not used.
Methods from Deref<Target = W<CORE_CLK_SEL_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<CORE_CLK_SEL_SPEC>> for W
impl From<W<CORE_CLK_SEL_SPEC>> for W
§fn from(writer: W<CORE_CLK_SEL_SPEC>) -> W
fn from(writer: W<CORE_CLK_SEL_SPEC>) -> W
Converts to this type from the input type.