[][src]Trait stm32f1xx_hal::prelude::_embedded_hal_digital_InputPin

pub trait _embedded_hal_digital_InputPin {
    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.

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

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?

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?

Loading content...

Implementations on Foreign Types

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

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

Loading content...

Implementors

Loading content...