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

Push-pull output pin that can read its output state.

Required Methods§

source

fn is_set_high(&self) -> Result<bool, Self::Error>

Is the pin in drive high mode?

NOTE this does not read the electrical state of the pin.

source

fn is_set_low(&self) -> Result<bool, Self::Error>

Is the pin in drive low mode?

NOTE this does not read the electrical state of the pin.

Implementations on Foreign Types§

source§

impl<T: StatefulOutputPin + ?Sized> StatefulOutputPin for &mut T

source§

fn is_set_high(&self) -> Result<bool, Self::Error>

source§

fn is_set_low(&self) -> Result<bool, Self::Error>

Implementors§