Struct imxrt_hal::pwm::Submodule[][src]

pub struct Submodule<M, S> { /* fields omitted */ }

A PWM submodule

A submodule may be consumed to create PWM pin instances

Implementations

impl<M> Submodule<M, U0> where
    M: Unsigned
[src]

pub fn outputs<A, B>(
    self,
    handle: &mut Handle<M>,
    pin_a: A,
    pin_b: B,
    timing: Timing
) -> Option<Pins<A, B>> where
    A: Pin<Module = M, Submodule = U0, Output = A>,
    B: Pin<Module = M, Submodule = U0, Output = B>, 
[src]

Converts two pins into PWM outputs. Returns a Pins type that wraps the underlying pins.

The input pins must support PWM functionality. They must match the module that they’re associated, and they must have the same submodule.

Requires a mutable reference to a Handle in order to modify registers that are shared across all PWM submodules.s

impl<M> Submodule<M, U1> where
    M: Unsigned
[src]

pub fn outputs<A, B>(
    self,
    handle: &mut Handle<M>,
    pin_a: A,
    pin_b: B,
    timing: Timing
) -> Option<Pins<A, B>> where
    A: Pin<Module = M, Submodule = U1, Output = A>,
    B: Pin<Module = M, Submodule = U1, Output = B>, 
[src]

Converts two pins into PWM outputs. Returns a Pins type that wraps the underlying pins.

The input pins must support PWM functionality. They must match the module that they’re associated, and they must have the same submodule.

Requires a mutable reference to a Handle in order to modify registers that are shared across all PWM submodules.s

impl<M> Submodule<M, U2> where
    M: Unsigned
[src]

pub fn outputs<A, B>(
    self,
    handle: &mut Handle<M>,
    pin_a: A,
    pin_b: B,
    timing: Timing
) -> Option<Pins<A, B>> where
    A: Pin<Module = M, Submodule = U2, Output = A>,
    B: Pin<Module = M, Submodule = U2, Output = B>, 
[src]

Converts two pins into PWM outputs. Returns a Pins type that wraps the underlying pins.

The input pins must support PWM functionality. They must match the module that they’re associated, and they must have the same submodule.

Requires a mutable reference to a Handle in order to modify registers that are shared across all PWM submodules.s

impl<M> Submodule<M, U3> where
    M: Unsigned
[src]

pub fn outputs<A, B>(
    self,
    handle: &mut Handle<M>,
    pin_a: A,
    pin_b: B,
    timing: Timing
) -> Option<Pins<A, B>> where
    A: Pin<Module = M, Submodule = U3, Output = A>,
    B: Pin<Module = M, Submodule = U3, Output = B>, 
[src]

Converts two pins into PWM outputs. Returns a Pins type that wraps the underlying pins.

The input pins must support PWM functionality. They must match the module that they’re associated, and they must have the same submodule.

Requires a mutable reference to a Handle in order to modify registers that are shared across all PWM submodules.s

Auto Trait Implementations

impl<M, S> Send for Submodule<M, S> where
    M: Send,
    S: Send

impl<M, S> Sync for Submodule<M, S> where
    M: Sync,
    S: Sync

impl<M, S> Unpin for Submodule<M, S> where
    M: Unpin,
    S: 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.