Loading...
Searching...
No Matches
hdc1000_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "hdc1000.h"
20#include "saul_reg.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#ifndef HDC1000_PARAM_I2C
34#define HDC1000_PARAM_I2C I2C_DEV(0)
35#endif
36
37#ifndef HDC1000_PARAM_ADDR
41#define HDC1000_PARAM_ADDR (CONFIG_HDC1000_I2C_ADDRESS)
42#endif
43
44#ifndef HDC1000_PARAM_RES
48#define HDC1000_PARAM_RES HDC1000_14BIT
49#endif
50
51#ifndef HDC1000_PARAM_RENEW_INTERVAL
55#define HDC1000_PARAM_RENEW_INTERVAL (1000000ul)
56#endif
57
58#ifndef HDC1000_PARAMS
62#define HDC1000_PARAMS { .i2c = HDC1000_PARAM_I2C, \
63 .addr = HDC1000_PARAM_ADDR, \
64 .res = HDC1000_PARAM_RES, \
65 .renew_interval = HDC1000_PARAM_RENEW_INTERVAL }
66#endif
67
68#ifndef HDC1000_SAUL_INFO
72#define HDC1000_SAUL_INFO { .name = "hdc1000" }
73#endif
75
80{
82};
83
91
92#ifdef __cplusplus
93}
94#endif
95
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:101
Additional data to collect for each entry.
Definition saul_reg.h:48