Module serpente::sercom::v2

source ·
Expand description

Version 2 of the SERCOM module

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

Modules

  • Type-level tools to configure SERCOM pads
  • Use a SERCOM peripheral for SPI transactions
  • A Future-like interface for SPI transactions
  • Use the SERCOM peripheral for UART communications

Enums

  • Type-level variant of PadNum representing SERCOM pad 0
  • Type-level variant of PadNum representing SERCOM pad 1
  • Type-level variant of PadNum representing SERCOM pad 2
  • Type-level variant of PadNum representing SERCOM pad 3

Traits

Type Definitions

  • Type alias to recover a Pin configured as a SERCOM pad in the correct PadMode
  • Type alias using GetPad to recover the PinMode for a given SERCOM pad
  • Type alias for the corresponding SERCOM instance
  • Type alias for the corresponding SERCOM instance
  • Type alias for the corresponding SERCOM instance
  • Type alias for the corresponding SERCOM instance