Struct esp32c2_hal::pac::spi1::ctrl1::R
pub struct R(_);
Expand description
Register CTRL1
reader
Implementations§
§impl R
impl R
pub fn clk_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn clk_mode(&self) -> FieldReaderRaw<u8, u8>
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(&self) -> FieldReaderRaw<u16, u16>
pub fn cs_hold_dly_res(&self) -> FieldReaderRaw<u16, u16>
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 = R<CTRL1_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations§
§impl From<R<CTRL1_SPEC>> for R
impl From<R<CTRL1_SPEC>> for R
§fn from(reader: R<CTRL1_SPEC>) -> R
fn from(reader: R<CTRL1_SPEC>) -> R
Converts to this type from the input type.