Module gpio

Source
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§

InputPin
A pin that can be read from.
InputPinExt
Extension functions for instances of InputPin.
IntoFloatingInputPin
A pin that can be turned into an InputPin that does not employ any pull-up or pull-down resistors.
IntoOpenDrainOutputPin
A pin that can be turned into an OutputPin that is in open drain mode.
IntoPullDownInputPin
A pin that can be turned into an InputPin that has a pull-down resistor attached.
IntoPullUpInputPin
A pin that can be turned into an InputPin that has a pull-up resistor attached.
IntoPushPullOutputPin
A pin that can be turned into an OutputPin that is in push-pull mode.
OutputPin
A pin that can be written to.
OutputPinExt
Extension functions for instances of OutputPin.
Pin
A generic pin that can’t be interacted with.