Type Alias 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

Source

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.

Source

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.

Source

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.

Source

pub fn clk_xtal_freq(&self) -> CLK_XTAL_FREQ_R

Bits 24:30 - This field indicates the frequency(MHz) of XTAL.