Go to the documentation of this file.
19 #ifndef L3G4200D_PARAMS_H
20 #define L3G4200D_PARAMS_H
34 #ifndef L3G4200D_PARAM_I2C
35 #define L3G4200D_PARAM_I2C I2C_DEV(0)
37 #ifndef L3G4200D_PARAM_ADDR
38 #define L3G4200D_PARAM_ADDR (CONFIG_L3G4200D_DEFAULT_ADDRESS)
40 #ifndef L3G4200D_PARAM_INT1
41 #define L3G4200D_PARAM_INT1 (GPIO_PIN(0, 0))
43 #ifndef L3G4200D_PARAM_INT2
44 #define L3G4200D_PARAM_INT2 (GPIO_PIN(0, 1))
46 #ifndef L3G4200D_PARAM_MODE
47 #define L3G4200D_PARAM_MODE (L3G4200D_MODE_200_25)
49 #ifndef L3G4200D_PARAM_SCALE
50 #define L3G4200D_PARAM_SCALE (L3G4200D_SCALE_500DPS)
53 #ifndef L3G4200D_PARAMS
54 #define L3G4200D_PARAMS { .i2c = L3G4200D_PARAM_I2C, \
55 .addr = L3G4200D_PARAM_ADDR, \
56 .int1 = L3G4200D_PARAM_INT1, \
57 .int2 = L3G4200D_PARAM_INT2, \
58 .mode = L3G4200D_PARAM_MODE, \
59 .scale = L3G4200D_PARAM_SCALE }
61 #ifndef L3G4200D_SAUL_INFO
62 #define L3G4200D_SAUL_INFO { .name = "l3g4200d" }
Device initialization parameters.
Device driver interface for the L3G4200D gyroscope.
Additional data to collect for each entry.
static const saul_reg_info_t l3g4200d_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
static const l3g4200d_params_t l3g4200d_params[]
Allocate some memory to store the actual configuration.