Trait IntoPullUpInputPin

Source
pub trait IntoPullUpInputPin: Pin {
    type PullUpInputPin: InputPin<Error = Self::Error> + Unpin;

    // Required method
    fn into_pull_up_input_pin(self) -> Result<Self::PullUpInputPin, Self::Error>;
}
Expand description

A pin that can be turned into an InputPin that has a pull-up resistor attached.

Required Associated Types§

Source

type PullUpInputPin: InputPin<Error = Self::Error> + Unpin

The type of an InputPin that has a pull-up resistor attached.

Required Methods§

Source

fn into_pull_up_input_pin(self) -> Result<Self::PullUpInputPin, Self::Error>

Attempts to re-configure this pin into the new mode.

Implementors§