pub enum AdcChannel {
Channel0 = 0,
Channel1 = 1,
Channel2 = 2,
Channel3 = 3,
Channel4 = 4,
Channel5 = 5,
}Expand description
LSADC channel (0-5).
Variants§
Implementations§
Source§impl AdcChannel
impl AdcChannel
Sourcepub fn from_index(idx: u8) -> Option<Self>
pub fn from_index(idx: u8) -> Option<Self>
Convert a channel index (0-5) to an AdcChannel.
Trait Implementations§
Source§impl Clone for AdcChannel
impl Clone for AdcChannel
Source§fn clone(&self) -> AdcChannel
fn clone(&self) -> AdcChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdcChannel
Source§impl Debug for AdcChannel
impl Debug for AdcChannel
impl Eq for AdcChannel
Source§impl PartialEq for AdcChannel
impl PartialEq for AdcChannel
Source§fn eq(&self, other: &AdcChannel) -> bool
fn eq(&self, other: &AdcChannel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdcChannel
Auto Trait Implementations§
impl Freeze for AdcChannel
impl RefUnwindSafe for AdcChannel
impl Send for AdcChannel
impl Sync for AdcChannel
impl Unpin for AdcChannel
impl UnsafeUnpin for AdcChannel
impl UnwindSafe for AdcChannel
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