Type Alias R

Source
pub type R = R<SRAM_CLK_SPEC>;
Expand description

Register SRAM_CLK reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn sclkcnt_l(&self) -> SCLKCNT_L_R

Bits 0:7 - For SPI0 external RAM interface, it must be equal to spi_mem_clkcnt_N.

Source

pub fn sclkcnt_h(&self) -> SCLKCNT_H_R

Bits 8:15 - For SPI0 external RAM interface, it must be floor((spi_mem_clkcnt_N+1)/2-1).

Source

pub fn sclkcnt_n(&self) -> SCLKCNT_N_R

Bits 16:23 - For SPI0 external RAM interface, it is the divider of spi_mem_clk. So spi_mem_clk frequency is system/(spi_mem_clkcnt_N+1)

Source

pub fn sclk_equ_sysclk(&self) -> SCLK_EQU_SYSCLK_R

Bit 31 - For SPI0 external RAM interface, 1: spi_mem_clk is eqaul to system 0: spi_mem_clk is divided from system clock.