TxSink2

Type Alias TxSink2 

Source
pub type TxSink2<'a, BUF> = TxSink<'a, BUF, TxDma2>;
Expand description

A type shorthand for specifying different DMA channels easily.

Aliased Type§

pub struct TxSink2<'a, BUF>(/* private fields */);

Implementations§

Source§

impl<'a, BUF> TxSink2<'a, BUF>

Source

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

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