nxp-pac

Crates

git

Versions

mcxa256

Flavors

Flexpwm

Struct Flexpwm 

Source
pub struct Flexpwm { /* private fields */ }
Expand description

PWM

Implementations§

Source§

impl Flexpwm

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn sm0cnt(self) -> Reg<Smcnt, R>

Counter Register

Source

pub const fn sm0init(self) -> Reg<Sminit, RW>

Initial Count Register

Source

pub const fn sm0ctrl2(self) -> Reg<Smctrl2, RW>

Control 2 Register

Source

pub const fn sm0ctrl(self) -> Reg<Smctrl, RW>

Control Register

Source

pub const fn sm0val(self, n: usize) -> Reg<Smval, RW>

Value Register 0

Source

pub const fn sm0octrl(self) -> Reg<Smoctrl, RW>

Output Control Register

Source

pub const fn sm0sts(self) -> Reg<Smsts, RW>

Status Register

Source

pub const fn sm0inten(self) -> Reg<Sminten, RW>

Interrupt Enable Register

Source

pub const fn sm0dmaen(self) -> Reg<Smdmaen, RW>

DMA Enable Register

Source

pub const fn sm0tctrl(self) -> Reg<Smtctrl, RW>

Output Trigger Control Register

Source

pub const fn sm0dismap0(self) -> Reg<Smdismap0, RW>

Fault Disable Mapping Register 0

Source

pub const fn sm0dtcnt0(self) -> Reg<Smdtcnt0, RW>

Deadtime Count Register 0

Source

pub const fn sm0dtcnt1(self) -> Reg<Smdtcnt1, RW>

Deadtime Count Register 1

Source

pub const fn sm0captctrlx(self) -> Reg<Smcaptctrlx, RW>

Capture Control X Register

Source

pub const fn sm0captcompx(self) -> Reg<Smcaptcompx, RW>

Capture Compare X Register

Source

pub const fn sm0cval0(self) -> Reg<Smcval0, R>

Capture Value 0 Register

Source

pub const fn sm0cval0cyc(self) -> Reg<Smcval0cyc, R>

Capture Value 0 Cycle Register

Source

pub const fn sm0cval1(self) -> Reg<Smcval1, R>

Capture Value 1 Register

Source

pub const fn sm0cval1cyc(self) -> Reg<Smcval1cyc, R>

Capture Value 1 Cycle Register

Source

pub const fn sm0captfiltx(self) -> Reg<Smcaptfiltx, RW>

Capture PWM_X Input Filter Register

Source

pub const fn sm1cnt(self) -> Reg<Smcnt, R>

Counter Register

Source

pub const fn sm1init(self) -> Reg<Sminit, RW>

Initial Count Register

Source

pub const fn sm1ctrl2(self) -> Reg<Smctrl2, RW>

Control 2 Register

Source

pub const fn sm1ctrl(self) -> Reg<Smctrl, RW>

Control Register

Source

pub const fn sm1val(self, n: usize) -> Reg<Smval, RW>

Value Register 0

Source

pub const fn sm1octrl(self) -> Reg<Smoctrl, RW>

Output Control Register

Source

pub const fn sm1sts(self) -> Reg<Smsts, RW>

Status Register

Source

pub const fn sm1inten(self) -> Reg<Sminten, RW>

Interrupt Enable Register

Source

pub const fn sm1dmaen(self) -> Reg<Smdmaen, RW>

DMA Enable Register

Source

pub const fn sm1tctrl(self) -> Reg<Smtctrl, RW>

Output Trigger Control Register

Source

pub const fn sm1dismap0(self) -> Reg<Smdismap0, RW>

Fault Disable Mapping Register 0

Source

pub const fn sm1dtcnt0(self) -> Reg<Smdtcnt0, RW>

Deadtime Count Register 0

Source

pub const fn sm1dtcnt1(self) -> Reg<Smdtcnt1, RW>

Deadtime Count Register 1

Source

pub const fn sm1captctrlx(self) -> Reg<Smcaptctrlx, RW>

Capture Control X Register

Source

pub const fn sm1captcompx(self) -> Reg<Smcaptcompx, RW>

Capture Compare X Register

Source

pub const fn sm1cval0(self) -> Reg<Smcval0, R>

Capture Value 0 Register

Source

pub const fn sm1cval0cyc(self) -> Reg<Smcval0cyc, R>

Capture Value 0 Cycle Register

Source

pub const fn sm1cval1(self) -> Reg<Smcval1, R>

Capture Value 1 Register

Source

pub const fn sm1cval1cyc(self) -> Reg<Smcval1cyc, R>

Capture Value 1 Cycle Register

Source

pub const fn sm1phasedly(self) -> Reg<Smphasedly, RW>

Phase Delay Register

Source

pub const fn sm1captfiltx(self) -> Reg<Smcaptfiltx, RW>

Capture PWM_X Input Filter Register

Source

pub const fn sm2cnt(self) -> Reg<Smcnt, R>

Counter Register

Source

pub const fn sm2init(self) -> Reg<Sminit, RW>

Initial Count Register

Source

pub const fn sm2ctrl2(self) -> Reg<Smctrl2, RW>

Control 2 Register

Source

pub const fn sm2ctrl(self) -> Reg<Smctrl, RW>

Control Register

Source

pub const fn sm2val(self, n: usize) -> Reg<Smval, RW>

Value Register 0

Source

pub const fn sm2octrl(self) -> Reg<Smoctrl, RW>

Output Control Register

Source

pub const fn sm2sts(self) -> Reg<Smsts, RW>

Status Register

Source

pub const fn sm2inten(self) -> Reg<Sminten, RW>

Interrupt Enable Register

Source

pub const fn sm2dmaen(self) -> Reg<Smdmaen, RW>

DMA Enable Register

Source

pub const fn sm2tctrl(self) -> Reg<Smtctrl, RW>

Output Trigger Control Register

Source

pub const fn sm2dismap0(self) -> Reg<Smdismap0, RW>

Fault Disable Mapping Register 0

Source

pub const fn sm2dtcnt0(self) -> Reg<Smdtcnt0, RW>

Deadtime Count Register 0

Source

pub const fn sm2dtcnt1(self) -> Reg<Smdtcnt1, RW>

Deadtime Count Register 1

Source

pub const fn sm2captctrlx(self) -> Reg<Smcaptctrlx, RW>

Capture Control X Register

Source

pub const fn sm2captcompx(self) -> Reg<Smcaptcompx, RW>

Capture Compare X Register

Source

pub const fn sm2cval0(self) -> Reg<Smcval0, R>

Capture Value 0 Register

Source

pub const fn sm2cval0cyc(self) -> Reg<Smcval0cyc, R>

Capture Value 0 Cycle Register

Source

pub const fn sm2cval1(self) -> Reg<Smcval1, R>

Capture Value 1 Register

Source

pub const fn sm2cval1cyc(self) -> Reg<Smcval1cyc, R>

Capture Value 1 Cycle Register

Source

pub const fn sm2phasedly(self) -> Reg<Smphasedly, RW>

Phase Delay Register

Source

pub const fn sm2captfiltx(self) -> Reg<Smcaptfiltx, RW>

Capture PWM_X Input Filter Register

Source

pub const fn sm3cnt(self) -> Reg<Smcnt, R>

Counter Register

Source

pub const fn sm3init(self) -> Reg<Sminit, RW>

Initial Count Register

Source

pub const fn sm3ctrl2(self) -> Reg<Smctrl2, RW>

Control 2 Register

Source

pub const fn sm3ctrl(self) -> Reg<Smctrl, RW>

Control Register

Source

pub const fn sm3val(self, n: usize) -> Reg<Smval, RW>

Value Register 0

Source

pub const fn sm3octrl(self) -> Reg<Smoctrl, RW>

Output Control Register

Source

pub const fn sm3sts(self) -> Reg<Smsts, RW>

Status Register

Source

pub const fn sm3inten(self) -> Reg<Sminten, RW>

Interrupt Enable Register

Source

pub const fn sm3dmaen(self) -> Reg<Smdmaen, RW>

DMA Enable Register

Source

pub const fn sm3tctrl(self) -> Reg<Smtctrl, RW>

Output Trigger Control Register

Source

pub const fn sm3dismap0(self) -> Reg<Smdismap0, RW>

Fault Disable Mapping Register 0

Source

pub const fn sm3dtcnt0(self) -> Reg<Smdtcnt0, RW>

Deadtime Count Register 0

Source

pub const fn sm3dtcnt1(self) -> Reg<Smdtcnt1, RW>

Deadtime Count Register 1

Source

pub const fn sm3captctrlx(self) -> Reg<Smcaptctrlx, RW>

Capture Control X Register

Source

pub const fn sm3captcompx(self) -> Reg<Smcaptcompx, RW>

Capture Compare X Register

Source

pub const fn sm3cval0(self) -> Reg<Smcval0, R>

Capture Value 0 Register

Source

pub const fn sm3cval0cyc(self) -> Reg<Smcval0cyc, R>

Capture Value 0 Cycle Register

Source

pub const fn sm3cval1(self) -> Reg<Smcval1, R>

Capture Value 1 Register

Source

pub const fn sm3cval1cyc(self) -> Reg<Smcval1cyc, R>

Capture Value 1 Cycle Register

Source

pub const fn sm3phasedly(self) -> Reg<Smphasedly, RW>

Phase Delay Register

Source

pub const fn sm3captfiltx(self) -> Reg<Smcaptfiltx, RW>

Capture PWM_X Input Filter Register

Source

pub const fn outen(self) -> Reg<Outen, RW>

Output Enable Register

Source

pub const fn mask(self) -> Reg<Mask, RW>

Mask Register

Source

pub const fn swcout(self) -> Reg<Swcout, RW>

Software Controlled Output Register

Source

pub const fn dtsrcsel(self) -> Reg<Dtsrcsel, RW>

PWM Source Select Register

Source

pub const fn mctrl(self) -> Reg<Mctrl, RW>

Master Control Register

Source

pub const fn mctrl2(self) -> Reg<Mctrl2, RW>

Master Control 2 Register

Source

pub const fn fctrl0(self) -> Reg<Fctrl0, RW>

Fault Control Register

Source

pub const fn fsts0(self) -> Reg<Fsts0, RW>

Fault Status Register

Source

pub const fn ffilt0(self) -> Reg<Ffilt0, RW>

Fault Filter Register

Source

pub const fn ftst0(self) -> Reg<Ftst0, RW>

Fault Test Register

Source

pub const fn fctrl20(self) -> Reg<Fctrl20, RW>

Fault Control 2 Register

Trait Implementations§

Source§

impl Clone for Flexpwm

Source§

fn clone(&self) -> Flexpwm

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Flexpwm

Source§

fn eq(&self, other: &Flexpwm) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Flexpwm

Source§

impl Eq for Flexpwm

Source§

impl Send for Flexpwm

Source§

impl StructuralPartialEq for Flexpwm

Source§

impl Sync for Flexpwm

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.