pub struct Padout<S, RX, TX, RTS, CTS> where
S: Sercom, { /* 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
A pad mapping configuration for the SERCOM in UART mode.
This type can only be constructed using the From implementations in this module, which are restricted to valid configurations.
Defines which sercom pad is mapped to which UART function.
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.
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 padout 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 padout
Trait Implementations
impl<S, PAD0, PAD1, PAD2, PAD3> From<(PAD0, PAD1, PAD2, PAD3)> for Padout<S, PAD0, PAD1, PAD2, PAD3> where
S: Sercom,
PAD0: CompatiblePad<Sercom = S>,
PAD1: CompatiblePad<Sercom = S>,
PAD2: CompatiblePad<Sercom = S>,
PAD3: CompatiblePad<Sercom = S>,
(<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum, <PAD2 as CompatiblePad>::PadNum, <PAD3 as CompatiblePad>::PadNum): RxpoTxpo,
impl<S, PAD0, PAD1, PAD2, PAD3> From<(PAD0, PAD1, PAD2, PAD3)> for Padout<S, PAD0, PAD1, PAD2, PAD3> where
S: Sercom,
PAD0: CompatiblePad<Sercom = S>,
PAD1: CompatiblePad<Sercom = S>,
PAD2: CompatiblePad<Sercom = S>,
PAD3: CompatiblePad<Sercom = S>,
(<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum, <PAD2 as CompatiblePad>::PadNum, <PAD3 as CompatiblePad>::PadNum): RxpoTxpo,
Convert from a tuple of (RX, TX, RTS, CTS) to UARTXPadout
impl<S, PAD0, PAD1> From<(PAD0, PAD1)> for Padout<S, PAD0, PAD1, (), ()> where
S: Sercom,
PAD0: CompatiblePad<Sercom = S>,
PAD1: CompatiblePad<Sercom = S>,
(<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum): RxpoTxpo,
impl<S, PAD0, PAD1> From<(PAD0, PAD1)> for Padout<S, PAD0, PAD1, (), ()> where
S: Sercom,
PAD0: CompatiblePad<Sercom = S>,
PAD1: CompatiblePad<Sercom = S>,
(<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum): RxpoTxpo,
Convert from a tuple of (RX, TX) to UARTXPadout
impl<S, PAD0, PAD1, PAD2, PAD3> RxpoTxpo for Padout<S, PAD0, PAD1, PAD2, PAD3> where
S: Sercom,
PAD0: CompatiblePad<Sercom = S>,
PAD1: CompatiblePad<Sercom = S>,
PAD2: CompatiblePad<Sercom = S>,
PAD3: CompatiblePad<Sercom = S>,
(<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum, <PAD2 as CompatiblePad>::PadNum, <PAD3 as CompatiblePad>::PadNum): RxpoTxpo,
impl<S, PAD0, PAD1, PAD2, PAD3> RxpoTxpo for Padout<S, PAD0, PAD1, PAD2, PAD3> where
S: Sercom,
PAD0: CompatiblePad<Sercom = S>,
PAD1: CompatiblePad<Sercom = S>,
PAD2: CompatiblePad<Sercom = S>,
PAD3: CompatiblePad<Sercom = S>,
(<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum, <PAD2 as CompatiblePad>::PadNum, <PAD3 as CompatiblePad>::PadNum): 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.
impl<S, PAD0, PAD1> RxpoTxpo for Padout<S, PAD0, PAD1, (), ()> where
S: Sercom,
PAD0: CompatiblePad<Sercom = S>,
PAD1: CompatiblePad<Sercom = S>,
(<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum): RxpoTxpo,
impl<S, PAD0, PAD1> RxpoTxpo for Padout<S, PAD0, PAD1, (), ()> where
S: Sercom,
PAD0: CompatiblePad<Sercom = S>,
PAD1: CompatiblePad<Sercom = S>,
(<PAD0 as CompatiblePad>::PadNum, <PAD1 as CompatiblePad>::PadNum): 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.
Auto Trait Implementations
impl<S, RX, TX, RTS, CTS> RefUnwindSafe for Padout<S, RX, TX, RTS, CTS> where
CTS: RefUnwindSafe,
RTS: RefUnwindSafe,
RX: RefUnwindSafe,
S: RefUnwindSafe,
TX: RefUnwindSafe,
impl<S, RX, TX, RTS, CTS> Send for Padout<S, RX, TX, RTS, CTS> where
CTS: Send,
RTS: Send,
RX: Send,
S: Send,
TX: Send,
impl<S, RX, TX, RTS, CTS> Sync for Padout<S, RX, TX, RTS, CTS> where
CTS: Sync,
RTS: Sync,
RX: Sync,
S: Sync,
TX: Sync,
impl<S, RX, TX, RTS, CTS> Unpin for Padout<S, RX, TX, RTS, CTS> where
CTS: Unpin,
RTS: Unpin,
RX: Unpin,
S: Unpin,
TX: Unpin,
impl<S, RX, TX, RTS, CTS> UnwindSafe for Padout<S, RX, TX, RTS, CTS> where
CTS: UnwindSafe,
RTS: UnwindSafe,
RX: UnwindSafe,
S: 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.