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 - Platform/variant porting: 13 14 The driver requires that following macros are defined in the variant.h 15 file of the specific variant: 16 17 LPS22HB_I2C_BUS_ID /* specify I2C Bus ID */ 18 LPS22HB_I2C_SPEED /* specify I2C Bus speed in hz */ 19 LPS22HB_I2C_ADDR /* specify device I2C address */ 20 LPS22HB_DBG_ENABLED /* Enable debug messages */ 21 22 Example: 23 24 /* 25 * Define platform/variant dependent LPS22HB device macros 26 */ 27 28 #define LPS22HB_I2C_BUS_ID 0 29 #define LPS22HB_I2C_SPEED 400000 30 #define LPS22HB_I2C_ADDR 0x5C 31 32 If these macros are not defined in the current variant the driver forces a compilation 33 error. 34