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

type R = R<u32, MCPWM_TIMER0_CFG0_REG>;

Reader of register MCPWM_TIMER0_CFG0_REG

Methods

impl R[src]

pub fn mcpwm_timer0_period_upmethod(&self) -> MCPWM_TIMER0_PERIOD_UPMETHOD_R[src]

Bits 24:25 - Update method for active reg of PWM timer0 period 0: immediate 1: TEZ 2: sync 3: TEZ or sync. TEZ here and below means timer equal zero event

pub fn mcpwm_timer0_period(&self) -> MCPWM_TIMER0_PERIOD_R[src]

Bits 8:23 - Period shadow reg of PWM timer0

pub fn mcpwm_timer0_prescale(&self) -> MCPWM_TIMER0_PRESCALE_R[src]

Bits 0:7 - Period of PT0_clk = Period of PWM_clk * (PWM_TIMER0_PRESCALE + 1)