pub trait _embedded_hal_serial_Write<Word> {
type Error;
fn write(&mut self, word: Word) -> Result<(), Error<Self::Error>>;
fn flush(&mut self) -> Result<(), Error<Self::Error>>;
}
Expand description
Write half of a serial interface
Required Associated Types
Required Methods
Writes a single word to the serial interface
Trait Implementations
sourceimpl<Word, Error> Write for dyn Write<Word, Error = Error> + 'static where
Word: From<u8>,
impl<Word, Error> Write for dyn Write<Word, Error = Error> + 'static where
Word: From<u8>,
Implementors
sourceimpl<USART, PINS, WORD> Write<WORD> for Serial<USART, PINS, WORD> where
USART: Instance,
Tx<USART, WORD>: Write<WORD, Error = Error>,
impl<USART, PINS, WORD> Write<WORD> for Serial<USART, PINS, WORD> where
USART: Instance,
Tx<USART, WORD>: Write<WORD, Error = Error>,
sourceimpl<USART: Instance> Write<u16> for Tx<USART, u16>
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.