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
9#pragma once
10
22
23#include "board.h"
24#include "shtcx.h"
25#include "shtcx_regs.h"
26#include "saul_reg.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#ifndef SHTCX_PARAM_I2C_DEV
37#define SHTCX_PARAM_I2C_DEV (I2C_DEV(0))
38#endif
39#ifndef SHTCX_PARAM_I2C_ADDR
40#define SHTCX_PARAM_I2C_ADDR SHTCX_I2C_ADDRESS
41#endif
42
43#ifndef SHTCX_PARAMS
44#define SHTCX_PARAMS { .i2c_dev = SHTCX_PARAM_I2C_DEV, \
45 .i2c_addr = SHTCX_PARAM_I2C_ADDR }
46#endif
47#ifndef SHTCX_SAUL_INFO
48#define SHTCX_SAUL_INFO { .name = "shtcx temperature" }, \
49 { .name = "shtcx humidity" }
50#endif
52
57{
58 SHTCX_PARAMS
59};
60
65{
66 SHTCX_SAUL_INFO
67};
68
69#ifdef __cplusplus
70}
71#endif
72
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:48
settings struct with all relevant parameters
Definition shtcx.h:47