[−][src]Trait trellis_m4::prelude::_embedded_hal_digital_InputPin
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Single digital input pin
This trait is available if embedded-hal is built with the "unproven"
feature.
This version of the trait is now deprecated. Please use the new InputPin
trait in
digital::v2::InputPin
.
Required methods
fn is_high(&self) -> bool
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the input pin high?
fn is_low(&self) -> bool
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the input pin low?
Implementations on Foreign Types
impl<T, E> InputPin for OldInputPin<T> where
E: Debug,
T: InputPin<Error = E>,
[src]
E: Debug,
T: InputPin<Error = E>,
Implementation of v1::InputPin
trait for v2::InputPin
fallible pins
where errors will panic.
impl<MODE> InputPin for PA2<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA12<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA13<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA8<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA15<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA0<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA6<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA11<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA4<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA3<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA14<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<'a> InputPin for KeypadInput<'a>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Read the state of the key at this row and column. Not reentrant.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Read the state of the key at this row and column. Not reentrant.
impl<MODE> InputPin for PA7<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA5<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA9<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA1<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.
impl<MODE> InputPin for PA10<Input<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin high? Panic if it's floating.
fn is_low(&self) -> bool
[src]
Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
Is the mock input pin low? Panic if it's floating.