[][src]Struct avr_hal_generic::usart::UsartWriter

pub struct UsartWriter<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> { /* fields omitted */ }

Writer half of a Usart peripheral.

Created by calling Usart::split. Splitting a peripheral into reader and writer allows concurrently receiving and transmitting data from different contexts.

The writer half most notably implements embedded_hal::serial::Write and ufmt::uWrite for transmitting data.

Implementations

impl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> UsartWriter<H, USART, RX, TX, CLOCK>[src]

pub fn reunite(
    self,
    other: UsartReader<H, USART, RX, TX, CLOCK>
) -> Usart<H, USART, RX, TX, CLOCK>
[src]

Merge this UsartWriter with a UsartReader back into a single Usart peripheral.

Trait Implementations

impl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> Write<u8> for UsartWriter<H, USART, RX, TX, CLOCK>[src]

type Error = Void

Write error

impl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> uWrite for UsartWriter<H, USART, RX, TX, CLOCK>[src]

type Error = Void

The error associated to this writer

Auto Trait Implementations

impl<H, USART, RX, TX, CLOCK> Send for UsartWriter<H, USART, RX, TX, CLOCK> where
    CLOCK: Send,
    H: Send,
    RX: Send,
    TX: Send,
    USART: Send
[src]

impl<H, USART, RX, TX, CLOCK> Sync for UsartWriter<H, USART, RX, TX, CLOCK> where
    CLOCK: Sync,
    H: Sync,
    RX: Sync,
    TX: Sync,
    USART: Sync
[src]

impl<H, USART, RX, TX, CLOCK> Unpin for UsartWriter<H, USART, RX, TX, CLOCK> where
    CLOCK: Unpin,
    H: Unpin,
    RX: Unpin,
    TX: Unpin,
    USART: Unpin
[src]

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, 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.