Struct esp32s3::pwm0::chopper0_cfg::W
source · pub struct W(_);
Expand description
Register CHOPPER0_CFG
writer
Implementations§
source§impl W
impl W
sourcepub fn chopper0_en(&mut self) -> CHOPPER0_EN_W<'_, 0>
pub fn chopper0_en(&mut self) -> CHOPPER0_EN_W<'_, 0>
Bit 0 - When set, carrier0 function is enabled. When cleared, carrier0 is bypassed
sourcepub fn chopper0_prescale(&mut self) -> CHOPPER0_PRESCALE_W<'_, 1>
pub fn chopper0_prescale(&mut self) -> CHOPPER0_PRESCALE_W<'_, 1>
Bits 1:4 - PWM carrier0 clock (PC_clk) prescale value. Period of PC_clk = period of PWM_clk * (PWM_CARRIER0_PRESCALE + 1)
sourcepub fn chopper0_duty(&mut self) -> CHOPPER0_DUTY_W<'_, 5>
pub fn chopper0_duty(&mut self) -> CHOPPER0_DUTY_W<'_, 5>
Bits 5:7 - carrier duty selection. Duty = PWM_CARRIER0_DUTY / 8
sourcepub fn chopper0_oshtwth(&mut self) -> CHOPPER0_OSHTWTH_W<'_, 8>
pub fn chopper0_oshtwth(&mut self) -> CHOPPER0_OSHTWTH_W<'_, 8>
Bits 8:11 - width of the fist pulse in number of periods of the carrier
sourcepub fn chopper0_out_invert(&mut self) -> CHOPPER0_OUT_INVERT_W<'_, 12>
pub fn chopper0_out_invert(&mut self) -> CHOPPER0_OUT_INVERT_W<'_, 12>
Bit 12 - when set, invert the output of PWM0A and PWM0B for this submodule
sourcepub fn chopper0_in_invert(&mut self) -> CHOPPER0_IN_INVERT_W<'_, 13>
pub fn chopper0_in_invert(&mut self) -> CHOPPER0_IN_INVERT_W<'_, 13>
Bit 13 - when set, invert the input of PWM0A and PWM0B for this submodule