Module esp32s2::spi0::ctrl2

source ·
Expand description

SPI control register 2

Structs

  • SPI control register 2
  • Register CTRL2 reader
  • Register CTRL2 writer

Type Definitions

  • Field CS_DELAY_MODE reader - spi_cs signal is delayed by spi_clk . 0: zero 1: if SPI_CK_OUT_EDGE or SPI_CK_IDLE_EDGE is set 1 delayed by half cycle else delayed by one cycle 2: if SPI_CK_OUT_EDGE or SPI_CK_IDLE_EDGE is set 1 delayed by one cycle, else delayed by half cycle 3: delayed one cycle. Can be configured in CONF state.
  • Field CS_DELAY_MODE writer - spi_cs signal is delayed by spi_clk . 0: zero 1: if SPI_CK_OUT_EDGE or SPI_CK_IDLE_EDGE is set 1 delayed by half cycle else delayed by one cycle 2: if SPI_CK_OUT_EDGE or SPI_CK_IDLE_EDGE is set 1 delayed by one cycle, else delayed by half cycle 3: delayed one cycle. Can be configured in CONF state.
  • Field CS_DELAY_NUM reader - spi_cs signal is delayed by system clock cycles. Can be configured in CONF state.
  • Field CS_DELAY_NUM writer - spi_cs signal is delayed by system clock cycles. Can be configured in CONF state.
  • Field CS_HOLD_TIME reader - delay cycles of cs pin by spi clock this bits are combined with SPI_CS_HOLD bit. Can be configured in CONF state.
  • Field CS_HOLD_TIME writer - delay cycles of cs pin by spi clock this bits are combined with SPI_CS_HOLD bit. Can be configured in CONF state.
  • Field CS_SETUP_TIME reader - (cycles+1) of prepare phase by spi clock this bits are combined with SPI_CS_SETUP bit. Can be configured in CONF state.
  • Field CS_SETUP_TIME writer - (cycles+1) of prepare phase by spi clock this bits are combined with SPI_CS_SETUP bit. Can be configured in CONF state.