Struct esp32s3_hal::pac::spi0::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 Bus clock (SPI_CLK) mode bits. 0: SPI Bus clock (SPI_CLK) is off when CS inactive 1: SPI_CLK is delayed one cycle after SPI_CS inactive 2: SPI_CLK is delayed two cycles after SPI_CS inactive 3: SPI_CLK is always on.
pub fn rxfifo_rst(
&mut self
) -> BitWriterRaw<'_, u32, CTRL1_SPEC, bool, BitM, 30>
pub fn rxfifo_rst(
&mut self
) -> BitWriterRaw<'_, u32, CTRL1_SPEC, bool, BitM, 30>
Bit 30 - SPI0 RX FIFO reset signal. Set this bit and clear it before SPI0 transfer starts.
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.