Enum dac8564::Channel[][src]

#[repr(u8)]pub enum Channel {
    A,
    B,
    C,
    D,
    ALL,
}

Channel selection enum DAC5864 has 4 different channels

Variants

A

Channel A

B

Channel B

C

Channel C

D

Channel D

ALL

All Channels

Implementations

impl Channel[src]

pub fn from_index(index: u8) -> Channel[src]

Get the Channel enumeration from an index (begins at 0)

Trait Implementations

impl PartialEq<Channel> for Channel[src]

impl StructuralPartialEq for Channel[src]

Auto Trait Implementations

impl Send for Channel

impl Sync for Channel

impl Unpin for Channel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.