Loading...
Searching...
No Matches
qmi8658_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Technische Universität Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "qmi8658.h"
19#include "saul_reg.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#ifndef QMI8658_PARAM_I2C
31# define QMI8658_PARAM_I2C I2C_DEV(0)
32#endif
33#ifndef QMI8658_PARAM_ADDR
35# define QMI8658_PARAM_ADDR CONFIG_QMI8658_PARAM_I2C
36#endif
37#ifndef QMI8658_PARAM_ACC_ODR
39# define QMI8658_PARAM_ACC_ODR QMI8658_DATA_RATE_1KHZ
40#endif
41#ifndef QMI8658_PARAM_ACC_LOWPWR_ODR
43# define QMI8658_PARAM_ACC_LOWPWR_ODR QMI8658_ACC_LOWPWR_DATA_RATE_21HZ
44#endif
45#ifndef QMI8658_PARAM_ACC_FS
47# define QMI8658_PARAM_ACC_FS QMI8658_ACC_FS_2G
48#endif
49#ifndef QMI8658_PARAM_GYRO_ODR
51# define QMI8658_PARAM_GYRO_ODR QMI8658_DATA_RATE_1KHZ
52#endif
53#ifndef QMI8658_PARAM_GYRO_FS
55# define QMI8658_PARAM_GYRO_FS QMI8658_GYRO_FS_256DPS
56#endif
57
66#ifndef QMI8658_PARAM_TAP_PRIORITY
67# define QMI8658_PARAM_TAP_PRIORITY QMI8658_TAP_PRIO_ZXY
68#endif
70#ifndef QMI8658_PARAM_TAP_PEAKWIN
71# define QMI8658_PARAM_TAP_PEAKWIN 20
72#endif
74#ifndef QMI8658_PARAM_TAP_TAPWIN
75# define QMI8658_PARAM_TAP_TAPWIN 50
76#endif
78#ifndef QMI8658_PARAM_TAP_DTAPWIN
79# define QMI8658_PARAM_TAP_DTAPWIN 250
80#endif
82#ifndef QMI8658_PARAM_TAP_ALPHA
83# define QMI8658_PARAM_TAP_ALPHA 625
84#endif
86#ifndef QMI8658_PARAM_TAP_GAMMA
87# define QMI8658_PARAM_TAP_GAMMA 2500
88#endif
90#ifndef QMI8658_PARAM_TAP_PEAKMAGTHR
91# define QMI8658_PARAM_TAP_PEAKMAGTHR 800
92#endif
94#ifndef QMI8658_PARAM_TAP_UDMTHR
95# define QMI8658_PARAM_TAP_UDMTHR 400
96#endif
98
99#ifndef QMI8658_PARAMS
101# define QMI8658_PARAMS { .i2c = QMI8658_PARAM_I2C, \
102 .addr = QMI8658_PARAM_ADDR, \
103 .acc_odr = QMI8658_PARAM_ACC_ODR, \
104 .acc_lowpwr_odr = QMI8658_PARAM_ACC_LOWPWR_ODR, \
105 .gyro_odr = QMI8658_PARAM_GYRO_ODR, \
106 .acc_fs = QMI8658_PARAM_ACC_FS, \
107 .gyro_fs = QMI8658_PARAM_GYRO_FS, }
108#endif
109#ifndef QMI8658_SAUL_INFO
111# define QMI8658_SAUL_INFO { .name = "qmi8658" }
112#endif
114
119{
121};
122
130
131#ifdef __cplusplus
132}
133#endif
134
#define QMI8658_SAUL_INFO
Information for the SAUL registry.
#define QMI8658_PARAMS
Configuration parameter set.
static const qmi8658_params_t qmi8658_params[]
Configuration struct.
static const saul_reg_info_t qmi8658_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
Device initialization parameters.
Definition qmi8658.h:171
Additional data to collect for each entry.
Definition saul_reg.h:48