Struct grand_central_m4::sercom::v2::spi::Pads [−][src]
pub struct Pads<S, I, DI = NoneT, DO = NoneT, CK = NoneT, SS = NoneT> where
I: IoSet,
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, I, DI, DO, CK, SS> Pads<S, I, DI, DO, CK, SS> where
I: IoSet,
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
impl<S, I, DI, DO, CK, SS> Pads<S, I, DI, DO, CK, SS> where
I: IoSet,
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, which is always Pad1
Set the SS
pad, which is always Pad2
Trait Implementations
impl<S, I, DI, DO, CK, SS> Dipo for Pads<S, I, DI, DO, CK, SS> where
I: IoSet,
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
<DI as OptionalPad>::PadNum: Dipo,
impl<S, I, DI, DO, CK, SS> Dipo for Pads<S, I, DI, DO, CK, SS> where
I: IoSet,
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
<DI as OptionalPad>::PadNum: Dipo,
Lift the implementations of Dipo
from OptionalPadNum
s to the
corresponding Pads
types.
Configure the pad according to Self::DIPO
impl<S, I, DI, DO, CK, SS> Dopo for Pads<S, I, DI, DO, CK, SS> where
I: IoSet,
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
<DO as OptionalPad>::PadNum: Dopo,
impl<S, I, DI, DO, CK, SS> Dopo for Pads<S, I, DI, DO, CK, SS> where
I: IoSet,
S: Sercom,
SS: OptionalPad,
DI: OptionalPad,
DO: OptionalPad,
CK: OptionalPad,
<DO as OptionalPad>::PadNum: Dopo,
Lift the implementations of Dopo
from OptionalPadNum
s to the
corresponding Pads
types.
Configure the pad according to Self::DOPO