Type Alias esp32s3::mcpwm0::timer1_cfg1::R

source ·
pub type R = R<TIMER1_CFG1_SPEC>;
Expand description

Register TIMER1_CFG1 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn timer1_start(&self) -> TIMER1_START_R

Bits 0:2 - PWM timer1 start and stop control. 0: if PWM timer1 starts, then stops at TEZ, 1: if timer1 starts, then stops at TEP, 2: PWM timer1 starts and runs on, 3: timer1 starts and stops at the next TEZ, 4: timer1 starts and stops at the next TEP. TEP here and below means the event that happens when the timer equals to period

source

pub fn timer1_mod(&self) -> TIMER1_MOD_R

Bits 3:4 - PWM timer1 working mode, 0: freeze, 1: increase mode, 2: decrease mode, 3: up-down mode