[][src]Trait pcf857x::InputPin

pub trait 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<'a, S, E> InputPin for P0<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P1<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P10<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P11<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P12<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P13<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P14<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P15<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P16<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P17<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P2<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P3<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P4<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P5<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P6<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

impl<'a, S, E> InputPin for P7<'a, S, E> where
    S: GetPin<E>, 
[src]

type Error = Error<E>

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

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

type Error = ()

Loading content...