[−][src]Type Definition esp32::mcpwm::mcpwm_cap_ch1_cfg_reg::R
type R = R<u32, MCPWM_CAP_CH1_CFG_REG>;
Reader of register MCPWM_CAP_CH1_CFG_REG
Methods
impl R
[src]
pub fn mcpwm_cap1_sw(&self) -> MCPWM_CAP1_SW_R
[src]
Bit 12 - Write 1 will trigger a software forced capture on channel 1
pub fn mcpwm_cap1_in_invert(&self) -> MCPWM_CAP1_IN_INVERT_R
[src]
Bit 11 - When set CAP1 form GPIO matrix is inverted before prescale
pub fn mcpwm_cap1_prescale(&self) -> MCPWM_CAP1_PRESCALE_R
[src]
Bits 3:10 - Value of prescale on possitive edge of CAP1. Prescale value = PWM_CAP1_PRESCALE + 1
pub fn mcpwm_cap1_mode(&self) -> MCPWM_CAP1_MODE_R
[src]
Bits 1:2 - Edge of capture on channel 1 after prescale. bit0: negedge cap en bit1: posedge cap en
pub fn mcpwm_cap1_en(&self) -> MCPWM_CAP1_EN_R
[src]
Bit 0 - When set capture on channel 1 is enabled