Type Alias esp32c3::spi1::clock::R

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

Register CLOCK reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn clkcnt_l(&self) -> CLKCNT_L_R

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

source

pub fn clkcnt_h(&self) -> CLKCNT_H_R

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

source

pub fn clkcnt_n(&self) -> 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 clk_equ_sysclk(&self) -> CLK_EQU_SYSCLK_R

Bit 31 - reserved