pub struct Controller<'a, A, B, D, S> { /* fields omitted */ }
Expand description
A PWM controller, which implements
The Controller
enables you to set PWM duty cycles and switching periods.
It requires mutable access to both the PWM handle and the PWM pins that you
want to control. Once you’ve set your values, drop the controller. Pair the
handle with another Pair
to set those values.
impl<'a, A, B, D> Pwm for Controller<'a, A, B, D, U0> where
A: Pin<Output = A, Submodule = U0>,
B: Pin<Output = B, Module = <A as Pin>::Module, Submodule = <A as Pin>::Submodule>,
D: 'a + DerefMut<Target = Handle<<A as Pin>::Module>>,
Enumeration of channels that can be used with this Pwm
interface Read more
A time unit that can be converted into a human time unit (e.g. seconds)
Returns the current duty cycle
Returns the current PWM period
Returns the maximum duty cycle value
impl<'a, A, B, D> Pwm for Controller<'a, A, B, D, U1> where
A: Pin<Output = A, Submodule = U1>,
B: Pin<Output = B, Module = <A as Pin>::Module, Submodule = <A as Pin>::Submodule>,
D: 'a + DerefMut<Target = Handle<<A as Pin>::Module>>,
Enumeration of channels that can be used with this Pwm
interface Read more
A time unit that can be converted into a human time unit (e.g. seconds)
Returns the current duty cycle
Returns the current PWM period
Returns the maximum duty cycle value
impl<'a, A, B, D> Pwm for Controller<'a, A, B, D, U2> where
A: Pin<Output = A, Submodule = U2>,
B: Pin<Output = B, Module = <A as Pin>::Module, Submodule = <A as Pin>::Submodule>,
D: 'a + DerefMut<Target = Handle<<A as Pin>::Module>>,
Enumeration of channels that can be used with this Pwm
interface Read more
A time unit that can be converted into a human time unit (e.g. seconds)
Returns the current duty cycle
Returns the current PWM period
Returns the maximum duty cycle value
impl<'a, A, B, D> Pwm for Controller<'a, A, B, D, U3> where
A: Pin<Output = A, Submodule = U3>,
B: Pin<Output = B, Module = <A as Pin>::Module, Submodule = <A as Pin>::Submodule>,
D: 'a + DerefMut<Target = Handle<<A as Pin>::Module>>,
Enumeration of channels that can be used with this Pwm
interface Read more
A time unit that can be converted into a human time unit (e.g. seconds)
Returns the current duty cycle
Returns the current PWM period
Returns the maximum duty cycle value
impl<'a, A, B, D, S> Send for Controller<'a, A, B, D, S> where
A: Send,
B: Send,
D: Send,
S: Send,
impl<'a, A, B, D, S> Sync for Controller<'a, A, B, D, S> where
A: Sync,
B: Sync,
D: Sync,
S: Sync,
impl<'a, A, B, D, S> Unpin for Controller<'a, A, B, D, S> where
D: Unpin,
S: Unpin,
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.