[][src]Module trinket_m0::sercom::v1::pads

Version 1 of the SERCOM pads module

This module is a compatibility shim that allows existing code to use the new v2 module. This API will eventually be deprecated and removed.

In the previous API, a macro defined implementations of PadPin between each valid pin/pad pair. And each pad type used a type parameter to indicate the pin type stored within it.

In the new API, the Map trait is used to map Pins to Pads, and the stored Pin type is derived from it. To implement the old API using the new API, we must transfer the implementations of Map to the configured Pin types.

The remaining documentation in this module comes from the original API.

Structs

Pad

Represents a SERCOM Pad configured to use a particular pin

Enums

Pad0

Represents the corresponding SERCOM pad number

Pad1

Represents the corresponding SERCOM pad number

Pad2

Represents the corresponding SERCOM pad number

Pad3

Represents the corresponding SERCOM pad number

Sercom0

Represents the corresponding SERCOM instance

Sercom1

Represents the corresponding SERCOM instance

Sercom2

Represents the corresponding SERCOM instance

Sercom3

Represents the corresponding SERCOM instance

Traits

AnyPad

Meta-type representing any Pad

Map

Type-level function mapping Pads to Pins

OptionalPad

Meta-type representing an optional Pad.

PadNum

Type-level enum representing a SERCOM pad number

PadPin

The PadPin trait makes it more ergonomic to convert a pin into a Sercom pad. You should not implement this trait for yourself; only the implementations in the sercom module make sense.

Sercom

Type-level enum representing a Serial Communication Interface (SERCOM)

SomePad

Meta-type representing a valid Pad.

Type Definitions

ConcretePad

Type alias to convert from an implementation of AnyPad to the corresponding concrete Pad

SERCOM

Type alias to extract the correct PAC SERCOM type from the Sercom instance

Sercom0Pad0

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom0Pad1

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom0Pad2

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom0Pad3

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom1Pad0

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom1Pad1

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom1Pad2

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom1Pad3

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom2Pad0

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom2Pad1

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom2Pad2

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom2Pad3

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom3Pad0

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom3Pad1

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom3Pad2

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.

Sercom3Pad3

Represents a numbered pad for the associated sercom instance. The pad is generic over any pin, only the PadPin implementations in this the sercom module make sense.