Trait _embedded_hal_digital_InputPin

Source
pub trait _embedded_hal_digital_InputPin {
    type Error;

    // Required methods
    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.

Required Associated Types§

Source

type Error

Error type

Required Methods§

Source

fn is_high(&self) -> Result<bool, Self::Error>

Is the input pin high?

Source

fn is_low(&self) -> Result<bool, Self::Error>

Is the input pin low?

Implementors§

Source§

impl<Gpio, Index, Mode> InputPin for Pin<Gpio, Index, Mode>
where Gpio: Gpio, Index: Index, Mode: Readable,

Source§

impl<T> InputPin for T
where T: InputPin,

Implementation of fallible v2::InputPin for v1::InputPin digital traits