Struct esp32s3_hal::pac::pwm0::timer0_cfg0::W
pub struct W(_);
Expand description
Register TIMER0_CFG0
writer
Implementations§
§impl W
impl W
pub fn timer0_prescale(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG0_SPEC, u8, u8, Unsafe, 8, 0>
pub fn timer0_prescale(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG0_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - period of PT0_clk = Period of PWM_clk * (PWM_TIMER0_PRESCALE + 1)
pub fn timer0_period(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG0_SPEC, u16, u16, Unsafe, 16, 8>
pub fn timer0_period(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG0_SPEC, u16, u16, Unsafe, 16, 8>
Bits 8:23 - period shadow register of PWM timer0
pub fn timer0_period_upmethod(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG0_SPEC, u8, u8, Unsafe, 2, 24>
pub fn timer0_period_upmethod(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER0_CFG0_SPEC, u8, u8, Unsafe, 2, 24>
Bits 24:25 - Update method for active register of PWM timer0 period, 0: immediate, 1: TEZ, 2: sync, 3: TEZ | sync. TEZ here and below means timer equal zero event
Methods from Deref<Target = W<TIMER0_CFG0_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_CFG0_SPEC>> for W
impl From<W<TIMER0_CFG0_SPEC>> for W
§fn from(writer: W<TIMER0_CFG0_SPEC>) -> W
fn from(writer: W<TIMER0_CFG0_SPEC>) -> W
Converts to this type from the input type.