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

type R = R<u32, MCPWM_TIMER2_CFG0_REG>;

Reader of register MCPWM_TIMER2_CFG0_REG

Methods

impl R[src]

pub fn mcpwm_timer2_period_upmethod(&self) -> MCPWM_TIMER2_PERIOD_UPMETHOD_R[src]

Bits 24:25 - Update method for active reg of PWM timer2 period 0: immediate 1: TEZ 2: sync 3: TEZ or sync

pub fn mcpwm_timer2_period(&self) -> MCPWM_TIMER2_PERIOD_R[src]

Bits 8:23 - Period shadow reg of PWM timer2

pub fn mcpwm_timer2_prescale(&self) -> MCPWM_TIMER2_PRESCALE_R[src]

Bits 0:7 - Period of PT2_clk = Period of PWM_clk * (PWM_TIMER2_PRESCALE + 1)