pub trait 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 InputPin for P0_00<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_01<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_02<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_03<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_04<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_05<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_06<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_07<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_08<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_09<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_10<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_11<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_12<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_13<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_14<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_15<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_16<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_17<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_18<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_19<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_20<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_21<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_22<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_23<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_24<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_25<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_26<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_27<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_28<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_29<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_30<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for P0_31<Output<OpenDrainIO>>

§

type Error = Void

source§

impl InputPin for Pin<Output<OpenDrainIO>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_00<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_01<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_02<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_03<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_04<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_05<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_06<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_07<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_08<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_09<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_10<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_11<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_12<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_13<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_14<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_15<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_16<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_17<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_18<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_19<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_20<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_21<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_22<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_23<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_24<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_25<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_26<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_27<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_28<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_29<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_30<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for P0_31<Input<MODE>>

§

type Error = Void

source§

impl<MODE> InputPin for Pin<Input<MODE>>

§

type Error = Void

source§

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

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

§

type Error = ()