Trait stm32l4xx_hal::prelude::InputPin
source · [−]pub trait InputPin {
type Error;
fn is_high(&self) -> Result<bool, Self::Error>;
fn is_low(&self) -> Result<bool, Self::Error>;
}
Expand description
Single digital input pin
This trait is available if embedded-hal is built with the "unproven"
feature.
Associated Types
Required methods
Implementors
sourceimpl<HL, const P: char, const N: u8> InputPin for Pin<Output<OpenDrain>, HL, P, N>
impl<HL, const P: char, const N: u8> InputPin for Pin<Output<OpenDrain>, HL, P, N>
type Error = Infallible
sourceimpl<MODE, HL, const P: char, const N: u8> InputPin for Pin<Input<MODE>, HL, P, N>
impl<MODE, HL, const P: char, const N: u8> InputPin for Pin<Input<MODE>, HL, P, N>
type Error = Infallible
sourceimpl<MODE, const P: char> InputPin for PartiallyErasedPin<Input<MODE>, P>
impl<MODE, const P: char> InputPin for PartiallyErasedPin<Input<MODE>, P>
type Error = Infallible
sourceimpl<T> InputPin for T where
T: InputPin,
impl<T> InputPin for T where
T: InputPin,
Implementation of fallible v2::InputPin
for v1::InputPin
digital traits