21 #define HTS221_WHO_AM_I 0x0F 22 #define HTS221_AV_CONF 0x10 23 #define HTS221_CTRL_REG1 0x20 24 #define HTS221_CTRL_REG2 0x21 25 #define HTS221_CTRL_REG3 0x22 26 #define HTS221_STATUS_REG 0x27 27 #define HTS221_HUMIDITY_OUT_L 0x28 28 #define HTS221_HUMIDITY_OUT_H 0x29 29 #define HTS221_TEMP_OUT_L 0x2A 30 #define HTS221_TEMP_OUT_H 0x2B 31 #define HTS221_CALIBRATION 0x30 41 #define HTS221_ERR_NONE 0x00 43 #define HTS221_ERR_I2C 0x30 44 #define HTS221_ERR_ID 0x31 45 #define HTS221_ERR_MEASURE_TIMEOUT 0x32 error_t HTS221_init(void)
Get calibration values & configure sensor in one-shot measurement.
unsigned short u16
Definition: sensit_types.h:12
signed short s16
Definition: sensit_types.h:16
error_t HTS221_measure(s16 *temperature, u16 *humidity)
Do a measurement of temperature & relative humidity.
unsigned char error_t
Definition: sensit_types.h:23