[][src]Type Definition esp32::mcpwm::mcpwm_gen2_cfg0_reg::W

type W = W<u32, MCPWM_GEN2_CFG0_REG>;

Writer for register MCPWM_GEN2_CFG0_REG

Methods

impl W[src]

pub fn mcpwm_gen2_t1_sel(&mut self) -> MCPWM_GEN2_T1_SEL_W[src]

Bits 7:9 - Source selection for PWM generate2 event_t1 take effect immediately 0: fault_event0 1: fault_event1 2: fault_event2 3: sync_taken 4: none

pub fn mcpwm_gen2_t0_sel(&mut self) -> MCPWM_GEN2_T0_SEL_W[src]

Bits 4:6 - Source selection for PWM generate2 event_t0 take effect immediately 0: fault_event0 1: fault_event1 2: fault_event2 3: sync_taken 4: none

pub fn mcpwm_gen2_cfg_upmethod(&mut self) -> MCPWM_GEN2_CFG_UPMETHOD_W[src]

Bits 0:3 - Update method for PWM generate2's active reg of configuration. 0: immediate bit0: TEZ bit1: TEP bit2: sync. bit3: disable update