Loading...
Searching...
No Matches
mhz19_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Koen Zandberg <koen@bergzand.net>
3 * SPDX-FileCopyrightText: 2018 Beduino Master Projekt - University of Bremen
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "board.h"
21#include "mhz19.h"
22#include "saul_reg.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifdef MODULE_MHZ19_UART
33#ifndef MHZ19_PARAM_UART_DEV
34#define MHZ19_PARAM_UART_DEV UART_DEV(1)
35#endif
36
37#ifndef MHZ19_PARAMS
38#define MHZ19_PARAMS { .uart = MHZ19_PARAM_UART_DEV }
39#endif
40#endif /* MODULE_MHZ19_UART */
41
42#ifdef MODULE_MHZ19_PWM
43#ifndef MHZ19_PARAM_PIN
44#define MHZ19_PARAM_PIN (GPIO_PIN(0, 0))
45#endif
46
47#ifndef MHZ19_PARAMS
48#define MHZ19_PARAMS { .pin = MHZ19_PARAM_PIN }
49#endif
50#endif /* MODULE_MHZ19_PWM */
51
52#ifndef MHZ19_SAUL_INFO
53#define MHZ19_SAUL_INFO { .name = "mh-z19" }
54#endif
56
60static const mhz19_params_t mhz19_params[] =
61{
62 MHZ19_PARAMS
63};
64
73{
74 MHZ19_SAUL_INFO
75};
76
77#ifdef __cplusplus
78}
79#endif
80
Interface definition for the MH-Z19 CO2 sensor driver.
static const mhz19_params_t mhz19_params[]
Configure MHZ19.
static const saul_reg_info_t mhz19_saul_info[]
Configuration details of SAUL registry entries.
SAUL registry interface definition.
Additional data to collect for each entry.
Definition saul_reg.h:48