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
9#pragma once
10
20
21#include "board.h"
22#include "sgp30.h"
23#include "sgp30_constants.h"
24#include "saul_reg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef SGP30_PARAM_I2C_DEV
35#define SGP30_PARAM_I2C_DEV (I2C_DEV(0))
36#endif
37#ifndef SGP30_PARAMS
38#define SGP30_PARAMS { .i2c_dev = SGP30_PARAM_I2C_DEV }
39#endif
40#ifndef SGP30_SAUL_INFO
41#define SGP30_SAUL_INFO { .name = "sgp30" }
42#endif
44
49{
50 SGP30_PARAMS
51};
52
56#define SGP30_NUM ARRAY_SIZE(sgp30_params)
57
62{
63 SGP30_SAUL_INFO
64};
65
69#define SGP30_INFO_NUM ARRAY_SIZE(sgp30_saul_info)
70
71#ifdef __cplusplus
72}
73#endif
74
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