pub trait InputPin: ErrorType {
    // Required methods
    fn is_high(&mut self) -> Result<bool, Self::Error>;
    fn is_low(&mut self) -> Result<bool, Self::Error>;
}
Expand description

Single digital input pin.

Required Methods§

source

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

Is the input pin high?

source

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

Is the input pin low?

Implementations on Foreign Types§

source§

impl<T: InputPin + ?Sized> InputPin for &mut T

source§

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

source§

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

Implementors§