[][src]Type Definition esp32::spi::spi_ctrl2_reg::W

type W = W<u32, SPI_CTRL2_REG>;

Writer for register SPI_CTRL2_REG

Methods

impl W[src]

pub fn spi_cs_delay_num(&mut self) -> SPI_CS_DELAY_NUM_W[src]

Bits 28:31 - spi_cs signal is delayed by system clock cycles

pub fn spi_cs_delay_mode(&mut self) -> SPI_CS_DELAY_MODE_W[src]

Bits 26:27 - spi_cs signal is delayed by spi_clk . 0: zero 1: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by half cycle else delayed by one cycle 2: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by one cycle else delayed by half cycle 3: delayed one cycle

pub fn spi_mosi_delay_num(&mut self) -> SPI_MOSI_DELAY_NUM_W[src]

Bits 23:25 - MOSI signals are delayed by system clock cycles

pub fn spi_mosi_delay_mode(&mut self) -> SPI_MOSI_DELAY_MODE_W[src]

Bits 21:22 - MOSI signals are delayed by spi_clk. 0: zero 1: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by half cycle else delayed by one cycle 2: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by one cycle else delayed by half cycle 3: delayed one cycle

pub fn spi_miso_delay_num(&mut self) -> SPI_MISO_DELAY_NUM_W[src]

Bits 18:20 - MISO signals are delayed by system clock cycles

pub fn spi_miso_delay_mode(&mut self) -> SPI_MISO_DELAY_MODE_W[src]

Bits 16:17 - MISO signals are delayed by spi_clk. 0: zero 1: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by half cycle else delayed by one cycle 2: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by one cycle else delayed by half cycle 3: delayed one cycle

pub fn spi_ck_out_high_mode(&mut self) -> SPI_CK_OUT_HIGH_MODE_W[src]

Bits 12:15 - modify spi clock duty ratio when the value is lager than 8, the bits are combined with spi_clkcnt_N bits and spi_clkcnt_H bits.

pub fn spi_ck_out_low_mode(&mut self) -> SPI_CK_OUT_LOW_MODE_W[src]

Bits 8:11 - modify spi clock duty ratio when the value is lager than 8, the bits are combined with spi_clkcnt_N bits and spi_clkcnt_L bits.

pub fn spi_hold_time(&mut self) -> SPI_HOLD_TIME_W[src]

Bits 4:7 - delay cycles of cs pin by spi clock, this bits combined with spi_cs_hold bit.

pub fn spi_setup_time(&mut self) -> SPI_SETUP_TIME_W[src]

Bits 0:3 - (cycles-1) of ¡°prepare¡± phase by spi clock, this bits combined with spi_cs_setup bit.