Struct stm32f4xx_hal::serial::Serial[][src]

pub struct Serial<USART, PINS, WORD = u8> { /* fields omitted */ }
Expand description

Serial abstraction

Implementations

Starts listening for an interrupt event

Note, you will also have to enable the corresponding interrupt in the NVIC to start receiving events.

Stop listening for an interrupt event

Return true if the line idle status is set

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

👎 Deprecated since 0.10.0

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

Return true if the rx register is not empty (and can be read)

👎 Deprecated since 0.10.0

Return true if the rx register is not empty (and can be read)

Clear idle line interrupt flag

Converts this Serial into a version that can read and write u16 values instead of u8s

This can be used with a word length of 9 bits.

Converts this Serial into a version that can read and write u8 values instead of u16s

This can be used with a word length of 8 bits.

👎 Deprecated since 0.10.0
👎 Deprecated since 0.10.0
👎 Deprecated since 0.10.0
👎 Deprecated since 0.10.0
👎 Deprecated since 0.10.0
👎 Deprecated since 0.10.0
👎 Deprecated since 0.10.0
👎 Deprecated since 0.10.0

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Read error

Reads a single word from the serial interface

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

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

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

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.