Struct esp32h2::ledc::timer_conf::R
source · pub struct R(_);
Expand description
Register TIMER%s_CONF
reader
Implementations§
source§impl R
impl R
sourcepub fn duty_res(&self) -> DUTY_RES_R
pub fn duty_res(&self) -> DUTY_RES_R
Bits 0:4 - This register is used to control the range of the counter in timer %s.
sourcepub fn clk_div(&self) -> CLK_DIV_R
pub fn clk_div(&self) -> CLK_DIV_R
Bits 5:22 - This register is used to configure the divisor for the divider in timer %s. The least significant eight bits represent the fractional part.
sourcepub fn rst(&self) -> RST_R
pub fn rst(&self) -> RST_R
Bit 24 - This bit is used to reset timer %s. The counter will show 0 after reset.
sourcepub fn tick_sel(&self) -> TICK_SEL_R
pub fn tick_sel(&self) -> TICK_SEL_R
Bit 25 - This bit is used to select clock for timer %s. When this bit is set to 1 LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not accurate. 1’h0: SLOW_CLK 1’h1: REF_TICK
Methods from Deref<Target = R<TIMER_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