Expand description
Configure the RXPO
and TXPO
fields based on a set of Pads
According to the datasheet, the RXPO
and TXPO
values specify which
SERCOM pads are used for various functions. Moreover, depending on which
pads are actually in use, only certain combinations of these values make
sense and are valid.
This trait is implemented for valid, four-tuple combinations of
OptionalPadNum
s. Those implementations are then lifted to the
corresponding Pads
types.
To satisfy this trait, the combination of OptionalPadNum
s must specify
PadNum
for at least one of RX
and TX
. Furthermore, no
two PadNum
s can conflict.
Required Associated Constants
Implementations on Foreign Types
Implementors
sourceimpl<S, RX, TX, RTS, CTS> RxpoTxpo for Pads<S, RX, TX, RTS, CTS>where
S: Sercom,
RX: OptionalPad,
TX: OptionalPad,
RTS: OptionalPad,
CTS: OptionalPad,
(RX::PadNum, TX::PadNum, RTS::PadNum, CTS::PadNum): RxpoTxpo,
impl<S, RX, TX, RTS, CTS> RxpoTxpo for Pads<S, RX, TX, RTS, CTS>where
S: Sercom,
RX: OptionalPad,
TX: OptionalPad,
RTS: OptionalPad,
CTS: OptionalPad,
(RX::PadNum, TX::PadNum, RTS::PadNum, CTS::PadNum): RxpoTxpo,
Lift the implementations of RxpoTxpo
from four-tuples of
OptionalPadNum
s to the corresponding Pads
types.