Loading...
Searching...
No Matches
scd30_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Puhang Ding
3 * 2020 Nishchay Agrawal
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
21#ifndef SCD30_PARAMS_H
22#define SCD30_PARAMS_H
23
24#include "periph/i2c.h"
25#include "scd30.h"
26
27#include "saul_reg.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
37#define SCD30_I2C_ADDR 0x61
44#ifndef SCD30_PARAM_I2C_DEV
45#define SCD30_PARAM_I2C_DEV I2C_DEV(0)
46#endif
47#ifndef SCD30_PARAM_I2C_ADDR
48#define SCD30_PARAM_I2C_ADDR SCD30_I2C_ADDR
49#endif
50
51#ifndef SCD30_PARAMS
52#define SCD30_PARAMS { .i2c_dev = SCD30_PARAM_I2C_DEV, \
53 .i2c_addr = SCD30_PARAM_I2C_ADDR }
54#endif
55
56#ifndef SCD30_SAUL_INFO
57#define SCD30_SAUL_INFO { .name = "scd30" }
58#endif
65{
66 SCD30_PARAMS
67};
68
72#define SCD30_NUMOF ARRAY_SIZE(scd30_params)
73
78{
79 SCD30_SAUL_INFO
80};
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* SCD30_PARAMS_H */
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:49
Device initialization parameters.
Definition scd30.h:79