pub trait _embedded_hal_serial_nb_Write<Word = u8>: ErrorTypewhere
Word: Copy,{
// Required methods
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 Methods§
Trait Implementations§
Source§impl<Word, Error> Write for dyn Write<Word, Error = Error> + '_
Implementation of core::fmt::Write
for the HAL’s serial::Write
.
impl<Word, Error> Write for dyn Write<Word, Error = Error> + '_
Implementation of core::fmt::Write
for the HAL’s serial::Write
.
TODO write example of usage
Implementations on Foreign Types§
Implementors§
impl<USART: Instance> Write for Tx<USART, u8>
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.