Default configuration for the Honeywell HMC5883L 3-axis digital compass. More...

Detailed Description

Default configuration for the Honeywell HMC5883L 3-axis digital compass.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file hmc5883l_params.h.

#include "board.h"
#include "hmc5883l.h"
#include "saul_reg.h"
+ Include dependency graph for hmc5883l_params.h:

Go to the source code of this file.

Variables

static const hmc5883l_params_t hmc5883l_params []
 Allocate some memory to store the actual configuration. More...
 
static const saul_reg_info_t hmc5883l_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Set default configuration parameters

#define HMC5883L_PARAM_DEV   I2C_DEV(0)
 
#define HMC5883L_PARAM_DOR   (HMC5883L_DOR_15)
 
#define HMC5883L_PARAM_MEAS_MODE   (HMC5883L_MEAS_MODE_NORMAL)
 
#define HMC5883L_PARAM_MEAS_AVG   (HMC5883L_MEAS_AVG_NONE)
 
#define HMC5883L_PARAM_OP_MODE   (HMC5883L_OP_MODE_CONTINUOUS)
 
#define HMC5883L_PARAM_GAIN   (HMC5883L_GAIN_1090)
 
#define HMC5883L_PARAM_INT_PIN   (GPIO_UNDEF)
 
#define HMC5883L_PARAMS
 
#define HMC5883L_SAUL_INFO   { .name = "hmc5883l" }
 

Macro Definition Documentation

◆ HMC5883L_PARAMS

#define HMC5883L_PARAMS
Value:
{ \
.dev = HMC5883L_PARAM_DEV, \
.dor = HMC5883L_PARAM_DOR, \
.gain = HMC5883L_PARAM_GAIN, \
.meas_mode = HMC5883L_PARAM_MEAS_MODE, \
.meas_avg = HMC5883L_PARAM_MEAS_AVG, \
.op_mode = HMC5883L_PARAM_OP_MODE, \
}

Definition at line 67 of file hmc5883l_params.h.

Variable Documentation

◆ hmc5883l_params

const hmc5883l_params_t hmc5883l_params[]
static
Initial value:
=
{
HMC5883L_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 85 of file hmc5883l_params.h.

◆ hmc5883l_saul_info

const saul_reg_info_t hmc5883l_saul_info[]
static
Initial value:
=
{
HMC5883L_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 93 of file hmc5883l_params.h.