Loading...
Searching...
No Matches

Default configuration for LSM6DSXX devices. More...

Detailed Description

Default configuration for LSM6DSXX devices.

Author
Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m
Miquel Borrell mique.nosp@m.l.bo.nosp@m.rrell.nosp@m.@haw.nosp@m.-hamb.nosp@m.urg..nosp@m.de

Definition in file lsm6dsxx_params.h.

#include "board.h"
#include "lsm6dsxx.h"
#include "saul_reg.h"
+ Include dependency graph for lsm6dsxx_params.h:

Go to the source code of this file.

Variables

static const lsm6dsxx_params_t lsm6dsxx_params []
 Allocate some memory to store the actual configuration.
 
static const saul_reg_info_t lsm6dsxx_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters

#define LSM6DSXX_PARAM_I2C   I2C_DEV(0)
 
#define LSM6DSXX_PARAM_ADDR   (0x6B) /* (0x6A) */
 
#define LSM6DSXX_PARAM_ACC_ODR   (LSM6DSXX_DATA_RATE_52HZ)
 
#define LSM6DSXX_PARAM_GYRO_ODR   (LSM6DSXX_DATA_RATE_52HZ)
 
#define LSM6DSXX_PARAM_ACC_FS   (LSM6DSXX_ACC_FS_2G)
 
#define LSM6DSXX_PARAM_GYRO_FS   (LSM6DSXX_GYRO_FS_245DPS)
 
#define LSM6DSXX_PARAM_ACC_FIFO_DEC   (LSM6DSXX_DECIMATION_NO)
 
#define LSM6DSXX_PARAM_GYRO_FIFO_DEC   (LSM6DSXX_DECIMATION_NO)
 
#define LSM6DSXX_PARAMS
 
#define LSM6DSXX_SAUL_INFO   { .name = "lsm6dsxx" }
 

Macro Definition Documentation

◆ LSM6DSXX_PARAM_ACC_FIFO_DEC

#define LSM6DSXX_PARAM_ACC_FIFO_DEC   (LSM6DSXX_DECIMATION_NO)

Definition at line 57 of file lsm6dsxx_params.h.

◆ LSM6DSXX_PARAM_ACC_FS

#define LSM6DSXX_PARAM_ACC_FS   (LSM6DSXX_ACC_FS_2G)

Definition at line 51 of file lsm6dsxx_params.h.

◆ LSM6DSXX_PARAM_ACC_ODR

#define LSM6DSXX_PARAM_ACC_ODR   (LSM6DSXX_DATA_RATE_52HZ)

Definition at line 45 of file lsm6dsxx_params.h.

◆ LSM6DSXX_PARAM_ADDR

#define LSM6DSXX_PARAM_ADDR   (0x6B) /* (0x6A) */

Definition at line 42 of file lsm6dsxx_params.h.

◆ LSM6DSXX_PARAM_GYRO_FIFO_DEC

#define LSM6DSXX_PARAM_GYRO_FIFO_DEC   (LSM6DSXX_DECIMATION_NO)

Definition at line 60 of file lsm6dsxx_params.h.

◆ LSM6DSXX_PARAM_GYRO_FS

#define LSM6DSXX_PARAM_GYRO_FS   (LSM6DSXX_GYRO_FS_245DPS)

Definition at line 54 of file lsm6dsxx_params.h.

◆ LSM6DSXX_PARAM_GYRO_ODR

#define LSM6DSXX_PARAM_GYRO_ODR   (LSM6DSXX_DATA_RATE_52HZ)

Definition at line 48 of file lsm6dsxx_params.h.

◆ LSM6DSXX_PARAM_I2C

#define LSM6DSXX_PARAM_I2C   I2C_DEV(0)

Definition at line 39 of file lsm6dsxx_params.h.

◆ LSM6DSXX_PARAMS

#define LSM6DSXX_PARAMS
Value:
{ .i2c = LSM6DSXX_PARAM_I2C, \
.addr = LSM6DSXX_PARAM_ADDR, \
.acc_odr = LSM6DSXX_PARAM_ACC_ODR, \
.gyro_odr = LSM6DSXX_PARAM_GYRO_ODR, \
.acc_fs = LSM6DSXX_PARAM_ACC_FS, \
.gyro_fs = LSM6DSXX_PARAM_GYRO_FS, \
.acc_decimation = LSM6DSXX_PARAM_ACC_FIFO_DEC, \
.gyro_decimation = LSM6DSXX_PARAM_GYRO_FIFO_DEC }

Definition at line 64 of file lsm6dsxx_params.h.

◆ LSM6DSXX_SAUL_INFO

#define LSM6DSXX_SAUL_INFO   { .name = "lsm6dsxx" }

Definition at line 74 of file lsm6dsxx_params.h.

Variable Documentation

◆ lsm6dsxx_params

const lsm6dsxx_params_t lsm6dsxx_params[]
static
Initial value:
=
{
LSM6DSXX_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 81 of file lsm6dsxx_params.h.

◆ lsm6dsxx_saul_info

const saul_reg_info_t lsm6dsxx_saul_info[]
static
Initial value:
=
{
LSM6DSXX_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 89 of file lsm6dsxx_params.h.