|
HTS221
Arduino library for the HTS221 humidity and temperature sensor
|

Macros | |
| #define | HTS221_WHO_AM_I_REG (uint8_t)0x0F |
| Device Identification register. | |
| #define | HTS221_WHO_AM_I_VAL (uint8_t)0xBC |
| Device Identification value. | |
| #define | HTS221_AV_CONF_REG (uint8_t)0x10 |
| Humidity and temperature average mode register. | |
| #define | HTS221_AVGT_BIT HTS221_BIT(3) |
| #define | HTS221_AVGH_BIT HTS221_BIT(0) |
| #define | HTS221_AVGH_MASK (uint8_t)0x07 |
| #define | HTS221_AVGT_MASK (uint8_t)0x38 |
| #define | HTS221_CTRL_REG1 (uint8_t)0x20 |
| Control register 1. | |
| #define | HTS221_PD_BIT HTS221_BIT(7) |
| #define | HTS221_BDU_BIT HTS221_BIT(2) |
| #define | HTS221_ODR_BIT HTS221_BIT(0) |
| #define | HTS221_PD_MASK (uint8_t)0x80 |
| #define | HTS221_BDU_MASK (uint8_t)0x04 |
| #define | HTS221_ODR_MASK (uint8_t)0x03 |
| #define | HTS221_CTRL_REG2 (uint8_t)0x21 |
| Control register 2. | |
| #define | HTS221_BOOT_BIT HTS221_BIT(7) |
| #define | HTS221_HEATER_BIT HTS221_BIT(1) |
| #define | HTS221_ONESHOT_BIT HTS221_BIT(0) |
| #define | HTS221_BOOT_MASK (uint8_t)0x80 |
| #define | HTS221_HEATER_MASK (uint8_t)0x02 |
| #define | HTS221_ONE_SHOT_MASK (uint8_t)0x01 |
| #define | HTS221_CTRL_REG3 (uint8_t)0x22 |
| Control register 3. | |
| #define | HTS221_DRDY_H_L_BIT HTS221_BIT(7) |
| #define | HTS221_PP_OD_BIT HTS221_BIT(6) |
| #define | HTS221_DRDY_BIT HTS221_BIT(2) |
| #define | HTS221_DRDY_H_L_MASK (uint8_t)0x80 |
| #define | HTS221_PP_OD_MASK (uint8_t)0x40 |
| #define | HTS221_DRDY_MASK (uint8_t)0x04 |
| #define | HTS221_STATUS_REG (uint8_t)0x27 |
| Status register. | |
| #define | HTS221_H_DA_BIT HTS221_BIT(1) |
| #define | HTS221_T_DA_BIT HTS221_BIT(0) |
| #define | HTS221_HDA_MASK (uint8_t)0x02 |
| #define | HTS221_TDA_MASK (uint8_t)0x01 |
| #define | HTS221_HR_OUT_L_REG (uint8_t)0x28 |
| Humidity data (LSB). | |
| #define | HTS221_HR_OUT_H_REG (uint8_t)0x29 |
| Humidity data (MSB). | |
| #define | HTS221_TEMP_OUT_L_REG (uint8_t)0x2A |
| Temperature data (LSB). | |
| #define | HTS221_TEMP_OUT_H_REG (uint8_t)0x2B |
| Temperature data (MSB). | |
| #define | HTS221_H0_RH_X2 (uint8_t)0x30 |
| Calibration registers. | |
| #define | HTS221_H1_RH_X2 (uint8_t)0x31 |
| #define | HTS221_T0_DEGC_X8 (uint8_t)0x32 |
| #define | HTS221_T1_DEGC_X8 (uint8_t)0x33 |
| #define | HTS221_T0_T1_DEGC_H2 (uint8_t)0x35 |
| #define | HTS221_H0_T0_OUT_L (uint8_t)0x36 |
| #define | HTS221_H0_T0_OUT_H (uint8_t)0x37 |
| #define | HTS221_H1_T0_OUT_L (uint8_t)0x3A |
| #define | HTS221_H1_T0_OUT_H (uint8_t)0x3B |
| #define | HTS221_T0_OUT_L (uint8_t)0x3C |
| #define | HTS221_T0_OUT_H (uint8_t)0x3D |
| #define | HTS221_T1_OUT_L (uint8_t)0x3E |
| #define | HTS221_T1_OUT_H (uint8_t)0x3F |
| #define HTS221_AV_CONF_REG (uint8_t)0x10 |
Humidity and temperature average mode register.
| #define HTS221_AVGH_BIT HTS221_BIT(0) |
| #define HTS221_AVGH_MASK (uint8_t)0x07 |
| #define HTS221_AVGT_BIT HTS221_BIT(3) |
| #define HTS221_AVGT_MASK (uint8_t)0x38 |
| #define HTS221_BDU_BIT HTS221_BIT(2) |
| #define HTS221_BDU_MASK (uint8_t)0x04 |
| #define HTS221_BOOT_BIT HTS221_BIT(7) |
| #define HTS221_BOOT_MASK (uint8_t)0x80 |
| #define HTS221_CTRL_REG1 (uint8_t)0x20 |
Control register 1.
| #define HTS221_CTRL_REG2 (uint8_t)0x21 |
Control register 2.
| #define HTS221_CTRL_REG3 (uint8_t)0x22 |
Control register 3.
| #define HTS221_DRDY_BIT HTS221_BIT(2) |
| #define HTS221_DRDY_H_L_BIT HTS221_BIT(7) |
| #define HTS221_DRDY_H_L_MASK (uint8_t)0x80 |
| #define HTS221_DRDY_MASK (uint8_t)0x04 |
| #define HTS221_H0_RH_X2 (uint8_t)0x30 |
Calibration registers.
| #define HTS221_H0_T0_OUT_H (uint8_t)0x37 |
| #define HTS221_H0_T0_OUT_L (uint8_t)0x36 |
| #define HTS221_H1_RH_X2 (uint8_t)0x31 |
| #define HTS221_H1_T0_OUT_H (uint8_t)0x3B |
| #define HTS221_H1_T0_OUT_L (uint8_t)0x3A |
| #define HTS221_H_DA_BIT HTS221_BIT(1) |
| #define HTS221_HDA_MASK (uint8_t)0x02 |
| #define HTS221_HEATER_BIT HTS221_BIT(1) |
| #define HTS221_HEATER_MASK (uint8_t)0x02 |
| #define HTS221_HR_OUT_H_REG (uint8_t)0x29 |
Humidity data (MSB).
| #define HTS221_HR_OUT_L_REG (uint8_t)0x28 |
Humidity data (LSB).
| #define HTS221_ODR_BIT HTS221_BIT(0) |
| #define HTS221_ODR_MASK (uint8_t)0x03 |
| #define HTS221_ONE_SHOT_MASK (uint8_t)0x01 |
| #define HTS221_ONESHOT_BIT HTS221_BIT(0) |
| #define HTS221_PD_BIT HTS221_BIT(7) |
| #define HTS221_PD_MASK (uint8_t)0x80 |
| #define HTS221_PP_OD_BIT HTS221_BIT(6) |
| #define HTS221_PP_OD_MASK (uint8_t)0x40 |
| #define HTS221_STATUS_REG (uint8_t)0x27 |
Status register.
| #define HTS221_T0_DEGC_X8 (uint8_t)0x32 |
| #define HTS221_T0_OUT_H (uint8_t)0x3D |
| #define HTS221_T0_OUT_L (uint8_t)0x3C |
| #define HTS221_T0_T1_DEGC_H2 (uint8_t)0x35 |
| #define HTS221_T1_DEGC_X8 (uint8_t)0x33 |
| #define HTS221_T1_OUT_H (uint8_t)0x3F |
| #define HTS221_T1_OUT_L (uint8_t)0x3E |
| #define HTS221_T_DA_BIT HTS221_BIT(0) |
| #define HTS221_TDA_MASK (uint8_t)0x01 |
| #define HTS221_TEMP_OUT_H_REG (uint8_t)0x2B |
Temperature data (MSB).
| #define HTS221_TEMP_OUT_L_REG (uint8_t)0x2A |
Temperature data (LSB).
| #define HTS221_WHO_AM_I_REG (uint8_t)0x0F |
Device Identification register.
| #define HTS221_WHO_AM_I_VAL (uint8_t)0xBC |
Device Identification value.