Struct embassy_stm32::timer::complementary_pwm::ComplementaryPwmPin
source · pub struct ComplementaryPwmPin<'d, T, C> { /* private fields */ }
Expand description
Complementary PWM pin wrapper.
This wraps a pin to make it usable with PWM.
Implementations§
source§impl<'d, T: CaptureCompare16bitInstance> ComplementaryPwmPin<'d, T, Ch1>
impl<'d, T: CaptureCompare16bitInstance> ComplementaryPwmPin<'d, T, Ch1>
sourcepub fn new_ch1(
pin: impl Peripheral<P = impl Channel1ComplementaryPin<T>> + 'd,
output_type: OutputType
) -> Self
pub fn new_ch1( pin: impl Peripheral<P = impl Channel1ComplementaryPin<T>> + 'd, output_type: OutputType ) -> Self
Create a new Ch1 complementary PWM pin instance.
source§impl<'d, T: CaptureCompare16bitInstance> ComplementaryPwmPin<'d, T, Ch2>
impl<'d, T: CaptureCompare16bitInstance> ComplementaryPwmPin<'d, T, Ch2>
sourcepub fn new_ch2(
pin: impl Peripheral<P = impl Channel2ComplementaryPin<T>> + 'd,
output_type: OutputType
) -> Self
pub fn new_ch2( pin: impl Peripheral<P = impl Channel2ComplementaryPin<T>> + 'd, output_type: OutputType ) -> Self
Create a new Ch2 complementary PWM pin instance.
source§impl<'d, T: CaptureCompare16bitInstance> ComplementaryPwmPin<'d, T, Ch3>
impl<'d, T: CaptureCompare16bitInstance> ComplementaryPwmPin<'d, T, Ch3>
sourcepub fn new_ch3(
pin: impl Peripheral<P = impl Channel3ComplementaryPin<T>> + 'd,
output_type: OutputType
) -> Self
pub fn new_ch3( pin: impl Peripheral<P = impl Channel3ComplementaryPin<T>> + 'd, output_type: OutputType ) -> Self
Create a new Ch3 complementary PWM pin instance.
source§impl<'d, T: CaptureCompare16bitInstance> ComplementaryPwmPin<'d, T, Ch4>
impl<'d, T: CaptureCompare16bitInstance> ComplementaryPwmPin<'d, T, Ch4>
sourcepub fn new_ch4(
pin: impl Peripheral<P = impl Channel4ComplementaryPin<T>> + 'd,
output_type: OutputType
) -> Self
pub fn new_ch4( pin: impl Peripheral<P = impl Channel4ComplementaryPin<T>> + 'd, output_type: OutputType ) -> Self
Create a new Ch4 complementary PWM pin instance.
Auto Trait Implementations§
impl<'d, T, C> Freeze for ComplementaryPwmPin<'d, T, C>
impl<'d, T, C> RefUnwindSafe for ComplementaryPwmPin<'d, T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<'d, T, C> Send for ComplementaryPwmPin<'d, T, C>
impl<'d, T, C> Sync for ComplementaryPwmPin<'d, T, C>
impl<'d, T, C> Unpin for ComplementaryPwmPin<'d, T, C>
impl<'d, T, C> !UnwindSafe for ComplementaryPwmPin<'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