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
10#pragma once
11
22
23#include "board.h"
24#include "mhz19.h"
25#include "saul_reg.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
35#ifdef MODULE_MHZ19_UART
36#ifndef MHZ19_PARAM_UART_DEV
37#define MHZ19_PARAM_UART_DEV UART_DEV(1)
38#endif
39
40#ifndef MHZ19_PARAMS
41#define MHZ19_PARAMS { .uart = MHZ19_PARAM_UART_DEV }
42#endif
43#endif /* MODULE_MHZ19_UART */
44
45#ifdef MODULE_MHZ19_PWM
46#ifndef MHZ19_PARAM_PIN
47#define MHZ19_PARAM_PIN (GPIO_PIN(0, 0))
48#endif
49
50#ifndef MHZ19_PARAMS
51#define MHZ19_PARAMS { .pin = MHZ19_PARAM_PIN }
52#endif
53#endif /* MODULE_MHZ19_PWM */
54
55#ifndef MHZ19_SAUL_INFO
56#define MHZ19_SAUL_INFO { .name = "mh-z19" }
57#endif
59
63static const mhz19_params_t mhz19_params[] =
64{
65 MHZ19_PARAMS
66};
67
76{
77 MHZ19_SAUL_INFO
78};
79
80#ifdef __cplusplus
81}
82#endif
83
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