Struct esp32s3::pwm0::chopper2_cfg::R   
source · pub struct R(_);Expand description
Register CHOPPER2_CFG reader
Implementations
sourceimpl 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
Methods from Deref<Target = R<CHOPPER2_CFG_SPEC>>
Trait Implementations
sourceimpl From<R<CHOPPER2_CFG_SPEC>> for R
 
impl From<R<CHOPPER2_CFG_SPEC>> for R
sourcefn from(reader: R<CHOPPER2_CFG_SPEC>) -> Self
 
fn from(reader: R<CHOPPER2_CFG_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more