[][src]Struct htpa32x32d::Htpa32x32d

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

Methods

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

pub fn new(i2c: I2C, addr_sensor: u8, addr_eeprom: u8) -> Self[src]

Create new htpa32x32d I2C interface A maximum of 1mhz i2c is supported, typical 400khz

pub fn is_woken_up(&self) -> bool[src]

pub fn suspend(&mut self)[src]

pub fn wakeup_and_write_config<DELAY>(
    &mut self,
    delay: &mut DELAY
) -> Result<(), Error<E>> where
    DELAY: DelayMs<u8>, 
[src]

pub fn start_measurement(
    &mut self,
    measurement: Measurement
) -> Result<(), Error<E>>
[src]

pub fn check_measurement_ready(
    &mut self,
    measurement: Measurement
) -> Result<bool, Error<E>>
[src]

pub fn get_measurement_data(
    &mut self,
    half: SensorHalf,
    data: &mut [u8; 258]
) -> Result<(), Error<E>>
[src]

get measurement for the block specified in the former send command and select from which half it should come data must be at 258 in size

Auto Trait Implementations

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

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

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