Loading...
Searching...
No Matches
sgp30_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Inria
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
19#ifndef SGP30_PARAMS_H
20#define SGP30_PARAMS_H
21
22#include "board.h"
23#include "sgp30.h"
24#include "sgp30_constants.h"
25#include "saul_reg.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
35#ifndef SGP30_PARAM_I2C_DEV
36#define SGP30_PARAM_I2C_DEV (I2C_DEV(0))
37#endif
38#ifndef SGP30_PARAMS
39#define SGP30_PARAMS { .i2c_dev = SGP30_PARAM_I2C_DEV }
40#endif
41#ifndef SGP30_SAUL_INFO
42#define SGP30_SAUL_INFO { .name = "sgp30" }
43#endif
50{
51 SGP30_PARAMS
52};
53
57#define SGP30_NUM ARRAY_SIZE(sgp30_params)
58
63{
64 SGP30_SAUL_INFO
65};
66
70#define SGP30_INFO_NUM ARRAY_SIZE(sgp30_saul_info)
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* SGP30_PARAMS_H */
SAUL registry interface definition.
Internal addresses, registers and constants.
static const sgp30_params_t sgp30_params[]
SGP30 configuration.
static const saul_reg_info_t sgp30_saul_info[]
Additional meta information to keep in the SAUL registry.
Additional data to collect for each entry.
Definition saul_reg.h:49
Device initialization parameters.
Definition sgp30.h:80