Type Alias esp32c6::spi1::spi_mem_clock::R

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

Register SPI_MEM_CLOCK reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn spi_mem_clkcnt_l(&self) -> SPI_MEM_CLKCNT_L_R

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

source

pub fn spi_mem_clkcnt_h(&self) -> SPI_MEM_CLKCNT_H_R

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(&self) -> SPI_MEM_CLKCNT_N_R

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(&self) -> SPI_MEM_CLK_EQU_SYSCLK_R

Bit 31 - reserved