Struct stm32f4xx_hal::serial::Tx[][src]

pub struct Tx<USART, WORD = u8> { /* fields omitted */ }
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.

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

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.

Write error

Ensures that none of the previously written words are still buffered

Writes a single word to the serial interface

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

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

Performs the conversion.

Performs the conversion.

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.