[][src]Enum circuit_playground_express::sercom::UART3Pinout

pub enum UART3Pinout {
    Rx0Tx2 {
        rx: Sercom3Pad0,
        tx: Sercom3Pad2,
    },
    Rx1Tx0 {
        rx: Sercom3Pad1,
        tx: Sercom3Pad0,
    },
    Rx1Tx2 {
        rx: Sercom3Pad1,
        tx: Sercom3Pad2,
    },
    Rx2Tx0 {
        rx: Sercom3Pad2,
        tx: Sercom3Pad0,
    },
    Rx3Tx0 {
        rx: Sercom3Pad3,
        tx: Sercom3Pad0,
    },
    Rx3Tx2 {
        rx: Sercom3Pad3,
        tx: Sercom3Pad2,
    },
}

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: Sercom3Pad0tx: Sercom3Pad2
Rx1Tx0

Fields of Rx1Tx0

rx: Sercom3Pad1tx: Sercom3Pad0
Rx1Tx2

Fields of Rx1Tx2

rx: Sercom3Pad1tx: Sercom3Pad2
Rx2Tx0

One entry, can't put both on pad 2

Fields of Rx2Tx0

rx: Sercom3Pad2tx: Sercom3Pad0
Rx3Tx0

Fields of Rx3Tx0

rx: Sercom3Pad3tx: Sercom3Pad0
Rx3Tx2

Fields of Rx3Tx2

rx: Sercom3Pad3tx: Sercom3Pad2

Auto Trait Implementations

impl Send for UART3Pinout

impl Sync for UART3Pinout

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]