embassy-nxp

Crates

git

Versions

lpc55-core0

Flavors

Module gpio

Source
Expand description

General purpose input/output (GPIO) driver.

Structs§

AnyPin
Type-erased GPIO pin.
Flex
A flexible GPIO (digital mode) pin whose mode is not yet determined. Under the hood, this is a reference to a type-erased pin called “AnyPin”.
Input
GPIO input driver. Internally, this is a specialized Flex pin.
Output
GPIO output driver. Internally, this is a specialized Flex pin.

Enums§

Bank
The LPC55 boards have two GPIO banks, each with 32 pins. This enum represents the two banks.
Level
The GPIO pin level for pins set on “Digital” mode.
Pull
Pull setting for a GPIO input set on “Digital” mode.

Traits§

Pin
Interface for a Pin that can be configured by an Input or Output driver, or converted to an AnyPin. By default, this trait is sealed and cannot be implemented outside of the embassy-nxp crate due to the [SealedPin] trait.