[−][src]Trait nrf52840_hal::prelude::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<MODE> InputPin for P0_00<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_00<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_00<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_01<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_01<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_01<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_02<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_02<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_02<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_03<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_03<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_03<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_04<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_04<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_04<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_05<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_05<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_05<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_06<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_06<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_06<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_07<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_07<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_07<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_08<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_08<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_08<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_09<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_09<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_09<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_10<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_10<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_10<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_11<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_11<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_11<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_12<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_12<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_12<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_13<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_13<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_13<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_14<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_14<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_14<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_15<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_15<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_15<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_16<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_16<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_16<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_17<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_17<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_17<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_18<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_18<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_18<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_19<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_19<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_19<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_20<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_20<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_20<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_21<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_21<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_21<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_22<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_22<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_22<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_23<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_23<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_23<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_24<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_24<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_24<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_25<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_25<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_25<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_26<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_26<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_26<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_27<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_27<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_27<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_28<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_28<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_28<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_29<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_29<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_29<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_30<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_30<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_30<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P0_31<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P0_31<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P0_31<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_00<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_00<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_00<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_01<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_01<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_01<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_02<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_02<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_02<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_03<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_03<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_03<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_04<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_04<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_04<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_05<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_05<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_05<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_06<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_06<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_06<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_07<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_07<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_07<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_08<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_08<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_08<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_09<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_09<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_09<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_10<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_10<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_10<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_11<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_11<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_11<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_12<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_12<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_12<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_13<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_13<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_13<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_14<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_14<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_14<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for P1_15<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <P1_15<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <P1_15<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> InputPin for Pin<Input<MODE>>
[src]
type Error = Void
fn is_high(&self) -> Result<bool, <Pin<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <Pin<Input<MODE>> as InputPin>::Error>
[src]
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,
Implementation of fallible v2::InputPin
for v1::InputPin
digital traits