Struct CH

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

Cluster CH%s, containing CMPR?_CFG, CMPR?_VALUE0, CMPR?_VALUE1, GEN?_CFG0, GEN?_FORCE, GEN?_A, GEN?_B, DB?_CFG, DB?_FED_CFG, DB?_RED_CFG, CHOPPER?_CFG, TZ?_CFG0, TZ?_CFG1, TZ?_STATUS

Implementations§

Source§

impl CH

Source

pub const fn cmpr_cfg(&self) -> &CMPR_CFG

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

Source

pub const fn cmpr_value0(&self) -> &CMPR_VALUE0

0x04 - Shadow register for register A.

Source

pub const fn cmpr_value1(&self) -> &CMPR_VALUE1

0x08 - Shadow register for register B.

Source

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

0x0c - Fault event T0 and T1 handling

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

`n` is the index of register in the array. `n == 0` corresponds to `GENA` register.
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 db_cfg(&self) -> &DB_CFG

0x1c - dead time type selection and configuration

Source

pub const fn db_fed_cfg(&self) -> &DB_FED_CFG

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

Source

pub const fn db_red_cfg(&self) -> &DB_RED_CFG

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

Source

pub const fn chopper_cfg(&self) -> &CHOPPER_CFG

0x28 - Carrier enable and configuratoin

Source

pub const fn tz_cfg0(&self) -> &TZ_CFG0

0x2c - Actions on PWMxA and PWMxB trip events

Source

pub const fn tz_cfg1(&self) -> &TZ_CFG1

0x30 - Software triggers for fault handler actions

Source

pub const fn tz_status(&self) -> &TZ_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>,

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.