InputPin

Trait InputPin 

Source
pub trait InputPin {
    type Error;

    // Required methods
    fn is_high(&self) -> Result<bool, Self::Error>;
    fn is_low(&self) -> Result<bool, Self::Error>;
}
Expand description

Single digital input pin

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

Required Associated Types§

Source

type Error

Error type

Required Methods§

Source

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

Is the input pin high?

Source

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

Is the input pin low?

Implementors§

Source§

impl InputPin for ErasedPin<Output<OpenDrain>>

Source§

impl<HL, const P: char, const N: u8> InputPin for Pin<Output<OpenDrain>, HL, P, N>

Source§

impl<MODE> InputPin for ErasedPin<Input<MODE>>

Source§

impl<MODE, HL, const P: char, const N: u8> InputPin for Pin<Input<MODE>, HL, P, N>

Source§

impl<MODE, const P: char> InputPin for PartiallyErasedPin<Input<MODE>, P>

Source§

impl<T> InputPin for T
where T: InputPin,

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

Source§

impl<const P: char> InputPin for PartiallyErasedPin<Output<OpenDrain>, P>