Default configuration for LIS2DH12 devices. More...

Detailed Description

Default configuration for LIS2DH12 devices.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file lis2dh12_params.h.

#include "board.h"
#include "lis2dh12.h"
#include "saul_reg.h"
+ Include dependency graph for lis2dh12_params.h:

Go to the source code of this file.

Variables

static const lis2dh12_params_t lis2dh12_params []
 LIS2DH12 configuration. More...
 
static const saul_reg_info_t lis2dh12_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Set default configuration parameters for LIS2DH12 devices

#define LIS2DH12_PARAM_I2C   I2C_DEV(0)
 
#define LIS2DH12_PARAM_ADDR   LIS2DH12_ADDR_DEFAULT
 
#define LIS2DH12_PARAMS_BUSCFG
 
#define LIS2DH12_PARAM_INT_PIN1   GPIO_UNDEF
 
#define LIS2DH12_PARAM_INT_PIN2   GPIO_UNDEF
 
#define LIS2DH12_PARAM_SCALE   LIS2DH12_SCALE_2G
 
#define LIS2DH12_PARAM_RATE   LIS2DH12_RATE_100HZ
 
#define LIS2DH12_PARAMS
 
#define LIS2DH12_SAULINFO   { .name = "lis2dh12" }
 

Macro Definition Documentation

◆ LIS2DH12_PARAMS

#define LIS2DH12_PARAMS
Value:
{ \
LIS2DH12_PARAMS_BUSCFG, \
.scale = LIS2DH12_PARAM_SCALE, \
.rate = LIS2DH12_PARAM_RATE, \
}

Definition at line 81 of file lis2dh12_params.h.

◆ LIS2DH12_PARAMS_BUSCFG

#define LIS2DH12_PARAMS_BUSCFG
Value:
.i2c = LIS2DH12_PARAM_I2C, \
.addr = LIS2DH12_PARAM_ADDR

Definition at line 51 of file lis2dh12_params.h.

Variable Documentation

◆ lis2dh12_params

const lis2dh12_params_t lis2dh12_params[]
static
Initial value:
=
{
LIS2DH12_PARAMS
}

LIS2DH12 configuration.

Definition at line 97 of file lis2dh12_params.h.

◆ lis2dh12_saul_info

const saul_reg_info_t lis2dh12_saul_info[]
static
Initial value:
=
{
LIS2DH12_SAULINFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 105 of file lis2dh12_params.h.