pub struct PwmPin<'a> { /* private fields */ }
Expand description
Helper structure to control a PWM pin
Implementations§
Source§impl PwmPin<'_>
impl PwmPin<'_>
Sourcepub fn get_channel_number(&self) -> ChannelNumber
pub fn get_channel_number(&self) -> ChannelNumber
Returns the PWM channel the pin belongs to
Sourcepub fn get_channel_pin(&self) -> ChannelPin
pub fn get_channel_pin(&self) -> ChannelPin
Returns the PWM pin the pin belongs to
Trait Implementations§
Source§impl PwmPin for PwmPin<'_>
impl PwmPin for PwmPin<'_>
Auto Trait Implementations§
impl<'a> Freeze for PwmPin<'a>
impl<'a> !RefUnwindSafe for PwmPin<'a>
impl<'a> !Send for PwmPin<'a>
impl<'a> !Sync for PwmPin<'a>
impl<'a> Unpin for PwmPin<'a>
impl<'a> !UnwindSafe for PwmPin<'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