Loading...
Searching...
No Matches
mpl3115a2_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "saul_reg.h"
20#include "mpl3115a2.h"
21#include "mpl3115a2_reg.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef MPL3115A2_PARAM_I2C
32#define MPL3115A2_PARAM_I2C I2C_DEV(0)
33#endif
34
35#ifndef MPL3115A2_PARAM_ADDR
36#define MPL3115A2_PARAM_ADDR MPL3115A2_I2C_ADDRESS
37#endif
38
39#ifndef MPL3115A2_PARAM_RATIO
40#define MPL3115A2_PARAM_RATIO MPL3115A2_OS_RATIO_DEFAULT
41#endif
42
43#ifndef MPL3115A2_PARAMS
44#define MPL3115A2_PARAMS { .i2c = MPL3115A2_PARAM_I2C, \
45 .addr = MPL3115A2_PARAM_ADDR, \
46 .ratio = MPL3115A2_PARAM_RATIO }
47#endif
48#ifndef MPL3115A2_SAUL_INFO
49#define MPL3115A2_SAUL_INFO { .name = "mpl3115a2" }
50#endif
52
57{
58 MPL3115A2_PARAMS
59};
60
65{
66 MPL3115A2_SAUL_INFO
67};
68
69#ifdef __cplusplus
70}
71#endif
72
Interface definition for the MPL3115A2 sensor driver.
static const mpl3115a2_params_t mpl3115a2_params[]
MPL3115A2 configuration.
static const saul_reg_info_t mpl3115a2_saul_info[]
Additional meta information to keep in the SAUL registry.
Register definition for the MPL3115A2 sensor driver.
SAUL registry interface definition.
Configuration parameters.
Definition mpl3115a2.h:89
Additional data to collect for each entry.
Definition saul_reg.h:48