Go to the documentation of this file.
   21 #ifndef LSM6DSL_PARAMS_H 
   22 #define LSM6DSL_PARAMS_H 
   36 #ifndef LSM6DSL_PARAM_I2C 
   37 #define LSM6DSL_PARAM_I2C            I2C_DEV(0) 
   39 #ifndef LSM6DSL_PARAM_ADDR 
   40 #define LSM6DSL_PARAM_ADDR           (0x6B)  
   42 #ifndef LSM6DSL_PARAM_ACC_ODR 
   43 #define LSM6DSL_PARAM_ACC_ODR        (LSM6DSL_DATA_RATE_52HZ) 
   45 #ifndef LSM6DSL_PARAM_GYRO_ODR 
   46 #define LSM6DSL_PARAM_GYRO_ODR       (LSM6DSL_DATA_RATE_52HZ) 
   48 #ifndef LSM6DSL_PARAM_ACC_FS 
   49 #define LSM6DSL_PARAM_ACC_FS         (LSM6DSL_ACC_FS_2G) 
   51 #ifndef LSM6DSL_PARAM_GYRO_FS 
   52 #define LSM6DSL_PARAM_GYRO_FS        (LSM6DSL_GYRO_FS_245DPS) 
   54 #ifndef LSM6DSL_PARAM_ACC_FIFO_DEC 
   55 #define LSM6DSL_PARAM_ACC_FIFO_DEC   (LSM6DSL_DECIMATION_NO) 
   57 #ifndef LSM6DSL_PARAM_GYRO_FIFO_DEC 
   58 #define LSM6DSL_PARAM_GYRO_FIFO_DEC  (LSM6DSL_DECIMATION_NO) 
   61 #ifndef LSM6DSL_PARAMS 
   62 #define LSM6DSL_PARAMS               { .i2c             = LSM6DSL_PARAM_I2C,          \ 
   63                                        .addr            = LSM6DSL_PARAM_ADDR,         \ 
   64                                        .acc_odr         = LSM6DSL_PARAM_ACC_ODR,      \ 
   65                                        .gyro_odr        = LSM6DSL_PARAM_GYRO_ODR,     \ 
   66                                        .acc_fs          = LSM6DSL_PARAM_ACC_FS,       \ 
   67                                        .gyro_fs         = LSM6DSL_PARAM_GYRO_FS,      \ 
   68                                        .acc_decimation  = LSM6DSL_PARAM_ACC_FIFO_DEC, \ 
   69                                        .gyro_decimation = LSM6DSL_PARAM_GYRO_FIFO_DEC } 
   71 #ifndef LSM6DSL_SAUL_INFO 
   72 #define LSM6DSL_SAUL_INFO            { .name = "lsm6dsl" } 
  
 
Device driver interface for the LSM6DSL 3D accelerometer/gyroscope.
 
Additional data to collect for each entry.
 
LSM6DSL driver parameters.
 
static const saul_reg_info_t lsm6dsl_saul_info[]
Additional meta information to keep in the SAUL registry.
 
SAUL registry interface definition.
 
static const lsm6dsl_params_t lsm6dsl_params[]
Allocate some memory to store the actual configuration.