Struct stmpe1600::Stmpe1600Builder[][src]

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

A builder that allows for configuring all the various options available to edit on the STMPE1600.

Implementations

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

pub fn new(i2c: I2C) -> Stmpe1600Builder<I2C>[src]

Constructs a builder.

pub fn address(self, address: u8) -> Stmpe1600Builder<I2C>[src]

Sets the I²C address on which to attempt communication with the STMPE1600.

pub fn interrupts(self, polarity: Polarity) -> Stmpe1600Builder<I2C>[src]

Enables interrupts, and sets the polarity of the interrupt output pin.

pub fn build(self) -> Result<Stmpe1600<I2C>, Error<E>>[src]

Consumes the builder, and produces an Stmpe1600 struct.

Auto Trait Implementations

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

impl<I2C> Sync for Stmpe1600Builder<I2C> where
    I2C: Sync

impl<I2C> Unpin for Stmpe1600Builder<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.