Struct esp32s3_hal::pac::pwm0::cap_ch2_cfg::R
pub struct R(_);
Expand description
Register CAP_CH2_CFG
reader
Implementations§
§impl R
impl R
pub fn cap2_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn cap2_mode(&self) -> FieldReaderRaw<u8, u8>
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.
pub fn cap2_prescale(&self) -> FieldReaderRaw<u8, u8>
pub fn cap2_prescale(&self) -> FieldReaderRaw<u8, u8>
Bits 3:10 - Value of prescaling on possitive edge of CAP2. Prescale value = PWM_CAP2_PRESCALE + 1
pub fn cap2_in_invert(&self) -> BitReaderRaw<bool>
pub fn cap2_in_invert(&self) -> BitReaderRaw<bool>
Bit 11 - when set, CAP2 form GPIO matrix is inverted before prescale
Methods from Deref<Target = R<CAP_CH2_CFG_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations§
§impl From<R<CAP_CH2_CFG_SPEC>> for R
impl From<R<CAP_CH2_CFG_SPEC>> for R
§fn from(reader: R<CAP_CH2_CFG_SPEC>) -> R
fn from(reader: R<CAP_CH2_CFG_SPEC>) -> R
Converts to this type from the input type.