Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
25
extern
"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
41
46
static
const
sps30_params_t
sps30_params
[] =
47
{
48
SPS30_PARAMS
49
};
50
54
#define SPS30_NUM ARRAY_SIZE(sps30_params)
55
59
static
const
saul_reg_info_t
sps30_saul_info
[] =
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 */
74
sps30_params_t
SPS30 device parameters.
Definition:
sps30.h:75
saul_reg_info_t
Additional data to collect for each entry.
Definition:
saul_reg.h:49
sps30.h
Driver for the Sensirion SPS30 Particulate Matter Sensor.
saul_reg.h
SAUL registry interface definition.
sps30_saul_info
static const saul_reg_info_t sps30_saul_info[]
Additional meta information to keep in the SAUL registry.
Definition:
sps30_params.h:59
sps30_params
static const sps30_params_t sps30_params[]
SPS30 configuration.
Definition:
sps30_params.h:46
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17