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]
M: Unsigned,
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]
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>,
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]
M: Unsigned,
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]
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>,
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]
M: Unsigned,
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]
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>,
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]
M: Unsigned,
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]
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>,
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,
M: Send,
S: Send,
impl<M, S> Sync for Submodule<M, S> where
M: Sync,
S: Sync,
M: Sync,
S: Sync,
impl<M, S> Unpin for Submodule<M, S> where
M: Unpin,
S: Unpin,
M: Unpin,
S: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,