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

Reader 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 reader half most notably implements embedded_hal::serial::Read for receiving data.

Implementations

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

Trait Implementations

Read error

Reads a single word from the serial interface

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.