pub trait _embedded_hal_digital_v2_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<MODE> InputPin for AnyPin<Input<MODE>>

source§

impl<MODE, const GPIONUM: u8> InputPin for GpioPin<Input<MODE>, GPIONUM>
where GpioPin<Input<MODE>, GPIONUM>: GpioProperties,

source§

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

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

§

type Error = ()

source§

impl<const GPIONUM: u8> InputPin for GpioPin<Output<OpenDrain>, GPIONUM>