pub struct PwmPin<'d, T, C> { /* private fields */ }
Expand description
PWM pin wrapper.
This wraps a pin to make it usable with PWM.
Implementations§
Source§impl<'d, T: BasicInstance> PwmPin<'d, T, Ch1>
impl<'d, T: BasicInstance> PwmPin<'d, T, Ch1>
Sourcepub fn new_ch1(pin: impl Peripheral<P = impl Channel1Pin<T>> + 'd) -> Self
pub fn new_ch1(pin: impl Peripheral<P = impl Channel1Pin<T>> + 'd) -> Self
Create a new Ch1 PWM pin instance.
Source§impl<'d, T: BasicInstance> PwmPin<'d, T, Ch2>
impl<'d, T: BasicInstance> PwmPin<'d, T, Ch2>
Sourcepub fn new_ch2(pin: impl Peripheral<P = impl Channel2Pin<T>> + 'd) -> Self
pub fn new_ch2(pin: impl Peripheral<P = impl Channel2Pin<T>> + 'd) -> Self
Create a new Ch2 PWM pin instance.
Auto Trait Implementations§
impl<'d, T, C> Freeze for PwmPin<'d, T, C>
impl<'d, T, C> RefUnwindSafe for PwmPin<'d, T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<'d, T, C> Send for PwmPin<'d, T, C>
impl<'d, T, C> Sync for PwmPin<'d, T, C>
impl<'d, T, C> Unpin for PwmPin<'d, T, C>
impl<'d, T, C> !UnwindSafe for PwmPin<'d, T, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more