[−][src]Struct htpa32x32d::Htpa32x32d
Methods
impl<I2C, D, E> Htpa32x32d<I2C, D> where
I2C: Write<Error = E> + WriteRead<Error = E>,
D: DelayMs<u8>,
[src]
I2C: Write<Error = E> + WriteRead<Error = E>,
D: DelayMs<u8>,
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]
&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]
) -> Result<(), Error<E>>
[src]
&mut self,
half: SensorHalf,
data: &mut [u8]
) -> 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, D> Send for Htpa32x32d<I2C, D> where
D: Send,
I2C: Send,
D: Send,
I2C: Send,
impl<I2C, D> Sync for Htpa32x32d<I2C, D> where
D: Sync,
I2C: Sync,
D: Sync,
I2C: Sync,
impl<I2C, D> Unpin for Htpa32x32d<I2C, D> where
D: Unpin,
I2C: Unpin,
D: 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>,