[][src]Enum sodaq_one::sercom::UART0Pinout

pub enum UART0Pinout {
    Rx0Tx2 {
        rx: Sercom0Pad0,
        tx: Sercom0Pad2,
    },
    Rx1Tx0 {
        rx: Sercom0Pad1,
        tx: Sercom0Pad0,
    },
    Rx1Tx2 {
        rx: Sercom0Pad1,
        tx: Sercom0Pad2,
    },
    Rx2Tx0 {
        rx: Sercom0Pad2,
        tx: Sercom0Pad0,
    },
    Rx3Tx0 {
        rx: Sercom0Pad3,
        tx: Sercom0Pad0,
    },
    Rx3Tx2 {
        rx: Sercom0Pad3,
        tx: Sercom0Pad2,
    },
}

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: Sercom0Pad0tx: Sercom0Pad2
Rx1Tx0

Fields of Rx1Tx0

rx: Sercom0Pad1tx: Sercom0Pad0
Rx1Tx2

Fields of Rx1Tx2

rx: Sercom0Pad1tx: Sercom0Pad2
Rx2Tx0

One entry, can't put both on pad 2

Fields of Rx2Tx0

rx: Sercom0Pad2tx: Sercom0Pad0
Rx3Tx0

Fields of Rx3Tx0

rx: Sercom0Pad3tx: Sercom0Pad0
Rx3Tx2

Fields of Rx3Tx2

rx: Sercom0Pad3tx: Sercom0Pad2

Auto Trait Implementations

impl Send for UART0Pinout

impl Sync for UART0Pinout

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]