Struct esp32_hal::pac::ledc::lsch_conf1::W
pub struct W(_);
Expand description
Register LSCH%s_CONF1
writer
Implementations§
§impl W
impl W
pub fn duty_scale(
&mut self
) -> FieldWriterRaw<'_, u32, LSCH_CONF1_SPEC, u16, u16, Unsafe, 10, 0>
pub fn duty_scale(
&mut self
) -> FieldWriterRaw<'_, u32, LSCH_CONF1_SPEC, u16, u16, Unsafe, 10, 0>
Bits 0:9 - This register controls the increase or decrease step scale for low speed channel0.
pub fn duty_cycle(
&mut self
) -> FieldWriterRaw<'_, u32, LSCH_CONF1_SPEC, u16, u16, Unsafe, 10, 10>
pub fn duty_cycle(
&mut self
) -> FieldWriterRaw<'_, u32, LSCH_CONF1_SPEC, u16, u16, Unsafe, 10, 10>
Bits 10:19 - This register is used to increase or decrease the duty every reg_duty_cycle_lsch0 cycles for low speed channel0.
pub fn duty_num(
&mut self
) -> FieldWriterRaw<'_, u32, LSCH_CONF1_SPEC, u16, u16, Unsafe, 10, 20>
pub fn duty_num(
&mut self
) -> FieldWriterRaw<'_, u32, LSCH_CONF1_SPEC, u16, u16, Unsafe, 10, 20>
Bits 20:29 - This register is used to control the num of increased or decreased times for low speed channel6.
pub fn duty_inc(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF1_SPEC, bool, BitM, 30>
pub fn duty_inc(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF1_SPEC, bool, BitM, 30>
Bit 30 - This register is used to increase the duty of output signal or decrease the duty of output signal for low speed channel6.
pub fn duty_start(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF1_SPEC, bool, BitM, 31>
pub fn duty_start(
&mut self
) -> BitWriterRaw<'_, u32, LSCH_CONF1_SPEC, bool, BitM, 31>
Bit 31 - When reg_duty_num_hsch1 reg_duty_cycle_hsch1 and reg_duty_scale_hsch1 has been configured. these register won’t take effect until set reg_duty_start_hsch1. this bit is automatically cleared by hardware.
Methods from Deref<Target = W<LSCH_CONF1_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.