Struct esp32::mcpwm0::ch::CH

source ·
#[repr(C)]
pub struct CH { /* private fields */ }
Expand description

Cluster CH%s, containing GEN?_STMP_CFG, GEN?_TSTMP_A, GEN?_TSTMP_B, GEN?_CFG0, GEN?_FORCE, GEN?_A, GEN?_B, DT?_CFG, DT?_FED_CFG, DT?_RED_CFG, CARRIER?_CFG, FH?_CFG0, FH?_CFG1, FH?_STATUS

Implementations§

source§

impl CH

source

pub const fn gen_stmp_cfg(&self) -> &GEN_STMP_CFG

0x00 - Transfer status and update method for time stamp registers A and B

source

pub const fn gen_tstmp_a(&self) -> &GEN_TSTMP_A

0x04 - Shadow register for register A.

source

pub const fn gen_tstmp_b(&self) -> &GEN_TSTMP_B

0x08 - Shadow register for register B.

source

pub const fn gen_cfg0(&self) -> &GEN_CFG0

0x0c -

source

pub const fn gen_force(&self) -> &GEN_FORCE

0x10 - Permissives to force PWMxA and PWMxB outputs by software

source

pub const fn gen(&self, n: usize) -> &GEN

0x14..0x1c - Actions triggered by events on PWMx%s

source

pub fn gen_iter(&self) -> impl Iterator<Item = &GEN>

Iterator for array of: 0x14..0x1c - Actions triggered by events on PWMx%s

source

pub const fn gena(&self) -> &GEN

0x14 - Actions triggered by events on PWMxA

source

pub const fn genb(&self) -> &GEN

0x18 - Actions triggered by events on PWMxB

source

pub const fn dt_cfg(&self) -> &DT_CFG

0x1c - Dead time type selection and configuration

source

pub const fn dt_fed_cfg(&self) -> &DT_FED_CFG

0x20 - Shadow register for falling edge delay (FED).

source

pub const fn dt_red_cfg(&self) -> &DT_RED_CFG

0x24 - Shadow register for rising edge delay (RED).

source

pub const fn carrier_cfg(&self) -> &CARRIER_CFG

0x28 - Carrier enable and configuratoin

source

pub const fn fh_cfg0(&self) -> &FH_CFG0

0x2c - Actions on PWM0A and PWM0B trip events

source

pub const fn fh_cfg1(&self) -> &FH_CFG1

0x30 - Software triggers for fault handler actions

source

pub const fn fh_status(&self) -> &FH_STATUS

0x34 - Status of fault events.

Auto Trait Implementations§

§

impl !Freeze for CH

§

impl !RefUnwindSafe for CH

§

impl Send for CH

§

impl !Sync for CH

§

impl Unpin for CH

§

impl UnwindSafe for CH

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.