Struct ruspiro_gpio::Pin [−][src]
pub struct Pin<FUNCTION, PUD> { /* fields omitted */ }
Expand description
Representation of a GPIO pin that can have specific features. Those features are described with generic arguments to define the pin e.g. as an output pin with disabled PullUp/Down.
Implementations
Functions available for any kind of pin
Create a new Pin
with an unknown function and PUD settings.
switch any pin into an input pin
switch any pin into an output pin
switch any pin into a pin with active alt function 0
switch any pin into a pin with active alt function 0
switch any pin into a pin with active alt function 0
switch any pin into a pin with active alt function 0
switch any pin into a pin with active alt function 0
switch any pin into a pin with active alt function 0
Disable PullUp/Down for the pin
Enable PullUp for the pin
Enable PullDown for the pin
Functions available only for an Output pin with any PUD setting