Loading...
Searching...
No Matches
mma7660_params.h File Reference

Default configuration for MMA7660 accelerometer. More...

Detailed Description

Default configuration for MMA7660 accelerometer.

Author
Michael Andersen m.and.nosp@m.erse.nosp@m.n@cs..nosp@m.berk.nosp@m.eley..nosp@m.edu

Definition in file mma7660_params.h.

#include "board.h"
#include "saul_reg.h"
#include "mma7660.h"
+ Include dependency graph for mma7660_params.h:

Go to the source code of this file.

Variables

static const mma7660_params_t mma7660_params []
 MMA7660 configuration.
 
static const saul_reg_info_t mma7660_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters for MMA7660 devices

#define MMA7660_PARAM_I2C   I2C_DEV(0)
 
#define MMA7660_PARAM_ADDR   (MMA7660_ADDR)
 
#define MMA7660_PARAM_AMSR   (MMA7660_SR_AM1)
 
#define MMA7660_PARAM_AWSR   (MMA7660_SR_AW1)
 
#define MMA7660_PARAM_FILT   (1)
 
#define MMA7660_PARAMS
 
#define MMA7660_SAUL_INFO   { .name = "mma7660" }
 

Macro Definition Documentation

◆ MMA7660_PARAM_ADDR

#define MMA7660_PARAM_ADDR   (MMA7660_ADDR)

Definition at line 41 of file mma7660_params.h.

◆ MMA7660_PARAM_AMSR

#define MMA7660_PARAM_AMSR   (MMA7660_SR_AM1)

Definition at line 44 of file mma7660_params.h.

◆ MMA7660_PARAM_AWSR

#define MMA7660_PARAM_AWSR   (MMA7660_SR_AW1)

Definition at line 47 of file mma7660_params.h.

◆ MMA7660_PARAM_FILT

#define MMA7660_PARAM_FILT   (1)

Definition at line 50 of file mma7660_params.h.

◆ MMA7660_PARAM_I2C

#define MMA7660_PARAM_I2C   I2C_DEV(0)

Definition at line 38 of file mma7660_params.h.

◆ MMA7660_PARAMS

#define MMA7660_PARAMS
Value:
{ .i2c = MMA7660_PARAM_I2C, \
.addr = MMA7660_PARAM_ADDR, \
.amsr = MMA7660_PARAM_AMSR, \
.awsr = MMA7660_PARAM_AWSR, \
.filt = MMA7660_PARAM_FILT}

Definition at line 54 of file mma7660_params.h.

◆ MMA7660_SAUL_INFO

#define MMA7660_SAUL_INFO   { .name = "mma7660" }

Definition at line 61 of file mma7660_params.h.

Variable Documentation

◆ mma7660_params

const mma7660_params_t mma7660_params[]
static
Initial value:
=
{
MMA7660_PARAMS,
}

MMA7660 configuration.

Definition at line 68 of file mma7660_params.h.

◆ mma7660_saul_info

const saul_reg_info_t mma7660_saul_info[]
static
Initial value:
=
{
MMA7660_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 76 of file mma7660_params.h.