pub enum ChannelPin {
A,
B,
}
Expand description
Identifier for a channel pin
Each PWM channel has two pins: A and B. Pin A is always configured as an output pin. Pin B is configured as an output pin when running in free running mode. Otherwise, it is configured as an input pin.
Variants§
Trait Implementations§
Source§impl Clone for ChannelPin
impl Clone for ChannelPin
Source§fn clone(&self) -> ChannelPin
fn clone(&self) -> ChannelPin
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChannelPin
impl Debug for ChannelPin
Source§impl From<RPGpio> for ChannelPin
Check ChannelNumber implementation for more details
impl From<RPGpio> for ChannelPin
Check ChannelNumber implementation for more details
Source§impl PartialEq for ChannelPin
impl PartialEq for ChannelPin
impl Copy for ChannelPin
impl StructuralPartialEq for ChannelPin
Auto Trait Implementations§
impl Freeze for ChannelPin
impl RefUnwindSafe for ChannelPin
impl Send for ChannelPin
impl Sync for ChannelPin
impl Unpin for ChannelPin
impl UnwindSafe for ChannelPin
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