[−][src]Type Definition esp32::mcpwm::mcpwm_cap_ch1_cfg_reg::W
type W = W<u32, MCPWM_CAP_CH1_CFG_REG>;
Writer for register MCPWM_CAP_CH1_CFG_REG
Methods
impl W
[src]
pub fn mcpwm_cap1_sw(&mut self) -> MCPWM_CAP1_SW_W
[src]
Bit 12 - Write 1 will trigger a software forced capture on channel 1
pub fn mcpwm_cap1_in_invert(&mut self) -> MCPWM_CAP1_IN_INVERT_W
[src]
Bit 11 - When set CAP1 form GPIO matrix is inverted before prescale
pub fn mcpwm_cap1_prescale(&mut self) -> MCPWM_CAP1_PRESCALE_W
[src]
Bits 3:10 - Value of prescale on possitive edge of CAP1. Prescale value = PWM_CAP1_PRESCALE + 1
pub fn mcpwm_cap1_mode(&mut self) -> MCPWM_CAP1_MODE_W
[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(&mut self) -> MCPWM_CAP1_EN_W
[src]
Bit 0 - When set capture on channel 1 is enabled