1 LPS22HB environmental sensor device driver for Google nanohub. 2 3 - Supported features: 4 5 A. Report Pressure and Temperature data 6 B. Different data rates: 1/10/25/50/75 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 LPS22HB_I2C_BUS_ID /* specify I2C Bus ID */ 19 LPS22HB_I2C_SPEED /* specify I2C Bus speed in hz */ 20 LPS22HB_I2C_ADDR /* specify device I2C address */ 21 LPS22HB_DBG_ENABLED /* Enable debug messages */ 22 23 Example: 24 25 /* 26 * Define platform/variant dependent LPS22HB device macros 27 */ 28 #define LPS22HB_USE_I2C 1 29 30 /* I2C defs to be used when device is plugged on U4 slot */ 31 #define LPS22HB_I2C_BUS_ID 0 32 #define LPS22HB_I2C_SPEED 400000 33 #define LPS22HB_I2C_ADDR 0x5C 34 35 If these macros are not defined in the current variant the driver forces a compilation 36 error. 37 38