Struct serpente::sercom::UART3 [−][src]
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,
pm: &mut PM,
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,
👎 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.
pub fn new<F, T>(
clock: &Sercom3CoreClock,
freq: F,
sercom: SERCOM3,
pm: &mut PM,
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.
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.
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