[−][src]Trait pcf857x::InputPin
Single digital input pin
This trait is available if embedded-hal is built with the "unproven"
feature.
Associated Types
type Error
Error type
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?
Implementors
impl<'a, S, E> InputPin for P0<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P1<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P10<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P11<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P12<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P13<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P14<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P15<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P16<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P17<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P2<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P3<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P4<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P5<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P6<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<'a, S, E> InputPin for P7<'a, S, E> where
S: GetPin<E>,
[src]
S: GetPin<E>,
type Error = Error<E>
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,
Implementation of fallible v2::InputPin
for v1::InputPin
digital traits