Default configuration for LSM6DSL devices. More...

Detailed Description

Default configuration for LSM6DSL devices.

Author
Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m

Definition in file lsm6dsl_params.h.

#include "board.h"
#include "lsm6dsl.h"
#include "saul_reg.h"
+ Include dependency graph for lsm6dsl_params.h:

Go to the source code of this file.

Variables

static const lsm6dsl_params_t lsm6dsl_params []
 Allocate some memory to store the actual configuration. More...
 
static const saul_reg_info_t lsm6dsl_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Set default configuration parameters

#define LSM6DSL_PARAM_I2C   I2C_DEV(0)
 
#define LSM6DSL_PARAM_ADDR   (0x6B) /* (0x6A) */
 
#define LSM6DSL_PARAM_ACC_ODR   (LSM6DSL_DATA_RATE_52HZ)
 
#define LSM6DSL_PARAM_GYRO_ODR   (LSM6DSL_DATA_RATE_52HZ)
 
#define LSM6DSL_PARAM_ACC_FS   (LSM6DSL_ACC_FS_2G)
 
#define LSM6DSL_PARAM_GYRO_FS   (LSM6DSL_GYRO_FS_245DPS)
 
#define LSM6DSL_PARAM_ACC_FIFO_DEC   (LSM6DSL_DECIMATION_NO)
 
#define LSM6DSL_PARAM_GYRO_FIFO_DEC   (LSM6DSL_DECIMATION_NO)
 
#define LSM6DSL_PARAMS
 
#define LSM6DSL_SAUL_INFO   { .name = "lsm6dsl" }
 

Macro Definition Documentation

◆ LSM6DSL_PARAMS

#define LSM6DSL_PARAMS
Value:
{ .i2c = LSM6DSL_PARAM_I2C, \
.addr = LSM6DSL_PARAM_ADDR, \
.acc_odr = LSM6DSL_PARAM_ACC_ODR, \
.gyro_odr = LSM6DSL_PARAM_GYRO_ODR, \
.acc_fs = LSM6DSL_PARAM_ACC_FS, \
.gyro_fs = LSM6DSL_PARAM_GYRO_FS, \
.acc_decimation = LSM6DSL_PARAM_ACC_FIFO_DEC, \
.gyro_decimation = LSM6DSL_PARAM_GYRO_FIFO_DEC }

Definition at line 62 of file lsm6dsl_params.h.

Variable Documentation

◆ lsm6dsl_params

const lsm6dsl_params_t lsm6dsl_params[]
static
Initial value:
=
{
LSM6DSL_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 79 of file lsm6dsl_params.h.

◆ lsm6dsl_saul_info

const saul_reg_info_t lsm6dsl_saul_info[]
static
Initial value:
=
{
LSM6DSL_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 87 of file lsm6dsl_params.h.