Type Alias esp32h2::mcpwm0::timer0_status::R
source · pub type R = R<TIMER0_STATUS_SPEC>;
Expand description
Register TIMER0_STATUS
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn timer0_value(&self) -> TIMER0_VALUE_R
pub fn timer0_value(&self) -> TIMER0_VALUE_R
Bits 0:15 - current PWM timer0 counter value
sourcepub fn timer0_direction(&self) -> TIMER0_DIRECTION_R
pub fn timer0_direction(&self) -> TIMER0_DIRECTION_R
Bit 16 - current PWM timer0 counter direction, 0: increment 1: decrement