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

pub trait StatefulOutputPin {
    fn is_set_high(&self) -> bool;
fn is_set_low(&self) -> bool; }

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

fn is_set_high(&self) -> bool

Is the pin in drive high mode?

NOTE this does not read the electrical state of the pin

fn is_set_low(&self) -> bool

Is the pin in drive low mode?

NOTE this does not read the electrical state of the pin

Loading content...

Implementors

Loading content...