All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

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.
 
static const saul_reg_info_t lis2dh12_saul_info []
 Additional meta information to keep in the SAUL registry.
 

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_PARAM_RESOLUTION   LIS2DH12_POWER_NORMAL
 
#define LIS2DH12_PARAMS
 
#define LIS2DH12_SAULINFO   { .name = "lis2dh12" }
 

Macro Definition Documentation

◆ LIS2DH12_PARAM_ADDR

#define LIS2DH12_PARAM_ADDR   LIS2DH12_ADDR_DEFAULT

Definition at line 49 of file lis2dh12_params.h.

◆ LIS2DH12_PARAM_I2C

#define LIS2DH12_PARAM_I2C   I2C_DEV(0)

Definition at line 46 of file lis2dh12_params.h.

◆ LIS2DH12_PARAM_INT_PIN1

#define LIS2DH12_PARAM_INT_PIN1   GPIO_UNDEF

Definition at line 57 of file lis2dh12_params.h.

◆ LIS2DH12_PARAM_INT_PIN2

#define LIS2DH12_PARAM_INT_PIN2   GPIO_UNDEF

Definition at line 61 of file lis2dh12_params.h.

◆ LIS2DH12_PARAM_RATE

#define LIS2DH12_PARAM_RATE   LIS2DH12_RATE_100HZ

Definition at line 68 of file lis2dh12_params.h.

◆ LIS2DH12_PARAM_RESOLUTION

#define LIS2DH12_PARAM_RESOLUTION   LIS2DH12_POWER_NORMAL

Definition at line 71 of file lis2dh12_params.h.

◆ LIS2DH12_PARAM_SCALE

#define LIS2DH12_PARAM_SCALE   LIS2DH12_SCALE_2G

Definition at line 65 of file lis2dh12_params.h.

◆ LIS2DH12_PARAMS

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

Definition at line 85 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.

◆ LIS2DH12_SAULINFO

#define LIS2DH12_SAULINFO   { .name = "lis2dh12" }

Definition at line 95 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 102 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 110 of file lis2dh12_params.h.