[][src]Enum arduino_mkrzero::sercom::UART2Pinout

pub enum UART2Pinout {
    Rx0Tx2 {
        rx: Sercom2Pad0,
        tx: Sercom2Pad2,
    },
    Rx1Tx0 {
        rx: Sercom2Pad1,
        tx: Sercom2Pad0,
    },
    Rx1Tx2 {
        rx: Sercom2Pad1,
        tx: Sercom2Pad2,
    },
    Rx2Tx0 {
        rx: Sercom2Pad2,
        tx: Sercom2Pad0,
    },
    Rx3Tx0 {
        rx: Sercom2Pad3,
        tx: Sercom2Pad0,
    },
    Rx3Tx2 {
        rx: Sercom2Pad3,
        tx: Sercom2Pad2,
    },
}

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: Sercom2Pad0tx: Sercom2Pad2
Rx1Tx0

Fields of Rx1Tx0

rx: Sercom2Pad1tx: Sercom2Pad0
Rx1Tx2

Fields of Rx1Tx2

rx: Sercom2Pad1tx: Sercom2Pad2
Rx2Tx0

One entry, can't put both on pad 2

Fields of Rx2Tx0

rx: Sercom2Pad2tx: Sercom2Pad0
Rx3Tx0

Fields of Rx3Tx0

rx: Sercom2Pad3tx: Sercom2Pad0
Rx3Tx2

Fields of Rx3Tx2

rx: Sercom2Pad3tx: Sercom2Pad2

Auto Trait Implementations

impl Send for UART2Pinout

impl Sync for UART2Pinout

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]