Module hts221::device [] [src]

I2C interface to the HTS221.

The API is modeled roughly after device crates generated by svd2rust, though not quite as type-driven (for example, there are no R or W types). This module provides access to every register (or set of related registers) defined in the datasheet.

Modules

av_conf

Constants for AV_CONF.

calibration
cr1

Constants for CTRL_REG1.

cr2

Constants for CTRL_REG2.

cr3

Constants for CTRL_REG3.

h_out

Constants for HUMIDITY_OUT_L and HUMIDITY_OUT_H.

status

Constants for STATUS.

t_out

Constants for TEMP_OUT_L and TEMP_OUT_H.

who_am_i

Constants for WHO_AM_I.

Structs

AvConf

The AV_CONF register. Controls humidity and temperature resolution modes.

Calibration

Calibration data for the particular chip. All chips are factory-calibrated, and require no further calibration from the user.

CtrlReg1

The CTRL_REG1 register. Contains power on, data transfer mode, and data rate configuration.

CtrlReg2

The CTRL_REG2 register.

CtrlReg3

The CTRL_REG3 register.

HumidityOut

Combination of HUMIDITY_OUT_L and HUMIDITY_OUT_H registers.

StatusReg

The STATUS register.

TemperatureOut

Combination of TEMP_OUT_L and TEMP_OUT_H registers.

WhoAmI

The WHO_AM_I register, for device identification.

Traits

I2C

I2C defines blocking functions that write and read data on the I2C bus. All device communication goes through a type that implements I2C.