Module grand_central_m4::gpio::v1[][src]

👎 Deprecated since 0.13.0:

The gpio::v1 module is deprecated, and will be removed in a subsequent release. Please use the gpio::v2 module instead.

Expand description

Version 1 of the GPIO 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.

Working with GPIO pins. The pins are associated with the PORT hardware. This module defines a split method on the PORT type that is used to safely reference the individual pin configuration. The IO pins can be switched into alternate function modes, which routes the pins to different peripherals depending on the mode for the pin. The pin configuration is reflected through the use of type states to make the interface (ideally, or at least practically) impossible to misuse.

Structs

PartsDeprecated

Holds the GPIO Port peripheral and broken out pin instances

PinDeprecated

Represents a GPIO pin with a corresponding PinId and PinMode

PortDeprecated

Opaque port reference

Traits

GpioExtDeprecated

The GpioExt trait allows splitting the PORT hardware into its constituent pin parts.

IntoFunctionDeprecated

A trait that makes it easier to generically manage converting a pin from its current state into some other functional mode. The configuration change requires exclusive access to the Port hardware, which is why this isn’t simply the standard Into trait.

Type-level enum for pin IDs

Type-level enum representing pin modes

Type Definitions

FloatingDeprecated

Floating Input

InputDeprecated

Represents a pin configured for input. The MODE type is typically one of Floating, PullDown or PullUp.

InterruptDeprecated

Represents a pin configured for interrupt. The MODE type is one of Floating, PullDown or PullUp.

OpenDrainDeprecated

Open drain output. The SAMD5x/E5x chips don’t actually have open drain outputs. This option was added by mistake. It is currently an alias of PushPull

OutputDeprecated

Represents a pin configured for output. The MODE type is typically one of PushPull, or OpenDrain.

Pa0Deprecated

Represents the IO pin with the matching name

Pa1Deprecated

Represents the IO pin with the matching name

Pa2Deprecated

Represents the IO pin with the matching name

Pa3Deprecated

Represents the IO pin with the matching name

Pa4Deprecated

Represents the IO pin with the matching name

Pa5Deprecated

Represents the IO pin with the matching name

Pa6Deprecated

Represents the IO pin with the matching name

Pa7Deprecated

Represents the IO pin with the matching name

Pa8Deprecated

Represents the IO pin with the matching name

Pa9Deprecated

Represents the IO pin with the matching name

Pa10Deprecated

Represents the IO pin with the matching name

Pa11Deprecated

Represents the IO pin with the matching name

Pa12Deprecated

Represents the IO pin with the matching name

Pa13Deprecated

Represents the IO pin with the matching name

Pa14Deprecated

Represents the IO pin with the matching name

Pa15Deprecated

Represents the IO pin with the matching name

Pa16Deprecated

Represents the IO pin with the matching name

Pa17Deprecated

Represents the IO pin with the matching name

Pa18Deprecated

Represents the IO pin with the matching name

Pa19Deprecated

Represents the IO pin with the matching name

Pa20Deprecated

Represents the IO pin with the matching name

Pa21Deprecated

Represents the IO pin with the matching name

Pa22Deprecated

Represents the IO pin with the matching name

Pa23Deprecated

Represents the IO pin with the matching name

Pa24Deprecated

Represents the IO pin with the matching name

Pa25Deprecated

Represents the IO pin with the matching name

Pa27Deprecated

Represents the IO pin with the matching name

Pa30Deprecated

Represents the IO pin with the matching name

Pa31Deprecated

Represents the IO pin with the matching name

Pb0Deprecated

Represents the IO pin with the matching name

Pb1Deprecated

Represents the IO pin with the matching name

Pb2Deprecated

Represents the IO pin with the matching name

Pb3Deprecated

Represents the IO pin with the matching name

Pb4Deprecated

Represents the IO pin with the matching name

Pb5Deprecated

Represents the IO pin with the matching name

Pb6Deprecated

Represents the IO pin with the matching name

Pb7Deprecated

Represents the IO pin with the matching name

Pb8Deprecated

Represents the IO pin with the matching name

Pb9Deprecated

Represents the IO pin with the matching name

Pb10Deprecated

Represents the IO pin with the matching name

Pb11Deprecated

Represents the IO pin with the matching name

Pb12Deprecated

Represents the IO pin with the matching name

Pb13Deprecated

Represents the IO pin with the matching name

Pb14Deprecated

Represents the IO pin with the matching name

Pb15Deprecated

Represents the IO pin with the matching name

Pb16Deprecated

Represents the IO pin with the matching name

Pb17Deprecated

Represents the IO pin with the matching name

Pb18Deprecated

Represents the IO pin with the matching name

Pb19Deprecated

Represents the IO pin with the matching name

Pb20Deprecated

Represents the IO pin with the matching name

Pb21Deprecated

Represents the IO pin with the matching name

Pb22Deprecated

Represents the IO pin with the matching name

Pb23Deprecated

Represents the IO pin with the matching name

Pb24Deprecated

Represents the IO pin with the matching name

Pb25Deprecated

Represents the IO pin with the matching name

Pb26Deprecated

Represents the IO pin with the matching name

Pb27Deprecated

Represents the IO pin with the matching name

Pb28Deprecated

Represents the IO pin with the matching name

Pb29Deprecated

Represents the IO pin with the matching name

Pb30Deprecated

Represents the IO pin with the matching name

Pb31Deprecated

Represents the IO pin with the matching name

Pc0Deprecated

Represents the IO pin with the matching name

Pc1Deprecated

Represents the IO pin with the matching name

Pc2Deprecated

Represents the IO pin with the matching name

Pc3Deprecated

Represents the IO pin with the matching name

Pc4Deprecated

Represents the IO pin with the matching name

Pc5Deprecated

Represents the IO pin with the matching name

Pc6Deprecated

Represents the IO pin with the matching name

Pc7Deprecated

Represents the IO pin with the matching name

Pc10Deprecated

Represents the IO pin with the matching name

Pc11Deprecated

Represents the IO pin with the matching name

Pc12Deprecated

Represents the IO pin with the matching name

Pc13Deprecated

Represents the IO pin with the matching name

Pc14Deprecated

Represents the IO pin with the matching name

Pc15Deprecated

Represents the IO pin with the matching name

Pc16Deprecated

Represents the IO pin with the matching name

Pc17Deprecated

Represents the IO pin with the matching name

Pc18Deprecated

Represents the IO pin with the matching name

Pc19Deprecated

Represents the IO pin with the matching name

Pc20Deprecated

Represents the IO pin with the matching name

Pc21Deprecated

Represents the IO pin with the matching name

Pc22Deprecated

Represents the IO pin with the matching name

Pc23Deprecated

Represents the IO pin with the matching name

Pc24Deprecated

Represents the IO pin with the matching name

Pc25Deprecated

Represents the IO pin with the matching name

Pc26Deprecated

Represents the IO pin with the matching name

Pc27Deprecated

Represents the IO pin with the matching name

Pc28Deprecated

Represents the IO pin with the matching name

Pc30Deprecated

Represents the IO pin with the matching name

Pc31Deprecated

Represents the IO pin with the matching name

Pd0Deprecated

Represents the IO pin with the matching name

Pd1Deprecated

Represents the IO pin with the matching name

Pd8Deprecated

Represents the IO pin with the matching name

Pd9Deprecated

Represents the IO pin with the matching name

Pd10Deprecated

Represents the IO pin with the matching name

Pd11Deprecated

Represents the IO pin with the matching name

Pd12Deprecated

Represents the IO pin with the matching name

Pd20Deprecated

Represents the IO pin with the matching name

Pd21Deprecated

Represents the IO pin with the matching name

PfBDeprecated

Peripheral Function B

PfCDeprecated

Peripheral Function C

PfDDeprecated

Peripheral Function D

PfEDeprecated

Peripheral Function E

PfFDeprecated

Peripheral Function F

PfGDeprecated

Peripheral Function G

PfHDeprecated

Peripheral Function H

PfIDeprecated

Peripheral Function I

PfJDeprecated

Peripheral Function J

PfKDeprecated

Peripheral Function K

PfLDeprecated

Peripheral Function L

PfMDeprecated

Peripheral Function M

PfNDeprecated

Peripheral Function N

PullDownDeprecated

Pulled down Input

PullUpDeprecated

Pulled up Input

PushPullDeprecated

Totem Pole aka Push-Pull

Open drain output, which can be read when not driven The SAMD5x/E5x chips don’t actually have open drain outputs. This option actually represents a readable PushPull output

SpecificPinDeprecated

Type alias to recover the specific v1 Pin type from an implementation of AnyPin