Expand description
HIL for General Purpose Input-Output (GPIO) pins.
Structs§
- Interrupt
Value Wrapper - Standard implementation of InterruptWithValue: handles an
gpio::Client::fired
and passes it up as agpio::ClientWithValue::fired
.
Enums§
- Activation
Mode - Whether a GPIO is in the
ActivationState::Active
when the signal is high or low. - Activation
State - Some GPIOs can be semantically active or not. For example:
- Configuration
- Enum for which state the pin is in.
- Floating
State - Enum for configuring any pull-up or pull-down resistors on the GPIO pin.
- Interrupt
Edge - Enum for selecting which edge to trigger interrupts on.
Traits§
- Client
- Interface for users of synchronous GPIO interrupts. In order
to receive interrupts, the user must implement
this
Client
interface. - Client
With Value - Interfaces for users of GPIO interrupts who handle many interrupts with the same function. The value passed in the callback allows the callback to distinguish which interrupt fired.
- Configure
- Control and configure a GPIO pin.
- Configure
Input Output - Configuration trait for pins that can be simultaneously input and output. Having this trait allows an implementation to statically verify this is possible.
- Input
- Interrupt
- Interrupt
Pin - The InterruptPin trait allows a pin to be used as either input or output and also to source interrupts.
- Interrupt
Value Pin - The InterruptValuePin trait allows a pin to be used as either input or output and also to source interrupts which pass a value.
- Interrupt
With Value - Interface that wraps an interrupt to pass a value when it triggers.
- Output
- Pin
- The Pin trait allows a pin to be used as either input or output and to be configured.