[][src]Trait esp8266_hal::prelude::_

pub trait _ {
    type Error;
    fn is_high(&self) -> Result<bool, Self::Error>;
fn is_low(&self) -> Result<bool, Self::Error>; }

Single digital input pin

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

Associated Types

type Error

Error type

Loading content...

Required methods

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

Is the input pin high?

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

Is the input pin low?

Loading content...

Implementors

impl InputPin for Gpio0<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio1<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio2<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio3<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio4<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio5<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio6<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio7<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio8<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio9<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio10<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio11<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio12<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio13<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio14<Output<OpenDrain>>[src]

type Error = Infallible

impl InputPin for Gpio15<Output<OpenDrain>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio0<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio1<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio2<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio3<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio4<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio5<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio6<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio7<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio8<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio9<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio10<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio11<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio12<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio13<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio14<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio15<Input<MODE>>[src]

type Error = Infallible

impl<MODE> InputPin for Gpio16<Input<MODE>>[src]

type Error = Infallible

impl<T> InputPin for T where
    T: InputPin
[src]

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

type Error = ()

Loading content...