Type Alias esp32c6::spi0::spi_mem_clock::W

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

Register SPI_MEM_CLOCK writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn spi_mem_clkcnt_l(&mut self) -> SPI_MEM_CLKCNT_L_W<'_, SPI_MEM_CLOCK_SPEC>

Bits 0:7 - In the master mode it must be equal to spi_mem_clkcnt_N.

source

pub fn spi_mem_clkcnt_h(&mut self) -> SPI_MEM_CLKCNT_H_W<'_, SPI_MEM_CLOCK_SPEC>

Bits 8:15 - In the master mode it must be floor((spi_mem_clkcnt_N+1)/2-1).

source

pub fn spi_mem_clkcnt_n(&mut self) -> SPI_MEM_CLKCNT_N_W<'_, SPI_MEM_CLOCK_SPEC>

Bits 16:23 - In the master mode it is the divider of spi_mem_clk. So spi_mem_clk frequency is system/(spi_mem_clkcnt_N+1)

source

pub fn spi_mem_clk_equ_sysclk( &mut self ) -> SPI_MEM_CLK_EQU_SYSCLK_W<'_, SPI_MEM_CLOCK_SPEC>

Bit 31 - 1: 1-division mode, the frequency of SPI bus clock equals to that of MSPI module clock.

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