pub trait StatefulOutputPin {
    // Required methods
    fn is_set_high(&self) -> bool;
    fn is_set_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

Push-pull output pin that can read its output state

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 StatefulOutputPin trait in digital::v2::StatefulOutputPin.

Required Methods§

source

fn is_set_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 pin in drive high mode?

NOTE this does not read the electrical state of the pin

source

fn is_set_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 pin in drive low mode?

NOTE this does not read the electrical state of the pin

Implementors§

source§

impl<T, E> StatefulOutputPin for OldOutputPin<T>where T: StatefulOutputPin<Error = E>, E: Debug,

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