Loading...
Searching...
No Matches
hdc1000_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Freie Universität Berlin
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
19#ifndef HDC1000_PARAMS_H
20#define HDC1000_PARAMS_H
21
22#include "board.h"
23#include "hdc1000.h"
24#include "saul_reg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef HDC1000_PARAM_I2C
38#define HDC1000_PARAM_I2C I2C_DEV(0)
39#endif
40
41#ifndef HDC1000_PARAM_ADDR
45#define HDC1000_PARAM_ADDR (CONFIG_HDC1000_I2C_ADDRESS)
46#endif
47
48#ifndef HDC1000_PARAM_RES
52#define HDC1000_PARAM_RES HDC1000_14BIT
53#endif
54
55#ifndef HDC1000_PARAM_RENEW_INTERVAL
59#define HDC1000_PARAM_RENEW_INTERVAL (1000000ul)
60#endif
61
62#ifndef HDC1000_PARAMS
66#define HDC1000_PARAMS { .i2c = HDC1000_PARAM_I2C, \
67 .addr = HDC1000_PARAM_ADDR, \
68 .res = HDC1000_PARAM_RES, \
69 .renew_interval = HDC1000_PARAM_RENEW_INTERVAL }
70#endif
71
72#ifndef HDC1000_SAUL_INFO
76#define HDC1000_SAUL_INFO { .name = "hdc1000" }
77#endif
84{
86};
87
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif /* HDC1000_PARAMS_H */
Interface definition for the HDC1000 sensor driver.
#define HDC1000_PARAMS
Parameters to initialize the HDC1000 driver with.
#define HDC1000_SAUL_INFO
SAUL info to register HDC1000 driver instances with.
static const hdc1000_params_t hdc1000_params[]
HDC1000 configuration.
static const saul_reg_info_t hdc1000_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
Parameters needed for device initialization.
Definition hdc1000.h:102
Additional data to collect for each entry.
Definition saul_reg.h:49