Struct stm32f1xx_hal::serial::Rx

source ·
pub struct Rx<USART> { /* private fields */ }
Expand description

Serial receiver

Implementations§

Reads 9-bit words from the UART/USART

If the UART/USART was configured with WordLength::Bits9, 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.

Start listening for receive interrupt event

Stop listening for receive interrupt event

Start listening for idle interrupt event

Stop listening for idle interrupt event

Returns true if the line idle status is set

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

Clear idle line interrupt flag

Trait Implementations§

Read error
Reads a single word from the serial interface
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.