[][src]Trait stm32l0xx_hal::prelude::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<MODE> InputPin for PA<Input<MODE>>[src]

type Error = Void

impl<MODE> InputPin for PA<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA0<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA1<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA10<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA11<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA12<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA13<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA14<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA15<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA2<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA3<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA4<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA5<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA6<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA7<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA8<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PA9<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB0<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB1<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB10<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB11<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB12<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB13<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB14<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB15<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB2<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB3<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB4<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB5<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB6<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB7<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB8<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PB9<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC0<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC1<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC10<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC11<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC12<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC13<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC14<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC15<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC2<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC3<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC4<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC5<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC6<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC7<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC8<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PC9<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD0<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD1<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD10<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD11<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD12<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD13<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD14<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD15<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD2<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD3<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD4<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD5<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD6<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD7<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD8<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PD9<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE0<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE1<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE10<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE11<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE12<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE13<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE14<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE15<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE2<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE3<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE4<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE5<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE6<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE7<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE8<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PE9<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PH<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PH0<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PH1<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PH10<Output<MODE>>[src]

type Error = Void

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

type Error = Void

impl<MODE> InputPin for PH9<Output<MODE>>[src]

type Error = Void

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

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

type Error = ()

Loading content...