Loading...
Searching...
No Matches
sgp30_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "sgp30.h"
20#include "sgp30_constants.h"
21#include "saul_reg.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef SGP30_PARAM_I2C_DEV
32#define SGP30_PARAM_I2C_DEV (I2C_DEV(0))
33#endif
34#ifndef SGP30_PARAMS
35#define SGP30_PARAMS { .i2c_dev = SGP30_PARAM_I2C_DEV }
36#endif
37#ifndef SGP30_SAUL_INFO
38#define SGP30_SAUL_INFO { .name = "sgp30" }
39#endif
41
46{
47 SGP30_PARAMS
48};
49
53#define SGP30_NUM ARRAY_SIZE(sgp30_params)
54
59{
60 SGP30_SAUL_INFO
61};
62
66#define SGP30_INFO_NUM ARRAY_SIZE(sgp30_saul_info)
67
68#ifdef __cplusplus
69}
70#endif
71
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:48
Device initialization parameters.
Definition sgp30.h:79