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

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

Consume the Pads and return each individual Pin

Trait Implementations

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

Lift the implementations of Dipo from OptionalPadNums to the corresponding Pads types.

Corresponding variant from the PAC enum

Configure the pad according to Self::DIPO

Lift the implementations of Dopo from OptionalPadNums to the corresponding Pads types.

Corresponding variant from the PAC enum

Configure the pad according to Self::DOPO

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

Performs the conversion.

Performs the conversion.

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.