Struct avr_hal_generic::usart::UsartReader
source · 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_v0::serial::Read
for receiving data.
Implementations§
source§impl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> UsartReader<H, USART, RX, TX, CLOCK>
impl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> UsartReader<H, USART, RX, TX, CLOCK>
sourcepub fn reunite(
self,
other: UsartWriter<H, USART, RX, TX, CLOCK>
) -> Usart<H, USART, RX, TX, CLOCK>
pub fn reunite( self, other: UsartWriter<H, USART, RX, TX, CLOCK> ) -> Usart<H, USART, RX, TX, CLOCK>
Merge this UsartReader
with a UsartWriter
back into a single Usart
peripheral.
Trait Implementations§
Auto Trait Implementations§
impl<H, USART, RX, TX, CLOCK> Freeze for UsartReader<H, USART, RX, TX, CLOCK>
impl<H, USART, RX, TX, CLOCK> RefUnwindSafe for UsartReader<H, USART, RX, TX, CLOCK>where
CLOCK: RefUnwindSafe,
H: RefUnwindSafe,
RX: RefUnwindSafe,
TX: RefUnwindSafe,
USART: RefUnwindSafe,
impl<H, USART, RX, TX, CLOCK> Send for UsartReader<H, USART, RX, TX, CLOCK>
impl<H, USART, RX, TX, CLOCK> Sync for UsartReader<H, USART, RX, TX, CLOCK>
impl<H, USART, RX, TX, CLOCK> Unpin for UsartReader<H, USART, RX, TX, CLOCK>
impl<H, USART, RX, TX, CLOCK> UnwindSafe for UsartReader<H, USART, RX, TX, CLOCK>
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