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