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
9#pragma once
10
18
19#include "board.h"
20#include "sps30.h"
21#include "saul_reg.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef SPS30_PARAM_I2C_DEV
32#define SPS30_PARAM_I2C_DEV (I2C_DEV(0))
33#endif
34#ifndef SPS30_PARAMS
35#define SPS30_PARAMS { .i2c_dev = SPS30_PARAM_I2C_DEV }
36#endif
37#ifndef SPS30_SAUL_INFO
38#define SPS30_SAUL_INFO { .name = "sps30" }
39#endif
41
46{
47 SPS30_PARAMS
48};
49
53#define SPS30_NUM ARRAY_SIZE(sps30_params)
54
59{
60 SPS30_SAUL_INFO
61};
62
66#define SPS30_INFO_NUM ARRAY_SIZE(sps30_saul_info)
67
68#ifdef __cplusplus
69}
70#endif
71
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