Struct esp32_hal::pac::ledc::lsch_conf0::W
pub struct W(_);
Expand description
Register LSCH%s_CONF0
writer
Implementations§
§impl W
impl W
pub fn timer_sel(
&mut self
) -> FieldWriterRaw<'_, u32, LSCH_CONF0_SPEC, u8, u8, Unsafe, 2, 0>
pub fn timer_sel(
&mut self
) -> FieldWriterRaw<'_, u32, LSCH_CONF0_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - There are four low speed timers the two bits are used to select one of them for low speed channel0. 2’b00: seletc lstimer0. 2’b01: select lstimer1. 2’b10: select lstimer2. 2’b11: select lstimer3.
pub fn sig_out_en(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF0_SPEC, bool, BitM, 2>
pub fn sig_out_en(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF0_SPEC, bool, BitM, 2>
Bit 2 - This is the output enable control bit for low speed channel0.
pub fn idle_lv(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF0_SPEC, bool, BitM, 3>
pub fn idle_lv(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF0_SPEC, bool, BitM, 3>
Bit 3 - This bit is used to control the output value when low speed channel0 is off.
pub fn para_up(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF0_SPEC, bool, BitM, 4>
pub fn para_up(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF0_SPEC, bool, BitM, 4>
Bit 4 - This bit is used to update register LEDC_LSCH0_HPOINT and LEDC_LSCH0_DUTY for low speed channel0.
Methods from Deref<Target = W<LSCH_CONF0_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.
Trait Implementations§
§impl From<W<LSCH_CONF0_SPEC>> for W
impl From<W<LSCH_CONF0_SPEC>> for W
§fn from(writer: W<LSCH_CONF0_SPEC>) -> W
fn from(writer: W<LSCH_CONF0_SPEC>) -> W
Converts to this type from the input type.