19 #ifndef ADXL345_PARAMS_H
20 #define ADXL345_PARAMS_H
34 #ifndef ADXL345_PARAM_I2C
35 #define ADXL345_PARAM_I2C (I2C_DEV(0))
37 #ifndef ADXL345_PARAM_ADDR
38 #define ADXL345_PARAM_ADDR (ADXL345_ADDR_53)
40 #ifndef ADXL345_PARAM_RATE
41 #define ADXL345_PARAM_RATE (ADXL345_RATE_200HZ)
43 #ifndef ADXL345_PARAM_RANGE
44 #define ADXL345_PARAM_RANGE (ADXL345_RANGE_16G)
46 #ifndef ADXL345_PARAM_INTERRUPT
47 #define ADXL345_PARAM_INTERRUPT {0x0F, 0xBF, 0x40, 0xF0, 0xFF, 0x00, 0x00, \
48 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F}
50 #ifndef ADXL345_PARAM_FULL_RES
51 #define ADXL345_PARAM_FULL_RES (1)
53 #ifndef ADXL345_PARAM_OFFSET
54 #define ADXL345_PARAM_OFFSET { 0, 0, 0 }
57 #ifndef ADXL345_PARAMS
58 #define ADXL345_PARAMS { .i2c = ADXL345_PARAM_I2C, \
59 .addr = ADXL345_PARAM_ADDR, \
60 .offset = ADXL345_PARAM_OFFSET, \
61 .range = ADXL345_PARAM_RANGE, \
62 .rate = ADXL345_PARAM_RATE, \
63 .full_res = ADXL345_PARAM_FULL_RES }
65 #ifndef ADXL345_SAUL_INFO
66 #define ADXL345_SAUL_INFO { .name = "adxl345" }
Interface definition for the ADXL345.
static const adxl345_params_t adxl345_params[]
ADXL345 configuration.
static const saul_reg_info_t adxl345_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
Configuration struct for the ADXL345 sensor.
Additional data to collect for each entry.