pub struct Serial<USART, TXPIN, RXPIN> { /* private fields */ }
Expand description

Serial abstraction

Implementations

Configures the USART and creates a new Serial instance.

Separates the serial struct into separate channel objects for sending (Tx) and receiving (Rx).

Configures the USART and creates a new TX-only Serial instance.

Erase the pin.

Configures the USART and creates a new RX-only Serial instance.

Erase the pin.

Enable an interrupt event.

Disable an interrupt event.

Trait Implementations

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

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.