[−][src]Type Definition esp32::mcpwm::mcpwm_carrier2_cfg_reg::W
type W = W<u32, MCPWM_CARRIER2_CFG_REG>;
Writer for register MCPWM_CARRIER2_CFG_REG
Methods
impl W
[src]
pub fn mcpwm_carrier2_in_invert(&mut self) -> MCPWM_CARRIER2_IN_INVERT_W
[src]
Bit 13 - When set invert the input of PWM2A and PWM2B for this submodule
pub fn mcpwm_carrier2_out_invert(&mut self) -> MCPWM_CARRIER2_OUT_INVERT_W
[src]
Bit 12 - When set invert the output of PWM2A and PWM2B for this submodule
pub fn mcpwm_carrier2_oshwth(&mut self) -> MCPWM_CARRIER2_OSHWTH_W
[src]
Bits 8:11 - Width of the fist pulse in number of periods of the carrier
pub fn mcpwm_carrier2_duty(&mut self) -> MCPWM_CARRIER2_DUTY_W
[src]
Bits 5:7 - Carrier duty selection. Duty = PWM_CARRIER2_DUTY / 8
pub fn mcpwm_carrier2_prescale(&mut self) -> MCPWM_CARRIER2_PRESCALE_W
[src]
Bits 1:4 - PWM carrier2 clock (PC_clk) prescale value. Period of PC_clk = period of PWM_clk * (PWM_CARRIER2_PRESCALE + 1)
pub fn mcpwm_carrier2_en(&mut self) -> MCPWM_CARRIER2_EN_W
[src]
Bit 0 - When set carrier2 function is enabled. When cleared carrier2 is bypassed