Struct esp32s3_hal::pac::pwm0::timer1_cfg0::R
pub struct R(_);
Expand description
Register TIMER1_CFG0
reader
Implementations§
§impl R
impl R
pub fn timer1_prescale(&self) -> FieldReaderRaw<u8, u8>
pub fn timer1_prescale(&self) -> FieldReaderRaw<u8, u8>
Bits 0:7 - period of PT0_clk = Period of PWM_clk * (PWM_timer1_PRESCALE + 1)
pub fn timer1_period(&self) -> FieldReaderRaw<u16, u16>
pub fn timer1_period(&self) -> FieldReaderRaw<u16, u16>
Bits 8:23 - period shadow register of PWM timer1
pub fn timer1_period_upmethod(&self) -> FieldReaderRaw<u8, u8>
pub fn timer1_period_upmethod(&self) -> FieldReaderRaw<u8, u8>
Bits 24:25 - Update method for active register of PWM timer1 period, 0: immediate, 1: TEZ, 2: sync, 3: TEZ | sync. TEZ here and below means timer equal zero event
Methods from Deref<Target = R<TIMER1_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<TIMER1_CFG0_SPEC>> for R
impl From<R<TIMER1_CFG0_SPEC>> for R
§fn from(reader: R<TIMER1_CFG0_SPEC>) -> R
fn from(reader: R<TIMER1_CFG0_SPEC>) -> R
Converts to this type from the input type.