Type Alias W

Source
pub type W = W<CTRL2_SPEC>;
Expand description

Register CTRL2 writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn cs_setup_time(&mut self) -> CS_SETUP_TIME_W<'_, CTRL2_SPEC>

Bits 0:4 - (cycles-1) of prepare phase by SPI Bus clock, this bits are combined with SPI_MEM_CS_SETUP bit.

Source

pub fn cs_hold_time(&mut self) -> CS_HOLD_TIME_W<'_, CTRL2_SPEC>

Bits 5:9 - SPI CS signal is delayed to inactive by SPI bus clock, this bits are combined with SPI_MEM_CS_HOLD bit.

Source

pub fn ecc_cs_hold_time(&mut self) -> ECC_CS_HOLD_TIME_W<'_, CTRL2_SPEC>

Bits 10:12 - SPI_MEM_CS_HOLD_TIME + SPI_MEM_ECC_CS_HOLD_TIME is the SPI0 CS hold cycle in ECC mode when accessed flash.

Source

pub fn ecc_skip_page_corner(&mut self) -> ECC_SKIP_PAGE_CORNER_W<'_, CTRL2_SPEC>

Bit 13 - 1: SPI0 and SPI1 skip page corner when accesses flash. 0: Not skip page corner when accesses flash.

Source

pub fn ecc_16to18_byte_en(&mut self) -> ECC_16TO18_BYTE_EN_W<'_, CTRL2_SPEC>

Bit 14 - Set this bit to enable SPI0 and SPI1 ECC 16 bytes data with 2 ECC bytes mode when accesses flash.

Source

pub fn split_trans_en(&mut self) -> SPLIT_TRANS_EN_W<'_, CTRL2_SPEC>

Bit 24 - Set this bit to enable SPI0 split one AXI read flash transfer into two SPI transfers when one transfer will cross flash or EXT_RAM page corner, valid no matter whether there is an ECC region or not.

Source

pub fn cs_hold_delay(&mut self) -> CS_HOLD_DELAY_W<'_, CTRL2_SPEC>

Bits 25:30 - These bits are used to set the minimum CS high time tSHSL between SPI burst transfer when accesses to flash. tSHSL is (SPI_MEM_CS_HOLD_DELAY[5:0] + 1) MSPI core clock cycles.

Source

pub fn sync_reset(&mut self) -> SYNC_RESET_W<'_, CTRL2_SPEC>

Bit 31 - The spi0_mst_st and spi0_slv_st will be reset.