Struct esp32s3::mcpwm0::timer2_cfg1::R
source · pub struct R(_);
Expand description
Register TIMER2_CFG1
reader
Implementations§
source§impl R
impl R
sourcepub fn timer2_start(&self) -> TIMER2_START_R
pub fn timer2_start(&self) -> TIMER2_START_R
Bits 0:2 - PWM timer2 start and stop control. 0: if PWM timer2 starts, then stops at TEZ, 1: if timer2 starts, then stops at TEP, 2: PWM timer2 starts and runs on, 3: timer2 starts and stops at the next TEZ, 4: timer2 starts and stops at the next TEP. TEP here and below means the event that happens when the timer equals to period
sourcepub fn timer2_mod(&self) -> TIMER2_MOD_R
pub fn timer2_mod(&self) -> TIMER2_MOD_R
Bits 3:4 - PWM timer2 working mode, 0: freeze, 1: increase mode, 2: decrease mode, 3: up-down mode
Methods from Deref<Target = R<TIMER2_CFG1_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more