[][src]Enum feather_m0::sercom::UART5Pinout

pub enum UART5Pinout {
    Rx0Tx2 {
        rx: Sercom5Pad0,
        tx: Sercom5Pad2,
    },
    Rx1Tx0 {
        rx: Sercom5Pad1,
        tx: Sercom5Pad0,
    },
    Rx1Tx2 {
        rx: Sercom5Pad1,
        tx: Sercom5Pad2,
    },
    Rx2Tx0 {
        rx: Sercom5Pad2,
        tx: Sercom5Pad0,
    },
    Rx3Tx0 {
        rx: Sercom5Pad3,
        tx: Sercom5Pad0,
    },
    Rx3Tx2 {
        rx: Sercom5Pad3,
        tx: Sercom5Pad2,
    },
}

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: Sercom5Pad0tx: Sercom5Pad2
Rx1Tx0

Fields of Rx1Tx0

rx: Sercom5Pad1tx: Sercom5Pad0
Rx1Tx2

Fields of Rx1Tx2

rx: Sercom5Pad1tx: Sercom5Pad2
Rx2Tx0

One entry, can't put both on pad 2

Fields of Rx2Tx0

rx: Sercom5Pad2tx: Sercom5Pad0
Rx3Tx0

Fields of Rx3Tx0

rx: Sercom5Pad3tx: Sercom5Pad0
Rx3Tx2

Fields of Rx3Tx2

rx: Sercom5Pad3tx: Sercom5Pad2

Auto Trait Implementations

impl Send for UART5Pinout

impl Sync for UART5Pinout

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]