pub trait SerialExt: Sized + Instance {
    // Required methods
    fn serial<WORD>(
        self,
        pins: (impl Into<Self::Tx<PushPull>>, impl Into<Self::Rx<PushPull>>),
        config: impl Into<Config>,
        clocks: &Clocks
    ) -> Result<Serial<Self, WORD>, InvalidConfig>;
    fn tx<WORD>(
        self,
        tx_pin: impl Into<Self::Tx<PushPull>>,
        config: impl Into<Config>,
        clocks: &Clocks
    ) -> Result<Tx<Self, WORD>, InvalidConfig>
       where NoPin: Into<Self::Rx<PushPull>>;
    fn rx<WORD>(
        self,
        rx_pin: impl Into<Self::Rx<PushPull>>,
        config: impl Into<Config>,
        clocks: &Clocks
    ) -> Result<Rx<Self, WORD>, InvalidConfig>
       where NoPin: Into<Self::Tx<PushPull>>;
}

Required Methods§

source

fn serial<WORD>( self, pins: (impl Into<Self::Tx<PushPull>>, impl Into<Self::Rx<PushPull>>), config: impl Into<Config>, clocks: &Clocks ) -> Result<Serial<Self, WORD>, InvalidConfig>

source

fn tx<WORD>( self, tx_pin: impl Into<Self::Tx<PushPull>>, config: impl Into<Config>, clocks: &Clocks ) -> Result<Tx<Self, WORD>, InvalidConfig>
where NoPin: Into<Self::Rx<PushPull>>,

source

fn rx<WORD>( self, rx_pin: impl Into<Self::Rx<PushPull>>, config: impl Into<Config>, clocks: &Clocks ) -> Result<Rx<Self, WORD>, InvalidConfig>
where NoPin: Into<Self::Tx<PushPull>>,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<UART: Instance> SerialExt for UART
where <UART as Instance>::RegisterBlock: RegisterBlockImpl,