pub struct Tx<USART, WORD = u8> { /* private fields */ }
Expand description

Serial transmitter

Implementations

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)

Trait Implementations

Performs the conversion.

Performs the conversion.

Error type

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

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.

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 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.

Writes a single word to the serial interface

Ensures that none of the previously written words are still buffered

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 single word to the serial interface

Ensures that none of the previously written words are still buffered

Writes a slice, blocking until everything has been written Read more

Block until the serial interface has sent all buffered words

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.

Should always be Self

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.