Struct esp32s3_hal::pac::pwm0::timer0_cfg1::W
pub struct W(_);
Expand description
Register TIMER0_CFG1
writer
Implementations§
§impl W
impl W
pub fn timer0_start(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG1_SPEC, u8, u8, Unsafe, 3, 0>
pub fn timer0_start(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG1_SPEC, u8, u8, Unsafe, 3, 0>
Bits 0:2 - PWM timer0 start and stop control. 0: if PWM timer0 starts, then stops at TEZ, 1: if timer0 starts, then stops at TEP, 2: PWM timer0 starts and runs on, 3: timer0 starts and stops at the next TEZ, 4: timer0 starts and stops at the next TEP. TEP here and below means the event that happens when the timer equals to period
pub fn timer0_mod(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG1_SPEC, u8, u8, Unsafe, 2, 3>
pub fn timer0_mod(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG1_SPEC, u8, u8, Unsafe, 2, 3>
Bits 3:4 - PWM timer0 working mode, 0: freeze, 1: increase mode, 2: decrease mode, 3: up-down mode
Methods from Deref<Target = W<TIMER0_CFG1_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations§
§impl From<W<TIMER0_CFG1_SPEC>> for W
impl From<W<TIMER0_CFG1_SPEC>> for W
§fn from(writer: W<TIMER0_CFG1_SPEC>) -> W
fn from(writer: W<TIMER0_CFG1_SPEC>) -> W
Converts to this type from the input type.