Trait stm32_hal2::prelude::InputPin[][src]

pub trait InputPin {
    type Error;
    pub fn is_high(&self) -> Result<bool, Self::Error>;
pub 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[src]

Error type

Loading content...

Required methods

pub fn is_high(&self) -> Result<bool, Self::Error>[src]

Is the input pin high?

pub fn is_low(&self) -> Result<bool, Self::Error>[src]

Is the input pin low?

Loading content...

Implementors

impl InputPin for GpioAPin[src]

type Error = Infallible

impl InputPin for GpioBPin[src]

type Error = Infallible

impl InputPin for GpioCPin[src]

type Error = Infallible

impl InputPin for GpioDPin[src]

type Error = Infallible

impl InputPin for GpioEPin[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...