Type Alias esp32c6::mcpwm0::timer1_cfg0::R
source · pub type R = R<TIMER1_CFG0_SPEC>;
Expand description
Register TIMER1_CFG0
reader
Implementations§
source§impl R
impl R
sourcepub fn timer1_prescale(&self) -> TIMER1_PRESCALE_R
pub fn timer1_prescale(&self) -> TIMER1_PRESCALE_R
Bits 0:7 - period of PT0_clk = Period of PWM_clk * (PWM_timer1_PRESCALE + 1)
sourcepub fn timer1_period(&self) -> TIMER1_PERIOD_R
pub fn timer1_period(&self) -> TIMER1_PERIOD_R
Bits 8:23 - period shadow register of PWM timer1
sourcepub fn timer1_period_upmethod(&self) -> TIMER1_PERIOD_UPMETHOD_R
pub fn timer1_period_upmethod(&self) -> TIMER1_PERIOD_UPMETHOD_R
Bits 24:25 - Update method for active register of PWM timer1 period, 0: immediate, 1: TEZ, 2: sync, 3: TEZ | sync. TEZ here and below means timer equal zero event