pub struct UART3<RX, TX, RTS, CTS> { /* fields omitted */ }
👎 Deprecated since 0.13.0:

The sercom::v1::uart module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::uart module instead.

Expand description

UARTX represents the corresponding SERCOMX instance configured to act in the role of a UART Master. Objects of this type implement the HAL serial::Read, serial::Write traits.

This type is generic over any valid pad mapping where there is a defined “receive pin out transmit pin out” implementation.

Implementations

👎 Deprecated since 0.13.0:

The sercom::v1::uart module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::uart module instead.

Power on and configure SERCOMX to work as a UART Master operating with the specified frequency. The padout specifies which pins are bound to the RX, TX and optionally RTS and CTS functions.

You can use any tuple of two or four SercomXPadY instances for which there exists a From implementation for UARTXPadout.

👎 Deprecated since 0.13.0:

The sercom::v1::uart module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::uart module instead.

👎 Deprecated since 0.13.0:

The sercom::v1::uart module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::uart module instead.

Splits the UART into transmit and receive halves

👎 Deprecated since 0.13.0:

The sercom::v1::uart module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::uart module instead.

Combines transmit and receive halves back into a duplex UART

👎 Deprecated since 0.13.0:

The sercom::v1::uart module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::uart module instead.

👎 Deprecated since 0.13.0:

The sercom::v1::uart module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::uart module instead.

👎 Deprecated since 0.13.0:

The sercom::v1::uart module is deprecated, and will be removed in a subsequent release. Please use the sercom::v2::uart module instead.

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

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.

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.

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