pub struct Tx<USART, WORD = u8> { /* fields omitted */ }
Expand description
impl<USART, WORD> Tx<USART, WORD> where
USART: Instance,
Start listening for a tx empty interrupt event
Note, you will also have to enable the corresponding interrupt
in the NVIC to start receiving events.
Stop listening for the tx empty interrupt event
Return true if the tx register is empty (and can accept data)
impl<USART, PINS, WORD> AsMut<Tx<USART, WORD>> for Serial<USART, PINS, WORD>
impl<USART, PINS, WORD> AsRef<Tx<USART, WORD>> for Serial<USART, PINS, WORD>
Returns the address to be used by the DMA stream.
Memory size of the peripheral.
Writes a string slice into this writer, returning whether the write
succeeded. Read more
Writes a char
into this writer, returning whether the write succeeded. Read more
Glue for usage of the write!
macro with implementors of this trait. Read more
The type of error that can occur when writing
Writes a slice, blocking until everything has been written Read more
Block until the serial interface has sent all buffered words
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.
Ensures that none of the previously written words are still buffered
Writes a single word to the serial interface
The type of error that can occur when writing
Writes a slice, blocking until everything has been written Read more
Block until the serial interface has sent all buffered words
Writes a single word to the serial interface
Ensures that none of the previously written words are still buffered
impl<USART, WORD> Send for Tx<USART, WORD> where
USART: Send,
WORD: Send,
impl<USART, WORD> Sync for Tx<USART, WORD> where
USART: Sync,
WORD: Sync,
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.