Struct stmpe1600::Stmpe1600[][src]

pub struct Stmpe1600<I2C> { /* fields omitted */ }

A struct representing the STMPE1600 device driver.

Implementations

impl<I2C, E> Stmpe1600<I2C> where
    I2C: Read<Error = E> + Write<Error = E>, 
[src]

pub fn pin_input(&mut self, pin: u8) -> Result<Pin<'_, I2C, Input>, Error<E>>[src]

Create a Pin which corresponds to the specified pin, configured in input mode.

If the specified pin is not already configured in input mode, the mode will be changed automatically.

This function will panic if pin > 16.

pub fn pin_output(&mut self, pin: u8) -> Result<Pin<'_, I2C, Output>, Error<E>>[src]

Create a Pin which corresponds to the specified pin, configured in output mode.

If the specified pin is not already configured in output mode, the mode will be changed automatically.

This function will panic if pin > 16.

pub fn pin_interrupt(
    &mut self,
    pin: u8
) -> Result<Pin<'_, I2C, Interrupt>, Error<E>>
[src]

Create a Pin which corresponds to the specified pin, configured in interrupt mode.

If the specified pin is not already configured in interrupt mode, the mode will be changed automatically.

This function will panic if pin > 16.

pub fn get_interrupts(&self) -> Result<[bool; 16], Error<E>>[src]

Gets the pending interrupts and returns them in an array.

This function clears any pending bits from the STMPE1600, and in doing so, stops triggering the interrupt output pin.

Trait Implementations

impl<I2C: Debug> Debug for Stmpe1600<I2C>[src]

Auto Trait Implementations

impl<I2C> Send for Stmpe1600<I2C> where
    I2C: Send

impl<I2C> !Sync for Stmpe1600<I2C>

impl<I2C> Unpin for Stmpe1600<I2C> where
    I2C: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.