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

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

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

Trait Implementations

Write error

Writes a single word to the serial interface

Ensures that none of the previously written words are still buffered

The error associated to this writer

Writes a string slice into this writer, returning whether the write succeeded. Read more

Writes a char into this writer, returning whether the write succeeded. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.