Type Alias esp32c6::mcpwm0::timer2_status::R

source ·
pub type R = R<TIMER2_STATUS_SPEC>;
Expand description

Register TIMER2_STATUS reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn timer2_value(&self) -> TIMER2_VALUE_R

Bits 0:15 - current PWM timer2 counter value

source

pub fn timer2_direction(&self) -> TIMER2_DIRECTION_R

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