[][src]Module itsybitsy_m0::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

pads

Version 2 of the SERCOM pads module

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

Sercom4

Represents the corresponding SERCOM instance

Sercom5

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

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