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_v0::serial::Write and ufmt::uWrite
for transmitting data.
Implementations§
Source§impl<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§
Source§impl<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> Freeze for UsartWriter<H, USART, RX, TX, CLOCK>where
USART: Freeze,
TX: Freeze,
PhantomData<RX>: Freeze,
PhantomData<CLOCK>: Freeze,
PhantomData<H>: Freeze,
impl<H, USART, RX, TX, CLOCK> RefUnwindSafe for UsartWriter<H, USART, RX, TX, CLOCK>where
USART: RefUnwindSafe,
TX: RefUnwindSafe,
PhantomData<RX>: RefUnwindSafe,
PhantomData<CLOCK>: RefUnwindSafe,
PhantomData<H>: RefUnwindSafe,
impl<H, USART, RX, TX, CLOCK> Send for UsartWriter<H, USART, RX, TX, CLOCK>
impl<H, USART, RX, TX, CLOCK> Sync for UsartWriter<H, USART, RX, TX, CLOCK>
impl<H, USART, RX, TX, CLOCK> Unpin for UsartWriter<H, USART, RX, TX, CLOCK>where
USART: Unpin,
TX: Unpin,
PhantomData<RX>: Unpin,
PhantomData<CLOCK>: Unpin,
PhantomData<H>: Unpin,
impl<H, USART, RX, TX, CLOCK> UnsafeUnpin for UsartWriter<H, USART, RX, TX, CLOCK>where
USART: UnsafeUnpin,
TX: UnsafeUnpin,
PhantomData<RX>: UnsafeUnpin,
PhantomData<CLOCK>: UnsafeUnpin,
PhantomData<H>: UnsafeUnpin,
impl<H, USART, RX, TX, CLOCK> UnwindSafe for UsartWriter<H, USART, RX, TX, CLOCK>where
USART: UnwindSafe,
TX: UnwindSafe,
PhantomData<RX>: UnwindSafe,
PhantomData<CLOCK>: UnwindSafe,
PhantomData<H>: UnwindSafe,
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