19#ifndef MMA8X5X_PARAMS_H
20#define MMA8X5X_PARAMS_H
34#ifndef MMA8X5X_PARAM_I2C
35#define MMA8X5X_PARAM_I2C (I2C_DEV(0))
37#ifndef MMA8X5X_PARAM_ADDR
38#define MMA8X5X_PARAM_ADDR (CONFIG_MMA8X5X_I2C_ADDRESS)
40#ifndef MMA8X5X_PARAM_RATE
41#define MMA8X5X_PARAM_RATE (MMA8X5X_RATE_200HZ)
43#ifndef MMA8X5X_PARAM_RANGE
44#define MMA8X5X_PARAM_RANGE (MMA8X5X_RANGE_2G)
46#ifndef MMA8X5X_PARAM_OFFSET
47#define MMA8X5X_PARAM_OFFSET { 0, 0, 0 }
51#define MMA8X5X_PARAMS { .i2c = MMA8X5X_PARAM_I2C, \
52 .addr = MMA8X5X_PARAM_ADDR, \
53 .rate = MMA8X5X_PARAM_RATE, \
54 .range = MMA8X5X_PARAM_RANGE, \
55 .offset = MMA8X5X_PARAM_OFFSET }
57#ifndef MMA8X5X_SAUL_INFO
58#define MMA8X5X_SAUL_INFO { .name = "mma8x5x" }
Interface definition for the MMA8x5x accelerometer driver.
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.
SAUL registry interface definition.
Configuration parameters.
Additional data to collect for each entry.