[][src]Trait e310x_hal::prelude::_embedded_hal_digital_v2_InputPin

pub trait _embedded_hal_digital_v2_InputPin {
    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<MODE> InputPin for Pin0<Input<MODE>>[src]

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

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

type Error = Infallible

impl<MODE> InputPin for Pin9<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...