All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

Default configuration for MAG3110 devices. More...

Detailed Description

Default configuration for MAG3110 devices.

Author
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file mag3110_params.h.

#include "board.h"
#include "saul_reg.h"
#include "mag3110.h"
#include "mag3110_reg.h"
+ Include dependency graph for mag3110_params.h:

Go to the source code of this file.

Variables

static const mag3110_params_t mag3110_params []
 MAG3110 configuration.
 
static const saul_reg_info_t mag3110_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Default configuration parameters for the MAG3110 driver

#define MAG3110_PARAM_I2C   (I2C_DEV(0))
 
#define MAG3110_PARAM_ADDR   (CONFIG_MAG3110_I2C_ADDRESS)
 
#define MAG3110_PARAM_OFFSET   { 0, 0, 0 }
 
#define MAG3110_PARAMS
 
#define MAG3110_SAUL_INFO   { .name = "mag3110" }
 

Macro Definition Documentation

◆ MAG3110_PARAM_ADDR

#define MAG3110_PARAM_ADDR   (CONFIG_MAG3110_I2C_ADDRESS)

Definition at line 39 of file mag3110_params.h.

◆ MAG3110_PARAM_I2C

#define MAG3110_PARAM_I2C   (I2C_DEV(0))

Definition at line 36 of file mag3110_params.h.

◆ MAG3110_PARAM_OFFSET

#define MAG3110_PARAM_OFFSET   { 0, 0, 0 }

Definition at line 42 of file mag3110_params.h.

◆ MAG3110_PARAMS

#define MAG3110_PARAMS
Value:
{ .i2c = MAG3110_PARAM_I2C, \
.addr = MAG3110_PARAM_ADDR, \
.type = MAG3110_ID, \
.offset = MAG3110_PARAM_OFFSET }
#define MAG3110_DROS_DEFAULT
Default Setting for testing.
Definition mag3110.h:109
#define MAG3110_ID
Device ID.
Definition mag3110_reg.h:57

Definition at line 45 of file mag3110_params.h.

◆ MAG3110_SAUL_INFO

#define MAG3110_SAUL_INFO   { .name = "mag3110" }

Definition at line 52 of file mag3110_params.h.

Variable Documentation

◆ mag3110_params

const mag3110_params_t mag3110_params[]
static
Initial value:
=
{
MAG3110_PARAMS
}

MAG3110 configuration.

Definition at line 59 of file mag3110_params.h.

◆ mag3110_saul_info

const saul_reg_info_t mag3110_saul_info[]
static
Initial value:
=
{
MAG3110_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 67 of file mag3110_params.h.