Struct esp32s3_hal::pac::pwm0::timer0_cfg0::R
pub struct R(_);
Expand description
Register TIMER0_CFG0
reader
Implementations§
§impl R
impl R
pub fn timer0_prescale(&self) -> FieldReaderRaw<u8, u8>
pub fn timer0_prescale(&self) -> FieldReaderRaw<u8, u8>
Bits 0:7 - period of PT0_clk = Period of PWM_clk * (PWM_TIMER0_PRESCALE + 1)
pub fn timer0_period(&self) -> FieldReaderRaw<u16, u16>
pub fn timer0_period(&self) -> FieldReaderRaw<u16, u16>
Bits 8:23 - period shadow register of PWM timer0
pub fn timer0_period_upmethod(&self) -> FieldReaderRaw<u8, u8>
pub fn timer0_period_upmethod(&self) -> FieldReaderRaw<u8, u8>
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 = R<TIMER0_CFG0_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<TIMER0_CFG0_SPEC>> for R
impl From<R<TIMER0_CFG0_SPEC>> for R
§fn from(reader: R<TIMER0_CFG0_SPEC>) -> R
fn from(reader: R<TIMER0_CFG0_SPEC>) -> R
Converts to this type from the input type.