Struct esp32_hal::pac::ledc::lstimer_conf::W

pub struct W(_);
Expand description

Register LSTIMER%s_CONF writer

Implementations§

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.

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.

Bit 23 - This bit is used to pause the counter in low speed timer0.

Bit 24 - This bit is used to reset low speed timer0 the counter will be 0 after reset.

Bit 25 - This bit is used to choose slow_clk or ref_tick for low speed timer0. 1’b1:slow_clk 0:ref_tick

Bit 26 - Set this bit to update reg_div_num_lstime0 and reg_lstimer0_lim.

Bits 31:35

Writes raw bits to the register.

Methods from Deref<Target = W<LSTIMER_CONF_SPEC>>§

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.