pub struct Rx<USART: CommonPins, WORD = u8> { /* private fields */ }
Expand description
Serial receiver containing RX pin
Implementations§
Trait Implementations§
Source§impl<USART: Instance> Read<u16> for Rx<USART, u16>
Reads 9-bit words from the UART/USART
impl<USART: Instance> Read<u16> for Rx<USART, u16>
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<UART: Instance, WORD> RxListen for Rx<UART, WORD>
impl<UART: Instance, WORD> RxListen for Rx<UART, WORD>
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>
Reads 9-bit words from the UART/USART
impl<USART: Instance> Read<u16> for Rx<USART, u16>
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.
impl<UART, STREAM, const CHANNEL: u8> DMASet<STREAM, CHANNEL, PeripheralToMemory> for Rx<UART>
Auto Trait Implementations§
impl<USART, WORD> Freeze for Rx<USART, WORD>
impl<USART, WORD> RefUnwindSafe for Rx<USART, WORD>where
USART: RefUnwindSafe,
<USART as SerialAsync>::Rx<PushPull>: RefUnwindSafe,
WORD: 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