[]Trait wio_terminal::prelude::_atsamd_hal_embedded_hal_digital_v2_InputPin

pub trait _atsamd_hal_embedded_hal_digital_v2_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

Error type

Loading content...

Required methods

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

Is the input pin high?

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

Is the input pin low?

Loading content...

Implementations on Foreign Types

impl<I, M> InputPin for Pin<I, Input<M>> where
    M: InputConfig,
    I: PinId
[src]

type Error = ()

impl<I> InputPin for Pin<I, Output<Readable>> where
    I: PinId
[src]

type Error = Infallible

impl InputPin for DynPin[src]

type Error = Error

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

type Error = Infallible

impl<I> InputPin for Pin<I, Output<Readable>> where
    I: PinId
[src]

type Error = ()

Loading content...

Implementors

impl<T> InputPin for T where
    T: InputPin

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

type Error = ()

Loading content...