Struct 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 - Generator0 time stamp registers A and B transfer status and update method register

Source

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

0x04 - Generator0 time stamp A’s shadow register

Source

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

0x08 - Generator0 time stamp B’s shadow register

Source

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

0x0c - Generator0 fault event T0 and T1 configuration register

Source

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

0x10 - Generator0 output signal force mode register.

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 configuration register

Source

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

0x20 - Falling edge delay (FED) shadow register

Source

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

0x24 - Rising edge delay (RED) shadow register

Source

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

0x28 - Carrier0 configuration register

Source

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

0x2c - PWM0 A and PWM0 B trip events actions configuration register

Source

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

0x30 - Software triggers for fault handler actions configuration register

Source

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

0x34 - Fault events status register

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>,

Source§

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>,

Source§

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.