[][src]Type Definition async_stm32f1xx::serial::TxSink2

type TxSink2<'a, BUF> = TxSink<'a, BUF, TxDma2>;

A type shorthand for specifying different DMA channels easily.

Implementations

impl<'a, BUF> TxSink2<'a, BUF>[src]

pub fn new(buf: &'a mut BUF, tx: TxDma2) -> Self[src]

Creates a new TxSink from the specified buffer and DMA transmitter.