Struct esp32h2::pcr::apb_freq_conf::W
source · pub struct W(_);Expand description
Register APB_FREQ_CONF writer
Implementations§
source§impl W
impl W
sourcepub fn apb_decrease_div_num(&mut self) -> APB_DECREASE_DIV_NUM_W<'_, 0>
pub fn apb_decrease_div_num(&mut self) -> APB_DECREASE_DIV_NUM_W<'_, 0>
Bits 0:7 - If this field’s value is grater than PCR_APB_DIV_NUM, the clk_apb will be automatically down to clk_apb_decrease only when no access is on apb-bus, and will recover to the previous frequency when a new access appears on apb-bus. Set as one within (0,1,3) to set clk_apb_decrease as div1/div2/div4(default) of clk_ahb. Note that enable this function will reduce performance. Users can set this field as zero to disable the auto-decrease-apb-freq function. By default, this function is disable.
sourcepub fn apb_div_num(&mut self) -> APB_DIV_NUM_W<'_, 8>
pub fn apb_div_num(&mut self) -> APB_DIV_NUM_W<'_, 8>
Bits 8:15 - Set as one within (0,1,3) to generate clk_apb drived by clk_ahb. The clk_apb is div1(default)/div2/div4 of clk_ahb.
Methods from Deref<Target = W<APB_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