Trait serpente::sercom::v2::spi::DipoDopo [−][src]
Expand description
Configure the DIPO
and DOPO
fields based on a set of Pads
According to the datasheet, the DIPO
and DOPO
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 a
PadNum
for CK
and at least one of DI
and DO
. Furthermore, no two
PadNum
s can conflict.
Associated Constants
Provided methods
Configure the pad according to Self::DIPO
and Self::DOPO
Implementations on Foreign Types
Implementors
impl<S, DI, DO, CK, SS> DipoDopo for Pads<S, DI, DO, CK, SS> where
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
(<DI as OptionalPad>::PadNum, <DO as OptionalPad>::PadNum, <CK as OptionalPad>::PadNum, <SS as OptionalPad>::PadNum): DipoDopo,
impl<S, DI, DO, CK, SS> DipoDopo for Pads<S, DI, DO, CK, SS> where
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
(<DI as OptionalPad>::PadNum, <DO as OptionalPad>::PadNum, <CK as OptionalPad>::PadNum, <SS as OptionalPad>::PadNum): DipoDopo,
Lift the implementations of DipoDopo
from four-tuples of
OptionalPadNum
s to the corresponding Pads
types.