pub trait _atsamd_hal_embedded_hal_digital_v2_InputPin {
    type Error;

    // Required methods
    fn is_high(&self) -> Result<bool, Self::Error>;
    fn is_low(&self) -> Result<bool, Self::Error>;
}
Expand description

Single digital input pin

This trait is available if embedded-hal is built with the "unproven" feature.

Required Associated Types§

source

type Error

Error type

Required Methods§

source

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

Is the input pin high?

source

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

Is the input pin low?

Implementors§

source§

impl InputPin for DynPin

§

type Error = Error

source§

impl<GPIO, C> InputPin for ExtInt0<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt1<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt2<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt3<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt4<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt5<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt6<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt7<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt8<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt9<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt10<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt11<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt12<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt13<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt14<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<GPIO, C> InputPin for ExtInt15<GPIO>where GPIO: AnyPin<Mode = Interrupt<C>>, C: InterruptConfig,

source§

impl<I> InputPin for Pin<I, ReadableOutput>where I: PinId,

source§

impl<I, C> InputPin for Pin<I, Input<C>>where I: PinId, C: InputConfig,

source§

impl<I, C> InputPin for Pin<I, Interrupt<C>>where I: PinId, C: InterruptConfig,

source§

impl<T> InputPin for Twhere T: InputPin,

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

§

type Error = ()