Struct stm32_hal2::serial::Tx[][src]

pub struct Tx<USART> { /* fields omitted */ }

Serial transmitter

Implementations

impl Tx<USART1>[src]

pub fn frame_sender<BUFFER, N>(&self, channel: C4) -> FrameSender<BUFFER, C4, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

Creates a new DMA frame sender

impl Tx<USART2>[src]

pub fn frame_sender<BUFFER, N>(&self, channel: C7) -> FrameSender<BUFFER, C7, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

Creates a new DMA frame sender

Trait Implementations

impl Default<u8> for Tx<USART1>[src]

impl Default<u8> for Tx<USART2>[src]

impl<USART> Write for Tx<USART> where
    Tx<USART>: Write<u8>, 
[src]

impl Write<u8> for Tx<USART1>[src]

type Error = Error

Write error

impl Write<u8> for Tx<USART2>[src]

type Error = Error

Write error

Auto Trait Implementations

impl<USART> Send for Tx<USART> where
    USART: Send

impl<USART> Sync for Tx<USART> where
    USART: Sync

impl<USART> Unpin for Tx<USART> where
    USART: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<S, Word> Write<Word> for S where
    Word: Clone,
    S: Default<Word>, 
[src]

type Error = <S as Write<Word>>::Error

The type of error that can occur when writing