Go to the documentation of this file.
19 #ifndef HTS221_PARAMS_H
20 #define HTS221_PARAMS_H
35 #ifndef HTS221_PARAM_I2C
36 #define HTS221_PARAM_I2C I2C_DEV(0)
38 #ifndef HTS221_PARAM_ADDR
39 #define HTS221_PARAM_ADDR (HTS221_I2C_ADDRESS)
41 #ifndef HTS221_PARAM_AVGX
42 #define HTS221_PARAM_AVGX ((HTS221_REGS_AVGT_16 << HTS221_REGS_AVGT_SHIFT) | \
45 #ifndef HTS221_PARAM_RATE
46 #define HTS221_PARAM_RATE (HTS221_REGS_CTRL_REG1_ODR_12HZ)
49 #define HTS221_PARAMS { .i2c = HTS221_PARAM_I2C, \
50 .addr = HTS221_PARAM_ADDR, \
51 .avgx = HTS221_PARAM_AVGX, \
52 .rate = HTS221_PARAM_RATE }
55 #ifndef HTS221_SAULINFO
56 #define HTS221_SAULINFO { .name = "hts221" }
Parameters needed for device initialization.
Interface definition for the ST HTS221 driver.
Additional data to collect for each entry.
static const saul_reg_info_t hts221_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
static const hts221_params_t hts221_params[]
HTS221 configuration.
Register definitions for ST HTS221 devices.