Loading...
Searching...
No Matches
sps30_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
15
16#include "board.h"
17#include "sps30.h"
18#include "saul_reg.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28#ifndef SPS30_PARAM_I2C_DEV
29#define SPS30_PARAM_I2C_DEV (I2C_DEV(0))
30#endif
31#ifndef SPS30_PARAMS
32#define SPS30_PARAMS { .i2c_dev = SPS30_PARAM_I2C_DEV }
33#endif
34#ifndef SPS30_SAUL_INFO
35#define SPS30_SAUL_INFO { .name = "sps30" }
36#endif
38
43{
44 SPS30_PARAMS
45};
46
50#define SPS30_NUM ARRAY_SIZE(sps30_params)
51
56{
57 SPS30_SAUL_INFO
58};
59
63#define SPS30_INFO_NUM ARRAY_SIZE(sps30_saul_info)
64
65#ifdef __cplusplus
66}
67#endif
68
SAUL registry interface definition.
Driver for the Sensirion SPS30 Particulate Matter Sensor.
static const sps30_params_t sps30_params[]
SPS30 configuration.
static const saul_reg_info_t sps30_saul_info[]
Additional meta information to keep in the SAUL registry.
Additional data to collect for each entry.
Definition saul_reg.h:48
SPS30 device parameters.
Definition sps30.h:74