Loading...
Searching...
No Matches
sht3x_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Gunar Schorcht
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
18
19#include "board.h"
20#include "sht3x.h"
21#include "saul_reg.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef SHT3X_PARAM_I2C_DEV
32#define SHT3X_PARAM_I2C_DEV (I2C_DEV(0))
33#endif
34#ifndef SHT3X_PARAM_I2C_ADDR
35#define SHT3X_PARAM_I2C_ADDR (SHT3X_I2C_ADDR_2)
36#endif
37#ifndef SHT3X_PARAM_MODE
38#define SHT3X_PARAM_MODE (SHT3X_PERIODIC_2_MPS)
39#endif
40#ifndef SHT3X_PARAM_REPEAT
41#define SHT3X_PARAM_REPEAT (SHT3X_HIGH)
42#endif
43
44#ifndef SHT3X_PARAMS
45#define SHT3X_PARAMS { .i2c_dev = SHT3X_PARAM_I2C_DEV, \
46 .i2c_addr = SHT3X_PARAM_I2C_ADDR, \
47 .mode = SHT3X_PARAM_MODE, \
48 .repeat = SHT3X_PARAM_REPEAT \
49 }
50#endif
51
52#ifndef SHT3X_SAUL_INFO
53#define SHT3X_SAUL_INFO { .name = "sht3x1" }
54#endif
56
61{
62 SHT3X_PARAMS
63};
64
69{
70 SHT3X_SAUL_INFO
71};
72
73#ifdef __cplusplus
74}
75#endif
76
SAUL registry interface definition.
Device Driver for Sensirion SHT30/SHT31/SHT35 Humidity and Temperature Sensors.
static const saul_reg_info_t sht3x_saul_info[]
Additional meta information to keep in the SAUL registry.
static const sht3x_params_t sht3x_params[]
SHT3x configuration.
Additional data to collect for each entry.
Definition saul_reg.h:48
SHT3x device initialization parameters.
Definition sht3x.h:82