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
through3
.
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,
M: Send,
impl<M> !Sync for PWM<M>
impl<M> Unpin for PWM<M> where
M: Unpin,
M: 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>,