Struct esp32s3::pwm0::chopper2_cfg::W
source · pub struct W(_);
Expand description
Register CHOPPER2_CFG
writer
Implementations§
source§impl W
impl W
sourcepub fn chopper2_en(&mut self) -> CHOPPER2_EN_W<'_, 0>
pub fn chopper2_en(&mut self) -> CHOPPER2_EN_W<'_, 0>
Bit 0 - When set, carrier0 function is enabled. When cleared, carrier0 is bypassed
sourcepub fn chopper2_prescale(&mut self) -> CHOPPER2_PRESCALE_W<'_, 1>
pub fn chopper2_prescale(&mut self) -> CHOPPER2_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 chopper2_duty(&mut self) -> CHOPPER2_DUTY_W<'_, 5>
pub fn chopper2_duty(&mut self) -> CHOPPER2_DUTY_W<'_, 5>
Bits 5:7 - carrier duty selection. Duty = PWM_CARRIER0_DUTY / 8
sourcepub fn chopper2_oshtwth(&mut self) -> CHOPPER2_OSHTWTH_W<'_, 8>
pub fn chopper2_oshtwth(&mut self) -> CHOPPER2_OSHTWTH_W<'_, 8>
Bits 8:11 - width of the fist pulse in number of periods of the carrier
sourcepub fn chopper2_out_invert(&mut self) -> CHOPPER2_OUT_INVERT_W<'_, 12>
pub fn chopper2_out_invert(&mut self) -> CHOPPER2_OUT_INVERT_W<'_, 12>
Bit 12 - when set, invert the output of PWM2A and PWM2B for this submodule
sourcepub fn chopper2_in_invert(&mut self) -> CHOPPER2_IN_INVERT_W<'_, 13>
pub fn chopper2_in_invert(&mut self) -> CHOPPER2_IN_INVERT_W<'_, 13>
Bit 13 - when set, invert the input of PWM2A and PWM2B for this submodule