Struct stm32f1xx_hal::serial::Tx
source · pub struct Tx<USART> { /* private fields */ }
Expand description
Serial transmitter
Implementations§
source§impl<USART: Instance> Tx<USART>
impl<USART: Instance> Tx<USART>
sourcepub fn write_u16(&mut self, word: u16) -> Result<(), Infallible>
pub fn write_u16(&mut self, word: u16) -> Result<(), Infallible>
Writes 9-bit words to the UART/USART
If the UART/USART was configured with WordLength::Bits9
, 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.
pub fn write(&mut self, word: u8) -> Result<(), Infallible>
pub fn bwrite_all_u16(&mut self, buffer: &[u16]) -> Result<(), Infallible>
pub fn bwrite_all(&mut self, buffer: &[u8]) -> Result<(), Infallible>
pub fn flush(&mut self) -> Result<(), Infallible>
pub fn bflush(&mut self) -> Result<(), Infallible>
sourcepub fn is_tx_empty(&self) -> bool
pub fn is_tx_empty(&self) -> bool
Returns true if the tx register is empty (and can accept data)