Loading...
Searching...
No Matches
sps30_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
17#ifndef SPS30_PARAMS_H
18#define SPS30_PARAMS_H
19
20#include "board.h"
21#include "sps30.h"
22#include "saul_reg.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef SPS30_PARAM_I2C_DEV
33#define SPS30_PARAM_I2C_DEV (I2C_DEV(0))
34#endif
35#ifndef SPS30_PARAMS
36#define SPS30_PARAMS { .i2c_dev = SPS30_PARAM_I2C_DEV }
37#endif
38#ifndef SPS30_SAUL_INFO
39#define SPS30_SAUL_INFO { .name = "sps30" }
40#endif
47{
48 SPS30_PARAMS
49};
50
54#define SPS30_NUM ARRAY_SIZE(sps30_params)
55
60{
61 SPS30_SAUL_INFO
62};
63
67#define SPS30_INFO_NUM ARRAY_SIZE(sps30_saul_info)
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* SPS30_PARAMS_H */
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:49
SPS30 device parameters.
Definition sps30.h:75