Module stm32_hal2::gpio[][src]

This module provides functionality for General Purpose Input and Output (GPIO) pins, including all GPIOx register functions, and interrupts. It includes implementations of embedded-hal pin abstraction.

Structs

GpioA

Represents a single GPIO port, and owns its register block. Provides methods to enable the port. To change pin properties, pass its regs field as a mutable reference to GpioXPin methods.

GpioAPin

Represents a single GPIO pin. Provides methods that, when passed a mutable reference to its port’s register block, can change and read various properties of the pin.

GpioB

Represents a single GPIO port, and owns its register block. Provides methods to enable the port. To change pin properties, pass its regs field as a mutable reference to GpioXPin methods.

GpioBPin

Represents a single GPIO pin. Provides methods that, when passed a mutable reference to its port’s register block, can change and read various properties of the pin.

GpioC

Represents a single GPIO port, and owns its register block. Provides methods to enable the port. To change pin properties, pass its regs field as a mutable reference to GpioXPin methods.

GpioCPin

Represents a single GPIO pin. Provides methods that, when passed a mutable reference to its port’s register block, can change and read various properties of the pin.

GpioD

Represents a single GPIO port, and owns its register block. Provides methods to enable the port. To change pin properties, pass its regs field as a mutable reference to GpioXPin methods.

GpioDPin

Represents a single GPIO pin. Provides methods that, when passed a mutable reference to its port’s register block, can change and read various properties of the pin.

GpioE

Represents a single GPIO port, and owns its register block. Provides methods to enable the port. To change pin properties, pass its regs field as a mutable reference to GpioXPin methods.

GpioEPin

Represents a single GPIO pin. Provides methods that, when passed a mutable reference to its port’s register block, can change and read various properties of the pin.

Enums

AltFn

Values for GPIOx_AFRL and GPIOx_AFRH.

CfgLock

Values for `GPIOx_LCKR.

Edge
OutputSpeed

Values for GPIOx_OspeedrPEEDR

OutputType

Values for GPIOx_OTYPER

PinMode

Values for GPIOx_MODER

PinNum

Pin number; 0 through 15. For example, use 5 for PA5 or PB5.

PinState

Values for GPIOx_IDR and GPIOx_ODR.

PortLetter

GPIO port letter

Pull

Values for GPIOx_PUPDR

ResetState

Values for GPIOx_BRR.