Struct esp32h2::mcpwm0::dt2_cfg::R

source ·
pub struct R(_);
Expand description

Register DT2_CFG reader

Implementations§

source§

impl R

source

pub fn db2_fed_upmethod(&self) -> DB2_FED_UPMETHOD_R

Bits 0:3 - Update method for FED (falling edge delay) active register. 0: immediate,when bit0 is set to 1: tez, when bit1 is set to 1:tep, when bit2 is set to 1: sync, when bit3 is set to 1: disable the update

source

pub fn db2_red_upmethod(&self) -> DB2_RED_UPMETHOD_R

Bits 4:7 - Update method for RED (rising edge delay) active register. 0: immediate,when bit0 is set to 1: tez, when bit1 is set to 1:tep, when bit2 is set to 1: sync, when bit3 is set to 1: disable the update

source

pub fn db2_deb_mode(&self) -> DB2_DEB_MODE_R

Bit 8 - S8 in table, dual-edge B mode, 0: fed/red take effect on different path separately, 1: fed/red take effect on B path, A out is in bypass or dulpB mode

source

pub fn db2_a_outswap(&self) -> DB2_A_OUTSWAP_R

Bit 9 - S6 in table

source

pub fn db2_b_outswap(&self) -> DB2_B_OUTSWAP_R

Bit 10 - S7 in table

source

pub fn db2_red_insel(&self) -> DB2_RED_INSEL_R

Bit 11 - S4 in table

source

pub fn db2_fed_insel(&self) -> DB2_FED_INSEL_R

Bit 12 - S5 in table

source

pub fn db2_red_outinvert(&self) -> DB2_RED_OUTINVERT_R

Bit 13 - S2 in table

source

pub fn db2_fed_outinvert(&self) -> DB2_FED_OUTINVERT_R

Bit 14 - S3 in table

source

pub fn db2_a_outbypass(&self) -> DB2_A_OUTBYPASS_R

Bit 15 - S1 in table

source

pub fn db2_b_outbypass(&self) -> DB2_B_OUTBYPASS_R

Bit 16 - S0 in table

source

pub fn db2_clk_sel(&self) -> DB2_CLK_SEL_R

Bit 17 - Dead time generator 2 clock selection. 0: PWM_clk, 1: PT_clk

Methods from Deref<Target = R<DT2_CFG_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<DT2_CFG_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<DT2_CFG_SPEC>> for R

source§

fn from(reader: R<DT2_CFG_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.