Trait crabik_board::digital::StatefulOutputPin[][src]

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

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

pub fn is_set_high(&self) -> bool[src]

👎 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

pub fn is_set_low(&self) -> bool[src]

👎 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

Loading content...

Implementors

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

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

Loading content...