Loading...
Searching...
No Matches
qmc5883l_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "saul_reg.h"
19#include "board.h"
20#include "qmc5883l.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#ifndef QMC5883L_PARAM_I2C
31#define QMC5883L_PARAM_I2C I2C_DEV(0)
32#endif
33#ifndef QMC5883L_PARAM_PIN_DRDY
34#define QMC5883L_PARAM_PIN_DRDY (GPIO_UNDEF)
35#endif
36#ifndef QMC5883L_PARAM_ODR
37#define QMC5883L_PARAM_ODR (QMC5883L_ODR_10HZ)
38#endif
39#ifndef QMC5883L_PARAM_RNG
40#define QMC5883L_PARAM_RNG (QMC5883L_RNG_2G)
41#endif
42#ifndef QMC5883L_PARAM_OSR
43#define QMC5883L_PARAM_OSR (QMC5883L_OSR_64)
44#endif
45
46#ifndef QMC5883L_PARAMS
47#define QMC5883L_PARAMS { .i2c = QMC5883L_PARAM_I2C, \
48 .pin_drdy = QMC5883L_PARAM_PIN_DRDY, \
49 .odr = QMC5883L_PARAM_ODR, \
50 .rng = QMC5883L_PARAM_RNG, \
51 .osr = QMC5883L_PARAM_OSR }
52#endif
53
54#ifndef QMC5883L_SAUL_INFO
55#define QMC5883L_SAUL_INFO { .name = "qmc5883l" }
56#endif
58
63{
64 QMC5883L_PARAMS
65};
66
71{
72 QMC5883L_SAUL_INFO
73};
74
75#ifdef __cplusplus
76}
77#endif
78
API definition for the QMC5883L device driver.
static const saul_reg_info_t qmc5883l_saul_info[]
Additional meta information to keep in the SAUL registry.
static const qmc5883l_params_t qmc5883l_params[]
QMC5883L configuration.
SAUL registry interface definition.
QMC5883L initialization parameters.
Definition qmc5883l.h:133
Additional data to collect for each entry.
Definition saul_reg.h:48