[][src]Enum circuit_playground_express::sercom::UART4Pinout

pub enum UART4Pinout {
    Rx0Tx2 {
        rx: Sercom4Pad0,
        tx: Sercom4Pad2,
    },
    Rx1Tx0 {
        rx: Sercom4Pad1,
        tx: Sercom4Pad0,
    },
    Rx1Tx2 {
        rx: Sercom4Pad1,
        tx: Sercom4Pad2,
    },
    Rx2Tx0 {
        rx: Sercom4Pad2,
        tx: Sercom4Pad0,
    },
    Rx3Tx0 {
        rx: Sercom4Pad3,
        tx: Sercom4Pad0,
    },
    Rx3Tx2 {
        rx: Sercom4Pad3,
        tx: Sercom4Pad2,
    },
}

Similar to SPI Pinout the UART allows selecting any pad for RX and either pad 0 or 2 for TX

Variants

Rx0Tx2

Construct pinout with rx assigned to pad0, TX here must be pad 2 One entry, can't put both on pad 0

Fields of Rx0Tx2

rx: Sercom4Pad0tx: Sercom4Pad2
Rx1Tx0

Fields of Rx1Tx0

rx: Sercom4Pad1tx: Sercom4Pad0
Rx1Tx2

Fields of Rx1Tx2

rx: Sercom4Pad1tx: Sercom4Pad2
Rx2Tx0

One entry, can't put both on pad 2

Fields of Rx2Tx0

rx: Sercom4Pad2tx: Sercom4Pad0
Rx3Tx0

Fields of Rx3Tx0

rx: Sercom4Pad3tx: Sercom4Pad0
Rx3Tx2

Fields of Rx3Tx2

rx: Sercom4Pad3tx: Sercom4Pad2

Auto Trait Implementations

impl Send for UART4Pinout

impl Sync for UART4Pinout

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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