Trait embedded_hal::digital::v1::StatefulOutputPin
source · [−]pub trait StatefulOutputPin {
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
sourcefn is_set_high(&self) -> bool
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
sourcefn is_set_low(&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.
Is the pin in drive low mode?
NOTE this does not read the electrical state of the pin
Implementors
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.