Module gpio

Module gpio 

Expand description

Provides consistent GPIO access.

§Note

To use the same GPIO pin as an input and an output alternatively, you can use .reborrow() on the HAL pin type to give an instance of the pin peripheral with a shorter lifetime (a “child” pin instance) to Output::new() and Input::new().

Make sure to drop both the driver and the “child” pin instance before using the pin in another driver as some HALs require it while others don’t enforce it.

Modules§

input
Input-specific types.
output
Output-specific types.

Structs§

Input
A GPIO input.
IntEnabledInputexternal-interrupts
A GPIO input that supports external interrupts.
Output
A GPIO output.

Enums§

DriveStrength
Drive strength of an output.
Level
Digital level of an input or output.
Pull
Pull-up/pull-down resistor configuration.
Speed
Speed setting of an output.