Loading...
Searching...
No Matches
lsm6dsxx_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 OTA keys S.A.
3 * Copyright (C) 2024 HAW Hamburg.
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 *
9 */
10
23#ifndef LSM6DSXX_PARAMS_H
24#define LSM6DSXX_PARAMS_H
25
26#include "board.h"
27#include "lsm6dsxx.h"
28#include "saul_reg.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
38#ifndef LSM6DSXX_PARAM_I2C
39#define LSM6DSXX_PARAM_I2C I2C_DEV(0)
40#endif
41#ifndef LSM6DSXX_PARAM_ADDR
42#define LSM6DSXX_PARAM_ADDR (0x6B) /* (0x6A) */
43#endif
44#ifndef LSM6DSXX_PARAM_ACC_ODR
45#define LSM6DSXX_PARAM_ACC_ODR (LSM6DSXX_DATA_RATE_52HZ)
46#endif
47#ifndef LSM6DSXX_PARAM_GYRO_ODR
48#define LSM6DSXX_PARAM_GYRO_ODR (LSM6DSXX_DATA_RATE_52HZ)
49#endif
50#ifndef LSM6DSXX_PARAM_ACC_FS
51#define LSM6DSXX_PARAM_ACC_FS (LSM6DSXX_ACC_FS_2G)
52#endif
53#ifndef LSM6DSXX_PARAM_GYRO_FS
54#define LSM6DSXX_PARAM_GYRO_FS (LSM6DSXX_GYRO_FS_245DPS)
55#endif
56#ifndef LSM6DSXX_PARAM_ACC_FIFO_DEC
57#define LSM6DSXX_PARAM_ACC_FIFO_DEC (LSM6DSXX_DECIMATION_NO)
58#endif
59#ifndef LSM6DSXX_PARAM_GYRO_FIFO_DEC
60#define LSM6DSXX_PARAM_GYRO_FIFO_DEC (LSM6DSXX_DECIMATION_NO)
61#endif
62
63#ifndef LSM6DSXX_PARAMS
64#define LSM6DSXX_PARAMS { .i2c = LSM6DSXX_PARAM_I2C, \
65 .addr = LSM6DSXX_PARAM_ADDR, \
66 .acc_odr = LSM6DSXX_PARAM_ACC_ODR, \
67 .gyro_odr = LSM6DSXX_PARAM_GYRO_ODR, \
68 .acc_fs = LSM6DSXX_PARAM_ACC_FS, \
69 .gyro_fs = LSM6DSXX_PARAM_GYRO_FS, \
70 .acc_decimation = LSM6DSXX_PARAM_ACC_FIFO_DEC, \
71 .gyro_decimation = LSM6DSXX_PARAM_GYRO_FIFO_DEC }
72#endif
73#ifndef LSM6DSXX_SAUL_INFO
74#define LSM6DSXX_SAUL_INFO { .name = "lsm6dsxx" }
75#endif
82{
83 LSM6DSXX_PARAMS
84};
85
90{
91 LSM6DSXX_SAUL_INFO
92};
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif /* LSM6DSXX_PARAMS_H */
Device driver interface for the LSM6DSXX 3D accelerometer/gyroscope.
static const lsm6dsxx_params_t lsm6dsxx_params[]
Allocate some memory to store the actual configuration.
static const saul_reg_info_t lsm6dsxx_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
LSM6DSXX driver parameters.
Definition lsm6dsxx.h:93
Additional data to collect for each entry.
Definition saul_reg.h:49