Type Alias esp32h2::mcpwm0::gen2_cfg0::R

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

Register GEN2_CFG0 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn gen2_cfg_upmethod(&self) -> GEN2_CFG_UPMETHOD_R

Bits 0:3 - Update method for PWM generator 2’s active register of configuration. 0: immediately, when bit0 is set to 1: TEZ, when bit1 is set to 1:sync;when bit3 is set to 1:disable the update.

source

pub fn gen2_t0_sel(&self) -> GEN2_T0_SEL_R

Bits 4:6 - Source selection for PWM generator 2 event_t0, take effect immediately, 0: fault_event0, 1: fault_event1, 2: fault_event2, 3: sync_taken, 4: none

source

pub fn gen2_t1_sel(&self) -> GEN2_T1_SEL_R

Bits 7:9 - Source selection for PWM generator 2 event_t1, take effect immediately, 0: fault_event0, 1: fault_event1, 2: fault_event2, 3: sync_taken, 4: none