Struct esp32_hal::pac::ledc::lstimer_conf::W
pub struct W(_);
Expand description
Register LSTIMER%s_CONF
writer
Implementations§
§impl W
impl W
pub fn duty_res(
&mut self
) -> FieldWriterRaw<'_, u32, LSTIMER_CONF_SPEC, u8, u8, Unsafe, 5, 0>
pub fn duty_res(
&mut self
) -> FieldWriterRaw<'_, u32, LSTIMER_CONF_SPEC, u8, u8, Unsafe, 5, 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.
pub fn div_num(
&mut self
) -> FieldWriterRaw<'_, u32, LSTIMER_CONF_SPEC, u32, u32, Unsafe, 18, 5>
pub fn div_num(
&mut self
) -> FieldWriterRaw<'_, u32, LSTIMER_CONF_SPEC, u32, u32, Unsafe, 18, 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.
pub fn pause(
&mut self
) -> BitWriterRaw<'_, u32, LSTIMER_CONF_SPEC, bool, BitM, 23>
pub fn pause(
&mut self
) -> BitWriterRaw<'_, u32, LSTIMER_CONF_SPEC, bool, BitM, 23>
Bit 23 - This bit is used to pause the counter in low speed timer0.
pub fn rst(
&mut self
) -> BitWriterRaw<'_, u32, LSTIMER_CONF_SPEC, bool, BitM, 24>
pub fn rst(
&mut self
) -> BitWriterRaw<'_, u32, LSTIMER_CONF_SPEC, bool, BitM, 24>
Bit 24 - This bit is used to reset low speed timer0 the counter will be 0 after reset.
pub fn tick_sel(
&mut self
) -> BitWriterRaw<'_, u32, LSTIMER_CONF_SPEC, bool, BitM, 25>
pub fn tick_sel(
&mut self
) -> BitWriterRaw<'_, u32, LSTIMER_CONF_SPEC, bool, BitM, 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
pub fn para_up(
&mut self
) -> BitWriterRaw<'_, u32, LSTIMER_CONF_SPEC, bool, BitM, 26>
pub fn para_up(
&mut self
) -> BitWriterRaw<'_, u32, LSTIMER_CONF_SPEC, bool, BitM, 26>
Bit 26 - Set this bit to update reg_div_num_lstime0 and reg_lstimer0_lim.
pub fn lim(
&mut self
) -> FieldWriterRaw<'_, u32, LSTIMER_CONF_SPEC, u8, u8, Unsafe, 5, 31>
pub fn lim(
&mut self
) -> FieldWriterRaw<'_, u32, LSTIMER_CONF_SPEC, u8, u8, Unsafe, 5, 31>
Bits 31:35
Methods from Deref<Target = W<LSTIMER_CONF_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.