Struct esp32s3::pwm0::cap_ch2_cfg::W
source · pub struct W(_);
Expand description
Register CAP_CH2_CFG
writer
Implementations
sourceimpl W
impl W
sourcepub fn cap2_en(&mut self) -> CAP2_EN_W<'_, 0>
pub fn cap2_en(&mut self) -> CAP2_EN_W<'_, 0>
Bit 0 - When set, capture on channel 2 is enabled
sourcepub fn cap2_mode(&mut self) -> CAP2_MODE_W<'_, 1>
pub fn cap2_mode(&mut self) -> CAP2_MODE_W<'_, 1>
Bits 1:2 - Edge of capture on channel 2 after prescaling. When bit0 is set to 1: enable capture on the negative edge, When bit1 is set to 1: enable capture on the positive edge.
sourcepub fn cap2_prescale(&mut self) -> CAP2_PRESCALE_W<'_, 3>
pub fn cap2_prescale(&mut self) -> CAP2_PRESCALE_W<'_, 3>
Bits 3:10 - Value of prescaling on possitive edge of CAP2. Prescale value = PWM_CAP2_PRESCALE + 1
sourcepub fn cap2_in_invert(&mut self) -> CAP2_IN_INVERT_W<'_, 11>
pub fn cap2_in_invert(&mut self) -> CAP2_IN_INVERT_W<'_, 11>
Bit 11 - when set, CAP2 form GPIO matrix is inverted before prescale
Methods from Deref<Target = W<CAP_CH2_CFG_SPEC>>
Trait Implementations
sourceimpl From<W<CAP_CH2_CFG_SPEC>> for W
impl From<W<CAP_CH2_CFG_SPEC>> for W
sourcefn from(writer: W<CAP_CH2_CFG_SPEC>) -> Self
fn from(writer: W<CAP_CH2_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