pub struct Rx<USART, WORD = u8> { /* private fields */ }
Expand description

Serial receiver

Implementations

Start listening for an rx not empty interrupt event

Note, you will also have to enable the corresponding interrupt in the NVIC to start receiving events.

Stop listening for the rx not empty interrupt event

Start listening for a line idle interrupt event

Note, you will also have to enable the corresponding interrupt in the NVIC to start receiving events.

Stop listening for the line idle interrupt event

Return true if the line idle status is set

Return true if the rx register is not empty (and can be read)

Clear idle line interrupt flag

Trait Implementations

Performs the conversion.

Performs the conversion.

Error type

Returns the address to be used by the DMA stream.

Memory size of the peripheral.

Reads 9-bit words from the UART/USART

If the UART/USART was configured with WordLength::DataBits9, the returned value will contain 9 received data bits and all other bits set to zero. Otherwise, the returned value will contain 8 received data bits and all other bits set to zero.

Read error

Reads a single word from the serial interface

Reads 9-bit words from the UART/USART

If the UART/USART was configured with WordLength::DataBits9, the returned value will contain 9 received data bits and all other bits set to zero. Otherwise, the returned value will contain 8 received data bits and all other bits set to zero.

Reads a single word from the serial interface

Read error

Reads a single word from the serial interface

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.

Should always be Self

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.