Type Alias rp2040_pac::xip_ssi::spi_ctrlr0::W

source ·
pub type W = W<SPI_CTRLR0_SPEC>;
Expand description

Register SPI_CTRLR0 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn trans_type(&mut self) -> TRANS_TYPE_W<'_, SPI_CTRLR0_SPEC>

Bits 0:1 - Address and instruction transfer format

source

pub fn addr_l(&mut self) -> ADDR_L_W<'_, SPI_CTRLR0_SPEC>

Bits 2:5 - Address length (0b-60b in 4b increments)

source

pub fn inst_l(&mut self) -> INST_L_W<'_, SPI_CTRLR0_SPEC>

Bits 8:9 - Instruction length (0/4/8/16b)

source

pub fn wait_cycles(&mut self) -> WAIT_CYCLES_W<'_, SPI_CTRLR0_SPEC>

Bits 11:15 - Wait cycles between control frame transmit and data reception (in SCLK cycles)

source

pub fn spi_ddr_en(&mut self) -> SPI_DDR_EN_W<'_, SPI_CTRLR0_SPEC>

Bit 16 - SPI DDR transfer enable

source

pub fn inst_ddr_en(&mut self) -> INST_DDR_EN_W<'_, SPI_CTRLR0_SPEC>

Bit 17 - Instruction DDR transfer enable

source

pub fn spi_rxds_en(&mut self) -> SPI_RXDS_EN_W<'_, SPI_CTRLR0_SPEC>

Bit 18 - Read data strobe enable

source

pub fn xip_cmd(&mut self) -> XIP_CMD_W<'_, SPI_CTRLR0_SPEC>

Bits 24:31 - SPI Command to send in XIP mode (INST_L = 8-bit) or to append to Address (INST_L = 0-bit)

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual