Struct hdc1080::Hdc1080

source ·
pub struct Hdc1080<I2C> { /* private fields */ }
Expand description

Hdc1080 device driver.

Implementations§

Create new instance of the hdc1080 device.

Destroy driver instance, return I²C bus instance.

Read the temperature from the sensor (celsius).

Read humidity from the sensor (RH%).

Read the temperature from the sensor (celsius).

Read the temperature from the sensor (celsius).

Read the humidity from the sensor (RH).

Write config register, 0x02

Read config, register 0x02

Returns true if battery voltage is under 2.8v

Read manufacturer, register 0xfe

Read device id, register 0xff

Read serial registers 0xfb, 0xfc, 0xfd.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.