[][src]Struct htpa32x32d::Htpa32x32d

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

Methods

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

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

Create new htpa32x32d I2C interface

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

pub fn set_wake_up(&mut self, wakeup: bool)[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]
) -> 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, D> Send for Htpa32x32d<I2C, D> where
    D: Send,
    I2C: Send

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

impl<I2C, D> Unpin for Htpa32x32d<I2C, D> where
    D: Unpin,
    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.