Struct esp32c6::pcr::cpu_freq_conf::W
source · pub struct W(_);
Expand description
Register CPU_FREQ_CONF
writer
Implementations§
source§impl W
impl W
sourcepub fn cpu_ls_div_num(&mut self) -> CPU_LS_DIV_NUM_W<'_, 0>
pub fn cpu_ls_div_num(&mut self) -> CPU_LS_DIV_NUM_W<'_, 0>
Bits 0:7 - Set as one within (0,1,3) to generate clk_cpu drived by clk_hproot. The clk_cpu is div1(default)/div2/div4 of clk_hproot. This field is only avaliable for low-speed clock-source such as XTAL/FOSC, and should be used together with PCR_AHB_LS_DIV_NUM.
sourcepub fn cpu_hs_div_num(&mut self) -> CPU_HS_DIV_NUM_W<'_, 8>
pub fn cpu_hs_div_num(&mut self) -> CPU_HS_DIV_NUM_W<'_, 8>
Bits 8:15 - Set as one within (0,1,3) to generate clk_cpu drived by clk_hproot. The clk_cpu is div1(default)/div2/div4 of clk_hproot. This field is only avaliable for high-speed clock-source such as SPLL, and should be used together with PCR_AHB_HS_DIV_NUM.
sourcepub fn cpu_hs_120m_force(&mut self) -> CPU_HS_120M_FORCE_W<'_, 16>
pub fn cpu_hs_120m_force(&mut self) -> CPU_HS_120M_FORCE_W<'_, 16>
Bit 16 - Given that PCR_CPU_HS_DIV_NUM is 0, set this field as 1 to force clk_cpu at 120MHz. Only avaliable when PCR_CPU_HS_DIV_NUM is 0 and clk_cpu is driven by SPLL.
Methods from Deref<Target = W<CPU_FREQ_CONF_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more