Trait stm32_hal2::prelude::InputPin [−][src]
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 GpioAPin
[src]
type Error = Infallible
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl InputPin for GpioBPin
[src]
type Error = Infallible
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl InputPin for GpioCPin
[src]
type Error = Infallible
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl InputPin for GpioDPin
[src]
type Error = Infallible
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl InputPin for GpioEPin
[src]
type Error = Infallible
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