Struct serpente::sercom::v2::spi::Pads [−][src]
pub struct Pads<S, DI = NoneT, DO = NoneT, CK = NoneT, SS = NoneT> where
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad, { /* fields omitted */ }
Expand description
Container for a set of SERCOM pads
See the module-level documentation for more details on specifying
a Pads
type and creating instances.
Implementations
impl<S, DI, DO, CK, SS> Pads<S, DI, DO, CK, SS> where
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
impl<S, DI, DO, CK, SS> Pads<S, DI, DO, CK, SS> where
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
impl<S, DI, DO, CK, SS> Pads<S, DI, DO, CK, SS> where
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
impl<S, DI, DO, CK, SS> Pads<S, DI, DO, CK, SS> where
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
Set the DI
pad
In a MasterMode
, this is MISO. In Slave
OpMode
, this is
MOSI.
Set the DO
pad
In a MasterMode
, this is MOSI. In Slave
OpMode
, this is
MISO.
Set the SCK
pad
Trait Implementations
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.
Configure the pad according to Self::DIPO
and Self::DOPO