Struct stm32f1xx_hal::serial::Tx

source ·
pub struct Tx<USART> { /* private fields */ }
Expand description

Serial transmitter

Implementations§

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.

Start listening for transmit interrupt event

Stop listening for transmit interrupt event

Returns true if the tx register is empty (and can accept data)

Trait Implementations§

Write error
Writes a single word to the serial interface
Ensures that none of the previously written words are still buffered
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
Write error
Writes a single word to the serial interface
Ensures that none of the previously written words are still buffered
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 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

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.