Struct hts221::HTS221 [] [src]

pub struct HTS221<Comm, E> { /* fields omitted */ }

Interface for the chip.

Methods

impl<Comm, E> HTS221<Comm, E> where
    Comm: Write<Error = E> + WriteRead<Error = E>, 
[src]

[src]

Returns the current humidity reading, in relative humidity half-percentage points. To get the relative humidity as a percentage between 0 and 100, divide the result by 2.

[src]

Returns the current temperature reading, in 1/8 degrees Celsius. To get the temperature in degrees Celsius, divide the result by 8.

[src]

Converts a humidity ADC reading into relative humidity half-percentage points using the device's calibration. To get the relative humidity as a percent, divide the result by 2.

The result is clamped such that it is always within the device's operating range.

[src]

Converts a temperature ADC reading into 1/8 degrees Celsius using the device's calibration. To get the temperature in degrees Celsius, divide the result by 8.

The result is clamped such that it is always within the device's operating range.

[src]

Returns the WHO_AM_I register.

[src]

Returns the AV_CONF register.

[src]

Returns the CTRL_REG1 register.

[src]

Returns the CTRL_REG2 register.

[src]

Returns the CTRL_REG3 register.

[src]

Returns the STATUS register.

Trait Implementations

Auto Trait Implementations

impl<Comm, E> Send for HTS221<Comm, E> where
    Comm: Send,
    E: Send

impl<Comm, E> Sync for HTS221<Comm, E> where
    Comm: Sync,
    E: Sync