Struct avr_hal_generic::usart::UsartWriter
source · [−]pub struct UsartWriter<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> { /* private fields */ }
Expand description
Writer 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 writer half most notably implements embedded_hal::serial::Write
and ufmt::uWrite
for transmitting data.
Implementations
sourceimpl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> UsartWriter<H, USART, RX, TX, CLOCK>
impl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> UsartWriter<H, USART, RX, TX, CLOCK>
sourcepub fn reunite(
self,
other: UsartReader<H, USART, RX, TX, CLOCK>
) -> Usart<H, USART, RX, TX, CLOCK>
pub fn reunite(
self,
other: UsartReader<H, USART, RX, TX, CLOCK>
) -> Usart<H, USART, RX, TX, CLOCK>
Merge this UsartWriter
with a UsartReader
back into a single Usart
peripheral.
Trait Implementations
sourceimpl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> Write<u8> for UsartWriter<H, USART, RX, TX, CLOCK>
impl<H, USART: UsartOps<H, RX, TX>, RX, TX, CLOCK> Write<u8> for UsartWriter<H, USART, RX, TX, CLOCK>
Auto Trait Implementations
impl<H, USART, RX, TX, CLOCK> RefUnwindSafe for UsartWriter<H, USART, RX, TX, CLOCK> where
CLOCK: RefUnwindSafe,
H: RefUnwindSafe,
RX: RefUnwindSafe,
TX: RefUnwindSafe,
USART: RefUnwindSafe,
impl<H, USART, RX, TX, CLOCK> Send for UsartWriter<H, USART, RX, TX, CLOCK> where
CLOCK: Send,
H: Send,
RX: Send,
TX: Send,
USART: Send,
impl<H, USART, RX, TX, CLOCK> Sync for UsartWriter<H, USART, RX, TX, CLOCK> where
CLOCK: Sync,
H: Sync,
RX: Sync,
TX: Sync,
USART: Sync,
impl<H, USART, RX, TX, CLOCK> Unpin for UsartWriter<H, USART, RX, TX, CLOCK> where
CLOCK: Unpin,
H: Unpin,
RX: Unpin,
TX: Unpin,
USART: Unpin,
impl<H, USART, RX, TX, CLOCK> UnwindSafe for UsartWriter<H, USART, RX, TX, CLOCK> where
CLOCK: UnwindSafe,
H: UnwindSafe,
RX: UnwindSafe,
TX: UnwindSafe,
USART: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more