Struct imxrt_hal::pwm::PWM[][src]

pub struct PWM<M> {
    pub handle: Handle<M>,
    pub sm0: Submodule<M, U0>,
    pub sm1: Submodule<M, U1>,
    pub sm2: Submodule<M, U2>,
    pub sm3: Submodule<M, U3>,
}

A PWM peripheral

The PWM peripheral is broken into

  • the PWM master handle, handle,
  • four submodules, numbered 0 through 3.

The submodules are taken when you want to turn pins into PWM outputs. The handle provides access to registers that are shared across PWM submodules.

Fields

handle: Handle<M>

The peripheral handle

Methods that need access to peripheral-level registers, rather than just submodule-level registers, must have a mutable reference to the handle.

sm0: Submodule<M, U0>

Submodule 0

sm1: Submodule<M, U1>

Submodule 1

sm2: Submodule<M, U2>

Submodule 2

sm3: Submodule<M, U3>

Submodule 3

Auto Trait Implementations

impl<M> Send for PWM<M> where
    M: Send

impl<M> !Sync for PWM<M>

impl<M> Unpin for PWM<M> where
    M: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.