1 HTS221 environmental sensor device driver for Google nanohub. 2 3 - Supported features: 4 5 A. Report Humidity data 6 B. Different data rates: 1/7/12.5 Hz 7 C. I2C protocol 8 9 This driver does not support the DRDy interrupt. 10 Instead, a timer callback is used to read the data. 11 12 13 - Platform/variant porting: 14 15 The driver requires that following macros are defined in the variant.h 16 file of the specific variant: 17 18 HTS221_I2C_BUS_ID /* specify I2C Bus ID */ 19 HTS221_I2C_SPEED /* specify I2C Bus speed in hz */ 20 HTS221_I2C_ADDR /* specify device I2C address */ 21 22 Example: 23 24 /* 25 * Define platform/variant dependent HTS221 device macros 26 */ 27 28 /* I2C defs to be used when device is plugged on U4 slot */ 29 #define HTS221_I2C_BUS_ID 0 30 #define HTS221_I2C_SPEED 400000 31 #define HTS221_I2C_ADDR 0x5F 32 33 If these macros are not defined in the current variant the driver forces a compilation 34 error. 35