Sens'it SDK  v2.0.0
Macros | Functions
hts221.h File Reference

Temperature & Humidity sensor. More...

Go to the source code of this file.

Macros

#define HTS221_WHO_AM_I   0x0F
 
#define HTS221_AV_CONF   0x10
 
#define HTS221_CTRL_REG1   0x20
 
#define HTS221_CTRL_REG2   0x21
 
#define HTS221_CTRL_REG3   0x22
 
#define HTS221_STATUS_REG   0x27
 
#define HTS221_HUMIDITY_OUT_L   0x28
 
#define HTS221_HUMIDITY_OUT_H   0x29
 
#define HTS221_TEMP_OUT_L   0x2A
 
#define HTS221_TEMP_OUT_H   0x2B
 
#define HTS221_CALIBRATION   0x30
 
#define HTS221_ERR_NONE   0x00
 
#define HTS221_ERR_I2C   0x30
 
#define HTS221_ERR_ID   0x31
 
#define HTS221_ERR_MEASURE_TIMEOUT   0x32
 

Functions

error_t HTS221_init (void)
 Get calibration values & configure sensor in one-shot measurement. More...
 
error_t HTS221_measure (s16 *temperature, u16 *humidity)
 Do a measurement of temperature & relative humidity. More...
 

Detailed Description

Temperature & Humidity sensor.


Author
Sens'it Team

This file provide sample code to use Temperature & Relative Humidity sensor (ref: HTS221).
If you want to use other functionalities of the sensor, please refer to the datasheet: www.st.com/resource/en/datasheet/hts221.pdf