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

Default configuration for MMA8x5x devices. More...

Detailed Description

Default configuration for MMA8x5x devices.

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

Definition in file mma8x5x_params.h.

#include "board.h"
#include "saul_reg.h"
#include "mma8x5x.h"
+ Include dependency graph for mma8x5x_params.h:

Go to the source code of this file.

Variables

static const mma8x5x_params_t mma8x5x_params []
 MMA8x5x configuration.
 
static const saul_reg_info_t mma8x5x_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters for the MMA8x5x driver

#define MMA8X5X_PARAM_I2C   (I2C_DEV(0))
 
#define MMA8X5X_PARAM_ADDR   (CONFIG_MMA8X5X_I2C_ADDRESS)
 
#define MMA8X5X_PARAM_RATE   (MMA8X5X_RATE_200HZ)
 
#define MMA8X5X_PARAM_RANGE   (MMA8X5X_RANGE_2G)
 
#define MMA8X5X_PARAM_OFFSET   { 0, 0, 0 }
 
#define MMA8X5X_PARAMS
 
#define MMA8X5X_SAUL_INFO   { .name = "mma8x5x" }
 

Macro Definition Documentation

◆ MMA8X5X_PARAM_ADDR

#define MMA8X5X_PARAM_ADDR   (CONFIG_MMA8X5X_I2C_ADDRESS)

Definition at line 38 of file mma8x5x_params.h.

◆ MMA8X5X_PARAM_I2C

#define MMA8X5X_PARAM_I2C   (I2C_DEV(0))

Definition at line 35 of file mma8x5x_params.h.

◆ MMA8X5X_PARAM_OFFSET

#define MMA8X5X_PARAM_OFFSET   { 0, 0, 0 }

Definition at line 47 of file mma8x5x_params.h.

◆ MMA8X5X_PARAM_RANGE

#define MMA8X5X_PARAM_RANGE   (MMA8X5X_RANGE_2G)

Definition at line 44 of file mma8x5x_params.h.

◆ MMA8X5X_PARAM_RATE

#define MMA8X5X_PARAM_RATE   (MMA8X5X_RATE_200HZ)

Definition at line 41 of file mma8x5x_params.h.

◆ MMA8X5X_PARAMS

#define MMA8X5X_PARAMS
Value:
{ .i2c = MMA8X5X_PARAM_I2C, \
.addr = MMA8X5X_PARAM_ADDR, \
.rate = MMA8X5X_PARAM_RATE, \
.range = MMA8X5X_PARAM_RANGE, \
.offset = MMA8X5X_PARAM_OFFSET }

Definition at line 51 of file mma8x5x_params.h.

◆ MMA8X5X_SAUL_INFO

#define MMA8X5X_SAUL_INFO   { .name = "mma8x5x" }

Definition at line 58 of file mma8x5x_params.h.

Variable Documentation

◆ mma8x5x_params

const mma8x5x_params_t mma8x5x_params[]
static
Initial value:
=
{
MMA8X5X_PARAMS
}

MMA8x5x configuration.

Definition at line 65 of file mma8x5x_params.h.

◆ mma8x5x_saul_info

const saul_reg_info_t mma8x5x_saul_info[]
static
Initial value:
=
{
MMA8X5X_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 73 of file mma8x5x_params.h.