pub struct PwmPin<'d, T, C, A> { /* private fields */ }
Expand description
PWM pin wrapper.
This wraps a pin to make it usable with PWM.
Implementations§
Source§impl<'d, T: GeneralInstance4Channel, C: TimerChannel, A> PwmPin<'d, T, C, A>
impl<'d, T: GeneralInstance4Channel, C: TimerChannel, A> PwmPin<'d, T, C, A>
Sourcepub fn new(
pin: Peri<'d, impl TimerPin<T, C, A>>,
output_type: OutputType,
) -> Self
pub fn new( pin: Peri<'d, impl TimerPin<T, C, A>>, output_type: OutputType, ) -> Self
Create a new PWM pin instance.
Sourcepub fn new_with_config(
pin: Peri<'d, impl TimerPin<T, C, A>>,
pin_config: PwmPinConfig,
) -> Self
pub fn new_with_config( pin: Peri<'d, impl TimerPin<T, C, A>>, pin_config: PwmPinConfig, ) -> Self
Create a new PWM pin instance with a specific configuration.
Auto Trait Implementations§
impl<'d, T, C, A> Freeze for PwmPin<'d, T, C, A>
impl<'d, T, C, A> RefUnwindSafe for PwmPin<'d, T, C, A>
impl<'d, T, C, A> Send for PwmPin<'d, T, C, A>
impl<'d, T, C, A> Sync for PwmPin<'d, T, C, A>
impl<'d, T, C, A> Unpin for PwmPin<'d, T, C, A>
impl<'d, T, C, A> !UnwindSafe for PwmPin<'d, T, C, A>
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