Loading...
Searching...
No Matches
mhz19_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Koen Zandberg <koen@bergzand.net>
3 * Copyright (C) 2018 Beduino Master Projekt - University of Bremen
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 MHZ19_PARAMS_H
22#define MHZ19_PARAMS_H
23
24#include "board.h"
25#include "mhz19.h"
26#include "saul_reg.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#ifdef MODULE_MHZ19_UART
37#ifndef MHZ19_PARAM_UART_DEV
38#define MHZ19_PARAM_UART_DEV UART_DEV(1)
39#endif
40
41#ifndef MHZ19_PARAMS
42#define MHZ19_PARAMS { .uart = MHZ19_PARAM_UART_DEV }
43#endif
44#endif /* MODULE_MHZ19_UART */
45
46#ifdef MODULE_MHZ19_PWM
47#ifndef MHZ19_PARAM_PIN
48#define MHZ19_PARAM_PIN (GPIO_PIN(0, 0))
49#endif
50
51#ifndef MHZ19_PARAMS
52#define MHZ19_PARAMS { .pin = MHZ19_PARAM_PIN }
53#endif
54#endif /* MODULE_MHZ19_PWM */
55
56#ifndef MHZ19_SAUL_INFO
57#define MHZ19_SAUL_INFO { .name = "mh-z19" }
58#endif
64static const mhz19_params_t mhz19_params[] =
65{
66 MHZ19_PARAMS
67};
68
77{
78 MHZ19_SAUL_INFO
79};
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif /* MHZ19_PARAMS_H */
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:49