Struct esp32s3_hal::pac::pwm0::timer2_cfg1::R
pub struct R(_);
Expand description
Register TIMER2_CFG1
reader
Implementations§
§impl R
impl R
pub fn timer2_start(&self) -> FieldReaderRaw<u8, u8>
pub fn timer2_start(&self) -> FieldReaderRaw<u8, u8>
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
pub fn timer2_mod(&self) -> FieldReaderRaw<u8, u8>
pub fn timer2_mod(&self) -> FieldReaderRaw<u8, u8>
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>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations§
§impl From<R<TIMER2_CFG1_SPEC>> for R
impl From<R<TIMER2_CFG1_SPEC>> for R
§fn from(reader: R<TIMER2_CFG1_SPEC>) -> R
fn from(reader: R<TIMER2_CFG1_SPEC>) -> R
Converts to this type from the input type.