Type Alias esp32c6::spi1::spi_mem_user2::W

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

Register SPI_MEM_USER2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn spi_mem_usr_command_value( &mut self ) -> SPI_MEM_USR_COMMAND_VALUE_W<'_, SPI_MEM_USER2_SPEC>

Bits 0:15 - The value of command.

source

pub fn spi_mem_usr_command_bitlen( &mut self ) -> SPI_MEM_USR_COMMAND_BITLEN_W<'_, SPI_MEM_USER2_SPEC>

Bits 28:31 - The length in bits of command phase. The register value shall be (bit_num-1)

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