pub struct Tx<USART: CommonPins, WORD = u8> { /* private fields */ }
Expand description
Serial transmitter containing TX pin
Implementations§
Trait Implementations§
Source§impl<UART: Instance, WORD> TxISR for Tx<UART, WORD>
impl<UART: Instance, WORD> TxISR for Tx<UART, WORD>
Source§fn is_tx_empty(&self) -> bool
fn is_tx_empty(&self) -> bool
Return true if the tx register is empty (and can accept data)
Source§impl<USART: Instance> Write<u16> for Tx<USART, u16>
Writes 9-bit words to the UART/USART
impl<USART: Instance> Write<u16> for Tx<USART, u16>
Writes 9-bit words to the UART/USART
If the UART/USART was configured with WordLength::DataBits9
, the 9 least significant bits will
be transmitted and the other 7 bits will be ignored. Otherwise, the 8 least significant bits
will be transmitted and the other 8 bits will be ignored.
Source§impl<UART: Instance> Write for Tx<UART>
impl<UART: Instance> Write for Tx<UART>
Source§impl<USART: Instance> Write for Tx<USART, u8>
impl<USART: Instance> Write for Tx<USART, u8>
Source§fn write(&mut self, bytes: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, bytes: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Source§impl<USART> Write<u16> for Tx<USART, u16>
impl<USART> Write<u16> for Tx<USART, u16>
Source§impl<USART: Instance> Write<u8> for Tx<USART, u8>
impl<USART: Instance> Write<u8> for Tx<USART, u8>
Source§impl<USART: Instance> Write<u16> for Tx<USART, u16>
Writes 9-bit words to the UART/USART
impl<USART: Instance> Write<u16> for Tx<USART, u16>
Writes 9-bit words to the UART/USART
If the UART/USART was configured with WordLength::DataBits9
, the 9 least significant bits will
be transmitted and the other 7 bits will be ignored. Otherwise, the 8 least significant bits
will be transmitted and the other 8 bits will be ignored.
impl<UART, STREAM, const CHANNEL: u8> DMASet<STREAM, CHANNEL, MemoryToPeripheral> for Tx<UART>
Auto Trait Implementations§
impl<USART, WORD> Freeze for Tx<USART, WORD>
impl<USART, WORD> RefUnwindSafe for Tx<USART, WORD>where
USART: RefUnwindSafe,
<USART as SerialAsync>::Tx<PushPull>: RefUnwindSafe,
WORD: RefUnwindSafe,
impl<USART, WORD> Send for Tx<USART, WORD>
impl<USART, WORD> Sync for Tx<USART, WORD>
impl<USART, WORD> Unpin for Tx<USART, WORD>
impl<USART, WORD> UnwindSafe for Tx<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