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