[][src]Module pygamer::sercom::v2

Version 2 of the SERCOM module

This module provides a new API for the SERCOM peripherals. So far, only the pads module has been updated, but it is expected that the uart, spi and i2c modules will receive updates as well.

Modules

pad_map

Implementations of the pads Map trait

pads

Version 2 of the SERCOM pads module

Structs

Pad

Represents a SERCOM Pad configured to use a particular pin

Pads

Tuple struct containing all four Pads for a given Sercom and IoSet

Enums

IoSet1

Represents the corresponding IOSET

IoSet2

Represents the corresponding IOSET

IoSet3

Represents the corresponding IOSET

IoSet4

Represents the corresponding IOSET

IoSet5

Represents the corresponding IOSET

IoSet6

Represents the corresponding IOSET

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

Sercom4

Represents the corresponding SERCOM instance

Sercom5

Represents the corresponding SERCOM instance

Traits

AnyPad

Meta-type representing any Pad

IoSet

Type-level enum representing a SERCOM IOSET configuration

Map

Type-level function mapping Pads to Pins

OptionalPad

Meta-type representing an optional Pad.

PadNum

Type-level enum representing a SERCOM pad number

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