Loading...
Searching...
No Matches
shtcx_params.h
Go to the documentation of this file.
1/*
2 * Copyright 2017, RWTH Aachen. All rights reserved.
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
21#ifndef SHTCX_PARAMS_H
22#define SHTCX_PARAMS_H
23
24#include "board.h"
25#include "shtcx.h"
26#include "shtcx_regs.h"
27#include "saul_reg.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
37#ifndef SHTCX_PARAM_I2C_DEV
38#define SHTCX_PARAM_I2C_DEV (I2C_DEV(0))
39#endif
40#ifndef SHTCX_PARAM_I2C_ADDR
41#define SHTCX_PARAM_I2C_ADDR SHTCX_I2C_ADDRESS
42#endif
43
44#ifndef SHTCX_PARAMS
45#define SHTCX_PARAMS { .i2c_dev = SHTCX_PARAM_I2C_DEV, \
46 .i2c_addr = SHTCX_PARAM_I2C_ADDR }
47#endif
48#ifndef SHTCX_SAUL_INFO
49#define SHTCX_SAUL_INFO { .name = "shtcx temperature" }, \
50 { .name = "shtcx humidity" }
51#endif
58{
59 SHTCX_PARAMS
60};
61
66{
67 SHTCX_SAUL_INFO
68};
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* SHTCX_PARAMS_H */
SAUL registry interface definition.
Device driver interface for the SHTCX Temperature and humidity sensor.
static const shtcx_params_t shtcx_params[]
Allocation of SHTCX configuration.
static const saul_reg_info_t shtcx_saul_info[]
Configure SAUL registry entries.
Register definitions for SHTCX devices.
Additional data to collect for each entry.
Definition saul_reg.h:49
settings struct with all relevant parameters
Definition shtcx.h:48