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
impl W
sourcepub fn trans_type(&mut self) -> TRANS_TYPE_W<'_, SPI_CTRLR0_SPEC>
pub fn trans_type(&mut self) -> TRANS_TYPE_W<'_, SPI_CTRLR0_SPEC>
Bits 0:1 - Address and instruction transfer format
sourcepub fn addr_l(&mut self) -> ADDR_L_W<'_, SPI_CTRLR0_SPEC>
pub fn addr_l(&mut self) -> ADDR_L_W<'_, SPI_CTRLR0_SPEC>
Bits 2:5 - Address length (0b-60b in 4b increments)
sourcepub fn inst_l(&mut self) -> INST_L_W<'_, SPI_CTRLR0_SPEC>
pub fn inst_l(&mut self) -> INST_L_W<'_, SPI_CTRLR0_SPEC>
Bits 8:9 - Instruction length (0/4/8/16b)
sourcepub fn wait_cycles(&mut self) -> WAIT_CYCLES_W<'_, SPI_CTRLR0_SPEC>
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)
sourcepub fn spi_ddr_en(&mut self) -> SPI_DDR_EN_W<'_, SPI_CTRLR0_SPEC>
pub fn spi_ddr_en(&mut self) -> SPI_DDR_EN_W<'_, SPI_CTRLR0_SPEC>
Bit 16 - SPI DDR transfer enable
sourcepub fn inst_ddr_en(&mut self) -> INST_DDR_EN_W<'_, SPI_CTRLR0_SPEC>
pub fn inst_ddr_en(&mut self) -> INST_DDR_EN_W<'_, SPI_CTRLR0_SPEC>
Bit 17 - Instruction DDR transfer enable
sourcepub fn spi_rxds_en(&mut self) -> SPI_RXDS_EN_W<'_, SPI_CTRLR0_SPEC>
pub fn spi_rxds_en(&mut self) -> SPI_RXDS_EN_W<'_, SPI_CTRLR0_SPEC>
Bit 18 - Read data strobe enable
sourcepub fn xip_cmd(&mut self) -> XIP_CMD_W<'_, SPI_CTRLR0_SPEC>
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)