Type Alias esp32h2::pcr::spi2_conf::R

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

Register SPI2_CONF reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn spi2_clk_en(&self) -> SPI2_CLK_EN_R

Bit 0 - Set 1 to enable spi2 apb clock

source

pub fn spi2_rst_en(&self) -> SPI2_RST_EN_R

Bit 1 - Set 0 to reset spi2 module

source

pub fn spi2_ready(&self) -> SPI2_READY_R

Bit 2 - Query this field after reset spi2 module