pub struct Pads<S, DI = NoneT, DO = NoneT, CK = NoneT, SS = NoneT>where
    S: Sercom,
    DI: OptionalPad,
    DO: OptionalPad,
    CK: OptionalPad,
    SS: OptionalPad,
{ /* private fields */ }
Expand description

Container for a set of SERCOM pads

See the module-level documentation for more details on declaring and instantiating Pads types.

Implementations

Consume the Pads and return each individual Pin

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

Set the SS pad

Trait Implementations

Returns the “default value” for a type. Read more

Lift the implementations of DipoDopo from four-tuples of OptionalPadNums to the corresponding Pads types.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.