Trait InputPin

Source
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§

impl<PIN: PinOps> InputPin for Pin<OpenDrain, PIN>

impl<PIN: PinOps, IMODE: InputMode> InputPin for Pin<Input<IMODE>, PIN>