Struct esp32s3::pwm0::cap_ch2_cfg::R
source · pub struct R(_);
Expand description
Register CAP_CH2_CFG
reader
Implementations§
source§impl R
impl R
sourcepub fn cap2_mode(&self) -> CAP2_MODE_R
pub fn cap2_mode(&self) -> CAP2_MODE_R
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(&self) -> CAP2_PRESCALE_R
pub fn cap2_prescale(&self) -> CAP2_PRESCALE_R
Bits 3:10 - Value of prescaling on possitive edge of CAP2. Prescale value = PWM_CAP2_PRESCALE + 1
sourcepub fn cap2_in_invert(&self) -> CAP2_IN_INVERT_R
pub fn cap2_in_invert(&self) -> CAP2_IN_INVERT_R
Bit 11 - when set, CAP2 form GPIO matrix is inverted before prescale