Pins

Trait Pins 

Source
pub unsafe trait Pins<UART> {
    const HAS_TX: bool;
    const HAS_RX: bool;
    const HAS_RTS: bool;
    const HAS_CTS: bool;
}
Expand description

Serial pins - DO NOT IMPLEMENT THIS TRAIT

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<UART, TX, RX> Pins<UART> for (TX, RX)
where TX: TxPin<UART>, RX: RxPin<UART>,

Source§

const HAS_TX: bool = true

Source§

const HAS_RX: bool = true

Source§

const HAS_RTS: bool = false

Source§

const HAS_CTS: bool = false

Source§

impl<UART, TX, RX, RTS, CTS> Pins<UART> for (TX, RX, RTS, CTS)
where TX: TxPin<UART>, RX: RxPin<UART>, RTS: RxPin<UART>, CTS: RxPin<UART>,

Source§

const HAS_TX: bool = true

Source§

const HAS_RX: bool = true

Source§

const HAS_RTS: bool = true

Source§

const HAS_CTS: bool = true

Implementors§