Module gpio

Source
Expand description

§GPIO Driver

Provides a hardware abstraction layer for General Purpose Input/Output (GPIO) pins on STM32 microcontrollers.

This module defines the GPIO trait and supporting types for pin configuration, interrupt handling, and digital I/O operations across different STM32 families.

Modules§

stm32f103
stm32f401
stm32f407
stm32f411

Structs§

EventType
Represents GPIO interrupt events.

Enums§

Direction
Defines the direction of a GPIO pin.
EventTrigger
Defines the trigger condition for an external interrupt.
OutputMode
Defines the output mode of a GPIO pin.
PullResistor
Defines the internal pull-up or pull-down resistor configuration.

Traits§

Gpio
A trait that defines a standard interface for a GPIO driver. This trait manages a collection of GPIO pins.

Type Aliases§

Error
A generic error type for the GPIO driver, using i32 for error codes.
Pin
Represents a GPIO pin identifier. The interpretation of this identifier is implementation-specific. For example, it could be a simple number (0-15) for a single port, or a value like (port << 4) | pin for multiple ports.
Result
A specialized Result type for GPIO operations.