[][src]Struct tmp006::Tmp006

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

TMP006 device driver.

Methods

impl<I2C, E> Tmp006<I2C> where
    I2C: Write<Error = E>, 
[src]

Create new instance of the TMP006 device.

Destroy driver instance, return I²C bus instance.

Enable the sensor (default state).

Sensor and ambient continuous conversion.

Note: calling this clears the data-ready bit.

Disable the sensor (power-down).

Note: calling this clears the data-ready bit.

Reset the sensor (software reset).

Note: calling this clears the data-ready bit.

Enable DRDY pin.

Note: calling this clears the data-ready bit.

Disable DRDY pin.

Note: calling this clears the data-ready bit.

Set the ADC conversion rate.

Note: calling this clears the data-ready bit.

impl<I2C, E> Tmp006<I2C> where
    I2C: WriteRead<Error = E>, 
[src]

Read the object temperature in Kelvins.

This uses the sensor voltage and ambient temperature as well as an input calibration factor.

The input calibration factor can be calculated with the formulas provided in the [TMP006 user guide]. Typical values are between 5*10^-14 and 7*10^-14

TMP006 user guide

Calculate the object temperature in Kelvins.

Given the sensor data and a calibration factor.

The input calibration factor can be calculated with the formulas provided in the [TMP006 user guide]. Typical values are between 5*10^-14 and 7*10^-14

TMP006 user guide

Read the data from the sensor.

These values can be used to calculate the object temperature as done in read_object_temperature().

Reads whether there is data ready to be read.

When this returens false it means that a conversion is in progress.

Read the manufacturer ID.

This is per default 0x5449.

Read the device ID.

This is per default 0x0067.

Trait Implementations

impl<I2C: Debug> Debug for Tmp006<I2C>
[src]

impl<I2C: Default> Default for Tmp006<I2C>
[src]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]