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§
Structs§
- Event
Type - Represents GPIO interrupt events.
Enums§
- Direction
- Defines the direction of a GPIO pin.
- Event
Trigger - Defines the trigger condition for an external interrupt.
- Output
Mode - Defines the output mode of a GPIO pin.
- Pull
Resistor - 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) | pinfor multiple ports. - Result
- A specialized Result type for GPIO operations.