36#if CONFIG_SHT2X_RES_12_14BIT
37#define CONFIG_SHT2X_RESOLUTION (SHT2X_RES_12_14BIT)
38#elif CONFIG_SHT2X_RES_11_11BIT
39#define CONFIG_SHT2X_RESOLUTION (SHT2X_RES_11_11BIT)
40#elif CONFIG_SHT2X_RES_10_13BIT
41#define CONFIG_SHT2X_RESOLUTION (SHT2X_RES_10_13BIT)
42#elif CONFIG_SHT2X_RES_8_12BIT
43#define CONFIG_SHT2X_RESOLUTION (SHT2X_RES_8_12BIT)
45#define CONFIG_SHT2X_RESOLUTION (SHT2X_RES_12_14BIT)
48#if CONFIG_SHT2X_MEASURE_MODE_HOLD
49#define CONFIG_SHT2X_MEASURE_MODE (SHT2X_MEASURE_MODE_HOLD)
50#elif CONFIG_SHT2X_MEASURE_MODE_NO_HOLD
51#define CONFIG_SHT2X_MEASURE_MODE (SHT2X_MEASURE_MODE_NO_HOLD)
53#define CONFIG_SHT2X_MEASURE_MODE (SHT2X_MEASURE_MODE_NO_HOLD)
56#ifndef CONFIG_SHT2X_CRC_MODE
57#define CONFIG_SHT2X_CRC_MODE (1)
66#ifndef SHT2X_PARAM_I2C_DEV
68#define SHT2X_PARAM_I2C_DEV (I2C_DEV(0))
71#ifndef SHT2X_PARAM_I2C_ADDR
73#define SHT2X_PARAM_I2C_ADDR (0x40)
81#ifndef SHT2X_PARAM_RESOLUTION
83#define SHT2X_PARAM_RESOLUTION (CONFIG_SHT2X_RESOLUTION)
86#ifndef SHT2X_PARAM_MEASURE_MODE
88#define SHT2X_PARAM_MEASURE_MODE (CONFIG_SHT2X_MEASURE_MODE)
91#ifndef SHT2X_PARAM_CRC_MODE
93#define SHT2X_PARAM_CRC_MODE (CONFIG_SHT2X_CRC_MODE)
97#define SHT2X_PARAMS_DEFAULT {.i2c_dev = SHT2X_PARAM_I2C_DEV, \
98 .i2c_addr = SHT2X_PARAM_I2C_ADDR, \
99 .resolution = SHT2X_PARAM_RESOLUTION, \
100 .measure_mode = SHT2X_PARAM_MEASURE_MODE, \
101 .is_crc_enabled = SHT2X_PARAM_CRC_MODE, \
104#ifndef SHT2X_SAUL_INFO
106#define SHT2X_SAUL_INFO { .name = "sht2x" }
115#ifdef SHT2X_PARAMS_BOARD
125#define SHT2X_NUMOF ARRAY_SIZE(sht2x_params)
SAUL registry interface definition.
Device driver implementation for the SHT2x humidity and temperature humidity sensor.
#define SHT2X_PARAMS_DEFAULT
Default SHT2x parameter set.
static const sht2x_params_t sht2x_params[]
Configure SHT2X.
#define SHT2X_SAUL_INFO
Default SAUL device info.
#define SHT2X_NUMOF
Get the number of configured SHT2X devices.
static const saul_reg_info_t sht2x_saul_reg_info[SHT2X_NUMOF]
Configuration details of SAUL registry entries.
Additional data to collect for each entry.
Device initialization parameters.