Default configuration for LSM303DLHC devices. More...

Detailed Description

Default configuration for LSM303DLHC devices.

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

Definition in file lsm303dlhc_params.h.

#include "board.h"
#include "lsm303dlhc.h"
#include "saul_reg.h"
+ Include dependency graph for lsm303dlhc_params.h:

Go to the source code of this file.

Variables

static const lsm303dlhc_params_t lsm303dlhc_params []
 Allocate some memory to store the actual configuration. More...
 
static const saul_reg_info_t lsm303dlhc_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 
#define LSM303DLHC_PARAM_I2C   I2C_DEV(0)
 Set default configuration parameters.
 
#define LSM303DLHC_PARAM_ACC_ADDR   (0x19)
 
#define LSM303DLHC_PARAM_ACC_PIN   (GPIO_PIN(0, 0))
 
#define LSM303DLHC_PARAM_ACC_RATE   (LSM303DLHC_ACC_SAMPLE_RATE_10HZ)
 
#define LSM303DLHC_PARAM_ACC_SCALE   (LSM303DLHC_ACC_SCALE_4G)
 
#define LSM303DLHC_PARAM_MAG_ADDR   (0x1e)
 
#define LSM303DLHC_PARAM_MAG_PIN   (GPIO_PIN(0, 1))
 
#define LSM303DLHC_PARAM_MAG_RATE   (LSM303DLHC_MAG_SAMPLE_RATE_15HZ)
 
#define LSM303DLHC_PARAM_MAG_GAIN   (LSM303DLHC_MAG_GAIN_450_400_GAUSS)
 
#define LSM303DLHC_PARAMS
 
#define LSM303DLHC_SAUL_INFO   { .name = "lsm303dlhc" }
 

Macro Definition Documentation

◆ LSM303DLHC_PARAMS

#define LSM303DLHC_PARAMS
Value:
.acc_addr = LSM303DLHC_PARAM_ACC_ADDR, \
.acc_pin = LSM303DLHC_PARAM_ACC_PIN, \
.acc_rate = LSM303DLHC_PARAM_ACC_RATE, \
.acc_scale = LSM303DLHC_PARAM_ACC_SCALE, \
.mag_addr = LSM303DLHC_PARAM_MAG_ADDR, \
.mag_pin = LSM303DLHC_PARAM_MAG_PIN, \
.mag_rate = LSM303DLHC_PARAM_MAG_RATE, \
.mag_gain = LSM303DLHC_PARAM_MAG_GAIN }

Definition at line 63 of file lsm303dlhc_params.h.

Variable Documentation

◆ lsm303dlhc_params

const lsm303dlhc_params_t lsm303dlhc_params[]
static
Initial value:
=
{
LSM303DLHC_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 81 of file lsm303dlhc_params.h.

◆ lsm303dlhc_saul_info

const saul_reg_info_t lsm303dlhc_saul_info[]
static
Initial value:
=
{
LSM303DLHC_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 89 of file lsm303dlhc_params.h.

LSM303DLHC_PARAM_I2C
#define LSM303DLHC_PARAM_I2C
Set default configuration parameters.
Definition: lsm303dlhc_params.h:35