Loading...
Searching...
No Matches
scd30_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Puhang Ding
3 * SPDX-FileCopyrightText: 2020 Nishchay Agrawal
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "periph/i2c.h"
21#include "scd30.h"
22
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#define SCD30_I2C_ADDR 0x61
35
40#ifndef SCD30_PARAM_I2C_DEV
41#define SCD30_PARAM_I2C_DEV I2C_DEV(0)
42#endif
43#ifndef SCD30_PARAM_I2C_ADDR
44#define SCD30_PARAM_I2C_ADDR SCD30_I2C_ADDR
45#endif
46
47#ifndef SCD30_PARAMS
48#define SCD30_PARAMS { .i2c_dev = SCD30_PARAM_I2C_DEV, \
49 .i2c_addr = SCD30_PARAM_I2C_ADDR }
50#endif
51
52#ifndef SCD30_SAUL_INFO
53#define SCD30_SAUL_INFO { .name = "scd30" }
54#endif
56
61{
62 SCD30_PARAMS
63};
64
68#define SCD30_NUMOF ARRAY_SIZE(scd30_params)
69
74{
75 SCD30_SAUL_INFO
76};
77
78#ifdef __cplusplus
79}
80#endif
Low-level I2C peripheral driver interface definition.
SAUL registry interface definition.
Device driver interface for the SCD30 sensor.
static const saul_reg_info_t scd30_saul_info[]
Configure SAUL registry entries.
static const scd30_params_t scd30_params[]
Configure SCD30.
Additional data to collect for each entry.
Definition saul_reg.h:48
Device initialization parameters.
Definition scd30.h:78