Default configuration for LIS3DH devices. More...

Detailed Description

Default configuration for LIS3DH devices.

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

Definition in file lis3dh_params.h.

#include "board.h"
#include "lis3dh.h"
#include "saul_reg.h"
+ Include dependency graph for lis3dh_params.h:

Go to the source code of this file.

Variables

static const lis3dh_params_t lis3dh_params []
 Allocate some memory to store the actual configuration. More...
 
static const saul_reg_info_t lis3dh_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Set default configuration parameters

#define LIS3DH_PARAM_SPI   (SPI_DEV(0))
 
#define LIS3DH_PARAM_CS   (GPIO_PIN(0, 0))
 
#define LIS3DH_PARAM_CLK   (SPI_CLK_5MHZ)
 
#define LIS3DH_PARAM_INT1   (GPIO_PIN(0, 1))
 
#define LIS3DH_PARAM_INT2   (GPIO_PIN(0, 2))
 
#define LIS3DH_PARAM_SCALE   (4)
 
#define LIS3DH_PARAM_ODR   (LIS3DH_ODR_100Hz)
 
#define LIS3DH_PARAMS
 
#define LIS3DH_SAUL_INFO   { .name = "lis3dh" }
 

Macro Definition Documentation

◆ LIS3DH_PARAMS

#define LIS3DH_PARAMS
Value:
{ .spi = LIS3DH_PARAM_SPI, \
.cs = LIS3DH_PARAM_CS, \
.clk = LIS3DH_PARAM_CLK, \
.int1 = LIS3DH_PARAM_INT1, \
.int2 = LIS3DH_PARAM_INT2, \
.scale = LIS3DH_PARAM_SCALE, \
.odr = LIS3DH_PARAM_ODR }

Definition at line 57 of file lis3dh_params.h.

Variable Documentation

◆ lis3dh_params

const lis3dh_params_t lis3dh_params[]
static
Initial value:
=
{
LIS3DH_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 73 of file lis3dh_params.h.

◆ lis3dh_saul_info

const saul_reg_info_t lis3dh_saul_info[]
static
Initial value:
=
{
LIS3DH_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 81 of file lis3dh_params.h.