Type Alias esp32s3::mcpwm0::chopper1_cfg::R
source · pub type R = R<CHOPPER1_CFG_SPEC>;
Expand description
Register CHOPPER1_CFG
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn chopper1_en(&self) -> CHOPPER1_EN_R
pub fn chopper1_en(&self) -> CHOPPER1_EN_R
Bit 0 - When set, carrier0 function is enabled. When cleared, carrier0 is bypassed
sourcepub fn chopper1_prescale(&self) -> CHOPPER1_PRESCALE_R
pub fn chopper1_prescale(&self) -> CHOPPER1_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 chopper1_duty(&self) -> CHOPPER1_DUTY_R
pub fn chopper1_duty(&self) -> CHOPPER1_DUTY_R
Bits 5:7 - carrier duty selection. Duty = PWM_CARRIER0_DUTY / 8
sourcepub fn chopper1_oshtwth(&self) -> CHOPPER1_OSHTWTH_R
pub fn chopper1_oshtwth(&self) -> CHOPPER1_OSHTWTH_R
Bits 8:11 - width of the fist pulse in number of periods of the carrier
sourcepub fn chopper1_out_invert(&self) -> CHOPPER1_OUT_INVERT_R
pub fn chopper1_out_invert(&self) -> CHOPPER1_OUT_INVERT_R
Bit 12 - when set, invert the output of PWM1A and PWM1B for this submodule
sourcepub fn chopper1_in_invert(&self) -> CHOPPER1_IN_INVERT_R
pub fn chopper1_in_invert(&self) -> CHOPPER1_IN_INVERT_R
Bit 13 - when set, invert the input of PWM1A and PWM1B for this submodule