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§
Required Methods§
Sourcefn into_pull_up_input_pin(self) -> Result<Self::PullUpInputPin, Self::Error>
fn into_pull_up_input_pin(self) -> Result<Self::PullUpInputPin, Self::Error>
Attempts to re-configure this pin into the new mode.