sht2x_params.h File Reference

Default configuration for SHT2X. More...

Detailed Description

#include "sht2x.h"
#include "saul_reg.h"
+ Include dependency graph for sht2x_params.h:

Go to the source code of this file.

Macros

#define SHT2X_NUMOF   ARRAY_SIZE(sht2x_params)
 Get the number of configured SHT2X devices.
 

Variables

static const sht2x_params_t sht2x_params []
 Configure SHT2X. More...
 
static const saul_reg_info_t sht2x_saul_reg_info [SHT2X_NUMOF]
 Configuration details of SAUL registry entries. More...
 
#define SHT2X_PARAM_I2C_DEV   (I2C_DEV(0))
 Set default configuration parameters for the SHT2X.
 
#define SHT2X_PARAM_I2C_ADDR   (0x40)
 
#define SHT2X_PARAM_RESOLUTION   (SHT2X_RES_12_14BIT)
 
#define SHT2X_PARAM_MEASURE_MODE   (SHT2X_MEASURE_MODE_HOLD)
 
#define SHT2X_PARAM_CRC_MODE   (1)
 
#define SHT2X_PARAMS_DEFAULT
 
#define SHT2X_SAUL_INFO   { .name = "sht2x" }
 

Macro Definition Documentation

◆ SHT2X_PARAMS_DEFAULT

#define SHT2X_PARAMS_DEFAULT
Value:
{.i2c_dev = SHT2X_PARAM_I2C_DEV, \
.i2c_addr = SHT2X_PARAM_I2C_ADDR, \
.resolution = SHT2X_PARAM_RESOLUTION, \
.measure_mode = SHT2X_PARAM_MEASURE_MODE, \
.is_crc_enabled = SHT2X_PARAM_CRC_MODE, \
}

Definition at line 53 of file sht2x_params.h.

Variable Documentation

◆ sht2x_params

const sht2x_params_t sht2x_params[]
static
Initial value:
=
{
SHT2X_PARAMS_DEFAULT,
}

Configure SHT2X.

Definition at line 68 of file sht2x_params.h.

◆ sht2x_saul_reg_info

const saul_reg_info_t sht2x_saul_reg_info[SHT2X_NUMOF]
static
Initial value:
=
{
SHT2X_SAUL_INFO
}

Configuration details of SAUL registry entries.

This array contains static details of the sensors for each device. Please be aware that the indexes are used in auto_init_sht2x, so make sure the indexes match.

Definition at line 89 of file sht2x_params.h.

SHT2X_PARAM_I2C_DEV
#define SHT2X_PARAM_I2C_DEV
Set default configuration parameters for the SHT2X.
Definition: sht2x_params.h:38