[][src]Struct aht10::AHT10

pub struct AHT10<I2C, D> { /* fields omitted */ }

AHT10 driver

Methods

impl<I2C, D, E> AHT10<I2C, D> where
    I2C: WriteRead<Error = E> + Write<Error = E>,
    D: DelayMs<u16>, 
[src]

pub fn new(i2c: I2C, delay: D) -> Result<Self, E>[src]

Creates a new AHT10 device from an I2C peripheral.

pub fn reset(&mut self) -> Result<(), E>[src]

Soft reset the sensor.

pub fn read(&mut self) -> Result<(Humidity, Temperature), Error<E>>[src]

Read humidity and temperature.

Auto Trait Implementations

impl<I2C, D> Unpin for AHT10<I2C, D> where
    D: Unpin,
    I2C: Unpin

impl<I2C, D> Sync for AHT10<I2C, D> where
    D: Sync,
    I2C: Sync

impl<I2C, D> Send for AHT10<I2C, D> where
    D: Send,
    I2C: Send

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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