Type Alias esp32h2::pcr::sysclk_conf::R
source · pub type R = R<SYSCLK_CONF_SPEC>;
Expand description
Register SYSCLK_CONF
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn ls_div_num(&self) -> LS_DIV_NUM_R
pub fn ls_div_num(&self) -> LS_DIV_NUM_R
Bits 0:7 - clk_hproot is div1 of low-speed clock-source if clck-source is a low-speed clock-source such as XTAL/FOSC.
sourcepub fn hs_div_num(&self) -> HS_DIV_NUM_R
pub fn hs_div_num(&self) -> HS_DIV_NUM_R
Bits 8:15 - clk_hproot is div3 of SPLL if the clock-source is high-speed clock SPLL.
sourcepub fn soc_clk_sel(&self) -> SOC_CLK_SEL_R
pub fn soc_clk_sel(&self) -> SOC_CLK_SEL_R
Bits 16:17 - This field is used to select clock source. 0: XTAL, 1: SPLL, 2: FOSC, 3: reserved.
sourcepub fn clk_xtal_freq(&self) -> CLK_XTAL_FREQ_R
pub fn clk_xtal_freq(&self) -> CLK_XTAL_FREQ_R
Bits 24:30 - This field indicates the frequency(MHz) of XTAL.