Type Alias esp32c6::pcr::spi2_clkm_conf::R

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

Register SPI2_CLKM_CONF reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn spi2_clkm_sel(&self) -> SPI2_CLKM_SEL_R

Bits 20:21 - set this field to select clock-source. 0(default): XTAL, 1: 80MHz, 2: FOSC, 3: reserved.

source

pub fn spi2_clkm_en(&self) -> SPI2_CLKM_EN_R

Bit 22 - Set 1 to enable spi2 function clock