Struct esp32c2_hal::pac::spi1::ctrl1::W
pub struct W(_);
Expand description
Register CTRL1
writer
Implementations§
§impl W
impl W
pub fn clk_mode(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL1_SPEC, u8, u8, Unsafe, 2, 0>
pub fn clk_mode(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL1_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - SPI clock mode bits. 0: SPI clock is off when CS inactive 1: SPI clock is delayed one cycle after CS inactive 2: SPI clock is delayed two cycles after CS inactive 3: SPI clock is alwasy on.
pub fn cs_hold_dly_res(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL1_SPEC, u16, u16, Unsafe, 10, 2>
pub fn cs_hold_dly_res(
&mut self
) -> FieldWriterRaw<'_, u32, CTRL1_SPEC, u16, u16, Unsafe, 10, 2>
Bits 2:11 - After RES/DP/HPM command is sent, SPI1 waits (SPI_MEM_CS_HOLD_DELAY_RES[9:0] * 512) SPI_CLK cycles.
Methods from Deref<Target = W<CTRL1_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<CTRL1_SPEC>> for W
impl From<W<CTRL1_SPEC>> for W
§fn from(writer: W<CTRL1_SPEC>) -> W
fn from(writer: W<CTRL1_SPEC>) -> W
Converts to this type from the input type.