[][src]Trait embedded_hal::digital::v2::StatefulOutputPin

pub trait StatefulOutputPin: OutputPin {
    pub fn is_set_high(&self) -> Result<bool, Self::Error>;
pub fn is_set_low(&self) -> Result<bool, Self::Error>; }

Push-pull output pin that can read its output state

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

Required methods

pub fn is_set_high(&self) -> Result<bool, Self::Error>[src]

Is the pin in drive high mode?

NOTE this does not read the electrical state of the pin

pub fn is_set_low(&self) -> Result<bool, Self::Error>[src]

Is the pin in drive low mode?

NOTE this does not read the electrical state of the pin

Loading content...

Implementors

impl<T> StatefulOutputPin for T where
    T: StatefulOutputPin + OutputPin
[src]

Implementation of fallible v2::StatefulOutputPin for v1::StatefulOutputPin digital traits

Loading content...