Struct stm32f4xx_hal::serial::Rx
source · pub struct Rx<USART: CommonPins, WORD = u8> { /* private fields */ }
Expand description
Serial receiver containing RX pin
Implementations§
Trait Implementations§
source§impl<UART: Instance> PeriAddress for Rx<UART, u8>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
impl<UART: Instance> PeriAddress for Rx<UART, u8>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
source§impl<USART: Instance> Read<u16> for Rx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
impl<USART: Instance> Read<u16> for Rx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
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.
source§impl<USART: Instance> Read for Rx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
impl<USART: Instance> Read for Rx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
source§impl<UART: Instance, WORD> RxISR for Rx<UART, WORD>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
impl<UART: Instance, WORD> RxISR for Rx<UART, WORD>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
source§impl<UART: Instance, WORD> RxListen for Rx<UART, WORD>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
impl<UART: Instance, WORD> RxListen for Rx<UART, WORD>where
<UART as Instance>::RegisterBlock: RegisterBlockImpl,
source§fn listen_idle(&mut self)
fn listen_idle(&mut self)
Start listening for a line idle interrupt event Read more
source§fn unlisten_idle(&mut self)
fn unlisten_idle(&mut self)
Stop listening for the line idle interrupt event
source§impl<USART: Instance> Read<u16> for Rx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
impl<USART: Instance> Read<u16> for Rx<USART, u16>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
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.
source§impl<USART: Instance> Read<u8> for Rx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
impl<USART: Instance> Read<u8> for Rx<USART, u8>where
<USART as Instance>::RegisterBlock: RegisterBlockImpl,
impl<UART, STREAM, const CHANNEL: u8> DMASet<STREAM, CHANNEL, PeripheralToMemory> for Rx<UART>
Auto Trait Implementations§
impl<USART, WORD> RefUnwindSafe for Rx<USART, WORD>where
USART: RefUnwindSafe,
WORD: RefUnwindSafe,
<USART as SerialAsync>::Rx<PushPull>: RefUnwindSafe,
impl<USART, WORD> Send for Rx<USART, WORD>
impl<USART, WORD> Sync for Rx<USART, WORD>
impl<USART, WORD> Unpin for Rx<USART, WORD>
impl<USART, WORD> UnwindSafe for Rx<USART, WORD>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more