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

source

pub fn timer0_value(&self) -> TIMER0_VALUE_R

Bits 0:15 - current PWM timer0 counter value

source

pub fn timer0_direction(&self) -> TIMER0_DIRECTION_R

Bit 16 - current PWM timer0 counter direction, 0: increment 1: decrement