[−][src]Struct stmpe1600::Pin
A single I/O pin on the STMPE1600.
These implement the embedded-hal
traits for GPIO pins (InputPin
and OutputPin
),
so they can be used to transparently connect devices driven over GPIO pins through the STMPE1600 instead, using any
embedded-hal
compatible device drivers without modification.
Trait Implementations
impl<'a, I2C, E> InputPin for Pin<'a, I2C> where
I2C: Read<Error = E> + Write<Error = E>,
E: Debug,
[src]
I2C: Read<Error = E> + Write<Error = E>,
E: Debug,
type Error = Error<E>
Error type
fn is_low(&self) -> Result<bool, Self::Error>
[src]
fn is_high(&self) -> Result<bool, Self::Error>
[src]
impl<'a, I2C, E> OutputPin for Pin<'a, I2C> where
I2C: Read<Error = E> + Write<Error = E>,
E: Debug,
[src]
I2C: Read<Error = E> + Write<Error = E>,
E: Debug,
Auto Trait Implementations
impl<'a, I2C> !Send for Pin<'a, I2C>
impl<'a, I2C> !Sync for Pin<'a, I2C>
impl<'a, I2C> Unpin for Pin<'a, I2C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,
type Error = ()
Error type
fn is_low(&self) -> Result<bool, <T as InputPin>::Error>
[src]
fn is_high(&self) -> Result<bool, <T as InputPin>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
type Error = ()
Error type
fn set_low(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
fn set_high(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,