Default configuration for LIS3MDL devices. More...

Detailed Description

Default configuration for LIS3MDL devices.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file lis3mdl_params.h.

#include "board.h"
#include "lis3mdl.h"
#include "saul_reg.h"
+ Include dependency graph for lis3mdl_params.h:

Go to the source code of this file.

Variables

static const lis3mdl_params_t lis3mdl_params []
 Allocate some memory to store the actual configuration. More...
 
static const saul_reg_info_t lis3mdl_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Set default configuration parameters

#define LIS3MDL_PARAM_I2C   (I2C_DEV(0))
 
#define LIS3MDL_PARAM_ADDR   (0x1E)
 
#define LIS3MDL_PARAM_XYMODE   (LIS3MDL_XY_MODE_HIGH)
 
#define LIS3MDL_PARAM_ZMODE   (LIS3MDL_Z_MODE_HIGH)
 
#define LIS3MDL_PARAM_ODR   (LIS3MDL_ODR_10Hz)
 
#define LIS3MDL_PARAM_SCALE   (4)
 
#define LIS3MDL_PARAM_OPMODE   (LIS3MDL_OP_CONT_CONV)
 
#define LIS3MDL_PARAMS
 
#define LIS3MDL_SAUL_INFO   { .name = "lis3mdl" }
 

Macro Definition Documentation

◆ LIS3MDL_PARAMS

#define LIS3MDL_PARAMS
Value:
{ .i2c = LIS3MDL_PARAM_I2C, \
.addr = LIS3MDL_PARAM_ADDR, \
.xy_mode = LIS3MDL_PARAM_XYMODE, \
.z_mode = LIS3MDL_PARAM_ZMODE, \
.odr = LIS3MDL_PARAM_ODR, \
.scale = LIS3MDL_PARAM_SCALE, \
.op_mode = LIS3MDL_PARAM_OPMODE }

Definition at line 57 of file lis3mdl_params.h.

Variable Documentation

◆ lis3mdl_params

const lis3mdl_params_t lis3mdl_params[]
static
Initial value:
=
{
LIS3MDL_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 73 of file lis3mdl_params.h.

◆ lis3mdl_saul_info

const saul_reg_info_t lis3mdl_saul_info[]
static
Initial value:
=
{
LIS3MDL_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 81 of file lis3mdl_params.h.