[−][src]Struct aht10::AHT10
AHT10 driver
Methods
impl<I2C, D, E> AHT10<I2C, D> where
I2C: WriteRead<Error = E> + Write<Error = E>,
D: DelayMs<u16>,
[src]
I2C: WriteRead<Error = E> + Write<Error = E>,
D: DelayMs<u16>,
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,
D: Unpin,
I2C: Unpin,
impl<I2C, D> Sync for AHT10<I2C, D> where
D: Sync,
I2C: Sync,
D: Sync,
I2C: Sync,
impl<I2C, D> Send for AHT10<I2C, D> where
D: Send,
I2C: Send,
D: Send,
I2C: Send,
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,