Struct stmpe1600::Stmpe1600Builder [−][src]
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]
I2C: Read<Error = E> + Write<Error = E>,
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,
I2C: Send,
impl<I2C> Sync for Stmpe1600Builder<I2C> where
I2C: Sync,
I2C: Sync,
impl<I2C> Unpin for Stmpe1600Builder<I2C> where
I2C: Unpin,
I2C: Unpin,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,