pub struct UART3<RX, TX, RTS, CTS> { /* fields omitted */ }
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
pub fn new<F, T>(
clock: &Sercom3CoreClock,
freq: F,
sercom: SERCOM3,
mclk: &mut MCLK,
padout: T
) -> UART3<RX, TX, RTS, CTS> where
F: Into<Hertz>,
T: Into<Padout<SERCOM3, RX, TX, RTS, CTS>>,
Padout<SERCOM3, RX, TX, RTS, CTS>: RxpoTxpo,
The sercom::v1::uart
module is deprecated, and will be removed in a subsequent release.
Please use the sercom::v2::uart
module instead.
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.
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.
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
The sercom::v1::uart
module is deprecated, and will be removed in a subsequent release.
Please use the sercom::v2::uart
module instead.
The sercom::v1::uart
module is deprecated, and will be removed in a subsequent release.
Please use the sercom::v2::uart
module instead.
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
Writes a string slice into this writer, returning whether the write succeeded. Read more
Writes a single word to the serial interface
Auto Trait Implementations
impl<RX, TX, RTS, CTS> RefUnwindSafe for UART3<RX, TX, RTS, CTS> where
CTS: RefUnwindSafe,
RTS: RefUnwindSafe,
RX: RefUnwindSafe,
TX: RefUnwindSafe,
impl<RX, TX, RTS, CTS> Send for UART3<RX, TX, RTS, CTS> where
CTS: Send,
RTS: Send,
RX: Send,
TX: Send,
impl<RX, TX, RTS, CTS> Unpin for UART3<RX, TX, RTS, CTS> where
CTS: Unpin,
RTS: Unpin,
RX: Unpin,
TX: Unpin,
impl<RX, TX, RTS, CTS> UnwindSafe for UART3<RX, TX, RTS, CTS> where
CTS: UnwindSafe,
RTS: UnwindSafe,
RX: UnwindSafe,
TX: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.
Writes a slice, blocking until everything has been written Read more