Go to the documentation of this file.
23 #ifndef SHT2X_PARAMS_H
24 #define SHT2X_PARAMS_H
37 #ifndef SHT2X_PARAM_I2C_DEV
38 #define SHT2X_PARAM_I2C_DEV (I2C_DEV(0))
40 #ifndef SHT2X_PARAM_I2C_ADDR
41 #define SHT2X_PARAM_I2C_ADDR (0x40)
43 #ifndef SHT2X_PARAM_RESOLUTION
44 #define SHT2X_PARAM_RESOLUTION (SHT2X_RES_12_14BIT)
46 #ifndef SHT2X_PARAM_MEASURE_MODE
47 #define SHT2X_PARAM_MEASURE_MODE (SHT2X_MEASURE_MODE_HOLD)
49 #ifndef SHT2X_PARAM_CRC_MODE
50 #define SHT2X_PARAM_CRC_MODE (1)
53 #define SHT2X_PARAMS_DEFAULT {.i2c_dev = SHT2X_PARAM_I2C_DEV, \
54 .i2c_addr = SHT2X_PARAM_I2C_ADDR, \
55 .resolution = SHT2X_PARAM_RESOLUTION, \
56 .measure_mode = SHT2X_PARAM_MEASURE_MODE, \
57 .is_crc_enabled = SHT2X_PARAM_CRC_MODE, \
60 #ifndef SHT2X_SAUL_INFO
61 #define SHT2X_SAUL_INFO { .name = "sht2x" }
70 #ifdef SHT2X_PARAMS_BOARD
80 #define SHT2X_NUMOF ARRAY_SIZE(sht2x_params)
Device initialization parameters.
#define SHT2X_NUMOF
Get the number of configured SHT2X devices.
Additional data to collect for each entry.
static const saul_reg_info_t sht2x_saul_reg_info[SHT2X_NUMOF]
Configuration details of SAUL registry entries.
static const sht2x_params_t sht2x_params[]
Configure SHT2X.
SAUL registry interface definition.
Device driver implementation for the SHT2x temperature and humidity sensor.