[][src]Type Definition esp32::mcpwm::mcpwm_cap_ch2_cfg_reg::R

type R = R<u32, MCPWM_CAP_CH2_CFG_REG>;

Reader of register MCPWM_CAP_CH2_CFG_REG

Methods

impl R[src]

pub fn mcpwm_cap2_sw(&self) -> MCPWM_CAP2_SW_R[src]

Bit 12 - Write 1 will trigger a software forced capture on channel 2

pub fn mcpwm_cap2_in_invert(&self) -> MCPWM_CAP2_IN_INVERT_R[src]

Bit 11 - When set CAP2 form GPIO matrix is inverted before prescale

pub fn mcpwm_cap2_prescale(&self) -> MCPWM_CAP2_PRESCALE_R[src]

Bits 3:10 - Value of prescale on possitive edge of CAP2. Prescale value = PWM_CAP2_PRESCALE + 1

pub fn mcpwm_cap2_mode(&self) -> MCPWM_CAP2_MODE_R[src]

Bits 1:2 - Edge of capture on channel 2 after prescale. bit0: negedge cap en bit1: posedge cap en

pub fn mcpwm_cap2_en(&self) -> MCPWM_CAP2_EN_R[src]

Bit 0 - When set capture on channel 2 is enabled