Struct esp32c2_hal::Serial

source ·
pub struct Serial<T> { /* private fields */ }
Expand description

UART driver

Implementations

Create a new UART instance with defaults

Create a new UART instance with defaults

Return the raw interface to the underlying UART instance

Writes bytes

Configures the AT-CMD detection settings.

Configures the RX-FIFO threshold

Listen for AT-CMD interrupts

Stop listening for AT-CMD interrupts

Listen for TX-DONE interrupts

Stop listening for TX-DONE interrupts

Listen for RX-FIFO-FULL interrupts

Stop listening for RX-FIFO-FULL interrupts

Checks if AT-CMD interrupt is set

Checks if TX-DONE interrupt is set

Checks if RX-FIFO-FULL interrupt is set

Reset AT-CMD interrupt

Reset TX-DONE interrupt

Reset RX-FIFO-FULL interrupt

Change the number of stop bits

Trait Implementations

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