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
This trait is available if embedded-hal is built with the "unproven" feature.
Required Methods§
Sourcefn is_set_high(&self) -> Result<bool, Self::Error>
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
Sourcefn is_set_low(&self) -> Result<bool, Self::Error>
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
Implementors§
impl<MODE> StatefulOutputPin for ErasedPin<Output<MODE>>
impl<MODE, HL, const P: char, const N: u8> StatefulOutputPin for Pin<Output<MODE>, HL, P, N>
impl<MODE, const P: char> StatefulOutputPin for PartiallyErasedPin<Output<MODE>, P>
impl<T> StatefulOutputPin for Twhere
T: StatefulOutputPin + OutputPin,
Implementation of fallible v2::StatefulOutputPin for v1::StatefulOutputPin digital traits