Expand description
General input/output pins.
The InputPin and OutputPin traits define pins that can be read and written digitally
(i.e. either in a low or high state).
There are additionally various Into* traits that allow users to re-configure pins to switch
between different modes of operation, e.g. IntoFloatingInputPin turns a pin into an
InputPin that does not employ any pull-up or pull-down resistors.
Modules§
- get
- Defines futures for getting the value off of a GPIO pin.
- set
- Defines futures for setting the value of a GPIO pin.
Structs§
- NoConnect
- A virtual pin that is not actually connected to a physical pin.
Traits§
- Input
Pin - A pin that can be read from.
- Input
PinExt - Extension functions for instances of
InputPin. - Into
Floating Input Pin - A pin that can be turned into an
InputPinthat does not employ any pull-up or pull-down resistors. - Into
Open Drain Output Pin - A pin that can be turned into an
OutputPinthat is in open drain mode. - Into
Pull Down Input Pin - A pin that can be turned into an
InputPinthat has a pull-down resistor attached. - Into
Pull UpInput Pin - A pin that can be turned into an
InputPinthat has a pull-up resistor attached. - Into
Push Pull Output Pin - A pin that can be turned into an
OutputPinthat is in push-pull mode. - Output
Pin - A pin that can be written to.
- Output
PinExt - Extension functions for instances of
OutputPin. - Pin
- A generic pin that can’t be interacted with.