[−][src]Struct htpa32x32d::Htpa32x32d
Methods
impl<I2C, E> Htpa32x32d<I2C> where
I2C: Write<Error = E> + WriteRead<Error = E> + Read<Error = E>,
[src]
I2C: Write<Error = E> + WriteRead<Error = E> + Read<Error = E>,
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]
&mut self,
delay: &mut DELAY
) -> Result<(), Error<E>> where
DELAY: DelayMs<u8>,
pub fn start_measurement(
&mut self,
measurement: Measurement
) -> Result<(), Error<E>>
[src]
&mut self,
measurement: Measurement
) -> Result<(), Error<E>>
pub fn check_measurement_ready(
&mut self,
measurement: Measurement
) -> Result<bool, Error<E>>
[src]
&mut self,
measurement: Measurement
) -> Result<bool, Error<E>>
pub fn get_measurement_data(
&mut self,
half: SensorHalf,
data: &mut [u8; 258]
) -> Result<(), Error<E>>
[src]
&mut self,
half: SensorHalf,
data: &mut [u8; 258]
) -> Result<(), Error<E>>
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,
I2C: Send,
impl<I2C> Sync for Htpa32x32d<I2C> where
I2C: Sync,
I2C: Sync,
impl<I2C> Unpin for Htpa32x32d<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,
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.
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>,