[−][src]Trait trellis_m4::prelude::_atsamd_hal_embedded_hal_digital_v2_InputPin
Single digital input pin
This trait is available if embedded-hal is built with the "unproven"
feature.
Associated Types
Loading content...Required methods
pub fn is_high(&self) -> Result<bool, Self::Error>
[src]
Is the input pin high?
pub fn is_low(&self) -> Result<bool, Self::Error>
[src]
Is the input pin low?
Implementors
impl InputPin for DynPin
[src]
type Error = Error
pub fn is_high(&self) -> Result<bool, <DynPin as InputPin>::Error>
[src]
pub fn is_low(&self) -> Result<bool, <DynPin as InputPin>::Error>
[src]
impl<I> InputPin for trellis_m4::gpio::Pin<I, Output<Readable>> where
I: PinId,
[src]
I: PinId,
type Error = ()
pub fn is_high(
&self
) -> Result<bool, <Pin<I, Output<Readable>> as InputPin>::Error>
[src]
&self
) -> Result<bool, <Pin<I, Output<Readable>> as InputPin>::Error>
pub fn is_low(
&self
) -> Result<bool, <Pin<I, Output<Readable>> as InputPin>::Error>
[src]
&self
) -> Result<bool, <Pin<I, Output<Readable>> as InputPin>::Error>
impl<I> InputPin for trellis_m4::gpio::v2::Pin<I, Output<Readable>> where
I: PinId,
[src]
I: PinId,
type Error = Infallible
pub fn is_high(
&self
) -> Result<bool, <Pin<I, Output<Readable>> as InputPin>::Error>
[src]
&self
) -> Result<bool, <Pin<I, Output<Readable>> as InputPin>::Error>
pub fn is_low(
&self
) -> Result<bool, <Pin<I, Output<Readable>> as InputPin>::Error>
[src]
&self
) -> Result<bool, <Pin<I, Output<Readable>> as InputPin>::Error>
impl<I, C> InputPin for trellis_m4::gpio::v2::Pin<I, Input<C>> where
C: InputConfig,
I: PinId,
[src]
C: InputConfig,
I: PinId,
type Error = Infallible
pub fn is_high(&self) -> Result<bool, <Pin<I, Input<C>> as InputPin>::Error>
[src]
pub fn is_low(&self) -> Result<bool, <Pin<I, Input<C>> as InputPin>::Error>
[src]
impl<I, M> InputPin for trellis_m4::gpio::Pin<I, Input<M>> where
M: InputConfig,
I: PinId,
[src]
M: InputConfig,
I: PinId,
type Error = ()
pub fn is_high(&self) -> Result<bool, <Pin<I, Input<M>> as InputPin>::Error>
[src]
pub fn is_low(&self) -> Result<bool, <Pin<I, Input<M>> 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