Trait _embedded_hal_digital_InputPin

Source
pub trait _embedded_hal_digital_InputPin {
    // Required methods
    fn is_high(&self) -> bool;
    fn is_low(&self) -> bool;
}
๐Ÿ‘ŽDeprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Expand description

Single digital input pin

This trait is available if embedded-hal is built with the "unproven" feature.

This version of the trait is now deprecated. Please use the new InputPin trait in digital::v2::InputPin.

Required Methodsยง

Source

fn is_high(&self) -> bool

๐Ÿ‘ŽDeprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.

Is the input pin high?

Source

fn is_low(&self) -> bool

๐Ÿ‘ŽDeprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.

Is the input pin low?

Implementorsยง

Sourceยง

impl<MODE> InputPin for PA0<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA1<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA2<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA3<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA4<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA5<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA6<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA7<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA8<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA9<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA10<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA11<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA12<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA13<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA14<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA15<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PA<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB0<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB1<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB2<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB3<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB4<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB5<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB6<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB7<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB8<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB9<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB10<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB11<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB12<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB13<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB14<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB15<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PB<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PC13<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PC14<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PC15<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PC<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PF0<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PF1<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PF11<Input<MODE>>

Sourceยง

impl<MODE> InputPin for PF<Input<MODE>>

Sourceยง

impl<T, E> InputPin for OldInputPin<T>
where T: InputPin<Error = E>, E: Debug,

Implementation of v1::InputPin trait for v2::InputPin fallible pins where errors will panic.