19#ifndef BMX055_PARAMS_H
20#define BMX055_PARAMS_H
32#ifndef BMX055_PARAM_I2C
33#define BMX055_PARAM_I2C I2C_DEV(0)
35#ifndef BMX055_PARAM_MAG_ADDR
36#define BMX055_PARAM_MAG_ADDR CONFIG_BMX055_MAG_ADDR_DEFAULT
38#ifndef BMX055_PARAM_ACC_ADDR
39#define BMX055_PARAM_ACC_ADDR CONFIG_BMX055_ACC_ADDR_DEFAULT
41#ifndef BMX055_PARAM_GYRO_ADDR
42#define BMX055_PARAM_GYRO_ADDR CONFIG_BMX055_GYRO_ADDR_DEFAULT
44#ifndef BMX055_PARAM_INT1
45#define BMX055_PARAM_INT1 GPIO_PIN(0, 0)
47#ifndef BMX055_PARAM_INT2
48#define BMX055_PARAM_INT2 GPIO_PIN(0, 1)
50#ifndef BMX055_PARAM_MAG_RATE
51#define BMX055_PARAM_MAG_RATE BMX055_MAG_DRATE_DEFAULT
53#ifndef BMX055_PARAM_ACC_RANGE
54#define BMX055_PARAM_ACC_RANGE BMX055_ACC_RANGE_2G
56#ifndef BMX055_PARAM_GYRO_SCALE
57#define BMX055_PARAM_GYRO_SCALE BMX055_GYRO_SCALE_2000DPS
61#define BMX055_PARAMS \
62 { .i2c = BMX055_PARAM_I2C, \
63 .addr_mag = BMX055_PARAM_MAG_ADDR, \
64 .addr_acc = BMX055_PARAM_ACC_ADDR, \
65 .addr_gyro = BMX055_PARAM_GYRO_ADDR, \
66 .int1_pin = BMX055_PARAM_INT1, \
67 .int2_pin = BMX055_PARAM_INT2, \
68 .mag_rate = BMX055_PARAM_MAG_RATE, \
69 .acc_range = BMX055_PARAM_ACC_RANGE, \
70 .gyro_scale = BMX055_PARAM_GYRO_SCALE, \
74#ifndef BMX055_SAULINFO
75#define BMX055_SAULINFO \
76 { { .name = "Magnetometer (bmx055)" }, \
77 { .name = "Accelerometer (bmx055)" }, \
78 { .name = "Gyroscope (bmx055)" }, \
static const bmx055_params_t bmx055_params[]
BMX055 configuration.
static const saul_reg_info_t bmx055_saul_info[][3]
SAUL registry entries.
Data structure holding the device parameters needed for initialization.
Additional data to collect for each entry.