Loading...
Searching...
No Matches

Default configuration for ST HTS221 devices. More...

Detailed Description

Default configuration for ST HTS221 devices.

Author
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file hts221_params.h.

#include "board.h"
#include "hts221.h"
#include "hts221_regs.h"
#include "saul_reg.h"
+ Include dependency graph for hts221_params.h:

Go to the source code of this file.

Variables

static const hts221_params_t hts221_params []
 HTS221 configuration.
 
static const saul_reg_info_t hts221_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters for the HTS221 driver

#define HTS221_PARAM_I2C   I2C_DEV(0)
 
#define HTS221_PARAM_ADDR   (HTS221_I2C_ADDRESS)
 
#define HTS221_PARAM_AVGX
 
#define HTS221_PARAM_RATE   (HTS221_REGS_CTRL_REG1_ODR_12HZ)
 
#define HTS221_PARAMS
 
#define HTS221_SAULINFO   { .name = "hts221" }
 

Macro Definition Documentation

◆ HTS221_PARAM_ADDR

#define HTS221_PARAM_ADDR   (HTS221_I2C_ADDRESS)

Definition at line 39 of file hts221_params.h.

◆ HTS221_PARAM_AVGX

#define HTS221_PARAM_AVGX
Value:
((HTS221_REGS_AVGT_16 << HTS221_REGS_AVGT_SHIFT) | \
HTS221_REGS_AVGH_32)
#define HTS221_REGS_AVGT_SHIFT
Shift for AVG oftemperature configuration set in HTS221_REGS_AV_CONF.
Definition hts221_regs.h:70

Definition at line 42 of file hts221_params.h.

◆ HTS221_PARAM_I2C

#define HTS221_PARAM_I2C   I2C_DEV(0)

Definition at line 36 of file hts221_params.h.

◆ HTS221_PARAM_RATE

#define HTS221_PARAM_RATE   (HTS221_REGS_CTRL_REG1_ODR_12HZ)

Definition at line 46 of file hts221_params.h.

◆ HTS221_PARAMS

#define HTS221_PARAMS
Value:
{ .i2c = HTS221_PARAM_I2C, \
.addr = HTS221_PARAM_ADDR, \
.avgx = HTS221_PARAM_AVGX, \
.rate = HTS221_PARAM_RATE }

Definition at line 49 of file hts221_params.h.

◆ HTS221_SAULINFO

#define HTS221_SAULINFO   { .name = "hts221" }

Definition at line 56 of file hts221_params.h.

Variable Documentation

◆ hts221_params

const hts221_params_t hts221_params[]
static
Initial value:
=
{
HTS221_PARAMS,
}

HTS221 configuration.

Definition at line 63 of file hts221_params.h.

◆ hts221_saul_info

const saul_reg_info_t hts221_saul_info[]
static
Initial value:
=
{
HTS221_SAULINFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 71 of file hts221_params.h.