Struct esp32::ledc::lstimer_conf::W
source · pub struct W(_);Expand description
Register LSTIMER%s_CONF writer
Implementations§
source§impl W
impl W
sourcepub fn duty_res(&mut self) -> DUTY_RES_W<'_, 0>
pub fn duty_res(&mut self) -> DUTY_RES_W<'_, 0>
Bits 0:4 - This register controls the range of the counter in low speed timer0. the counter range is [0 2**reg_lstimer0_lim] the max bit width for counter is 20.
sourcepub fn div_num(&mut self) -> DIV_NUM_W<'_, 5>
pub fn div_num(&mut self) -> DIV_NUM_W<'_, 5>
Bits 5:22 - This register is used to configure parameter for divider in low speed timer0 the least significant eight bits represent the decimal part.
sourcepub fn pause(&mut self) -> PAUSE_W<'_, 23>
pub fn pause(&mut self) -> PAUSE_W<'_, 23>
Bit 23 - This bit is used to pause the counter in low speed timer0.
sourcepub fn rst(&mut self) -> RST_W<'_, 24>
pub fn rst(&mut self) -> RST_W<'_, 24>
Bit 24 - This bit is used to reset low speed timer0 the counter will be 0 after reset.
sourcepub fn tick_sel(&mut self) -> TICK_SEL_W<'_, 25>
pub fn tick_sel(&mut self) -> TICK_SEL_W<'_, 25>
Bit 25 - This bit is used to choose slow_clk or ref_tick for low speed timer0. 1’b1:slow_clk 0:ref_tick