Struct esp32_hal::pac::ledc::hsch_conf0::W
pub struct W(_);
Expand description
Register HSCH%s_CONF0
writer
Implementations§
§impl W
impl W
pub fn timer_sel(
&mut self
) -> FieldWriterRaw<'_, u32, HSCH_CONF0_SPEC, u8, u8, Unsafe, 2, 0>
pub fn timer_sel(
&mut self
) -> FieldWriterRaw<'_, u32, HSCH_CONF0_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - There are four high speed timers the two bits are used to select one of them for high speed channel0. 2’b00: seletc hstimer0. 2’b01: select hstimer1. 2’b10: select hstimer2. 2’b11: select hstimer3.
pub fn sig_out_en(
&mut self
) -> BitWriterRaw<'_, u32, HSCH_CONF0_SPEC, bool, BitM, 2>
pub fn sig_out_en(
&mut self
) -> BitWriterRaw<'_, u32, HSCH_CONF0_SPEC, bool, BitM, 2>
Bit 2 - This is the output enable control bit for high speed channel0
pub fn idle_lv(
&mut self
) -> BitWriterRaw<'_, u32, HSCH_CONF0_SPEC, bool, BitM, 3>
pub fn idle_lv(
&mut self
) -> BitWriterRaw<'_, u32, HSCH_CONF0_SPEC, bool, BitM, 3>
Bit 3 - This bit is used to control the output value when high speed channel0 is off.
Methods from Deref<Target = W<HSCH_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<HSCH_CONF0_SPEC>> for W
impl From<W<HSCH_CONF0_SPEC>> for W
§fn from(writer: W<HSCH_CONF0_SPEC>) -> W
fn from(writer: W<HSCH_CONF0_SPEC>) -> W
Converts to this type from the input type.