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
9#pragma once
10
20
21#include "board.h"
22#include "hdc1000.h"
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef HDC1000_PARAM_I2C
37#define HDC1000_PARAM_I2C I2C_DEV(0)
38#endif
39
40#ifndef HDC1000_PARAM_ADDR
44#define HDC1000_PARAM_ADDR (CONFIG_HDC1000_I2C_ADDRESS)
45#endif
46
47#ifndef HDC1000_PARAM_RES
51#define HDC1000_PARAM_RES HDC1000_14BIT
52#endif
53
54#ifndef HDC1000_PARAM_RENEW_INTERVAL
58#define HDC1000_PARAM_RENEW_INTERVAL (1000000ul)
59#endif
60
61#ifndef HDC1000_PARAMS
65#define HDC1000_PARAMS { .i2c = HDC1000_PARAM_I2C, \
66 .addr = HDC1000_PARAM_ADDR, \
67 .res = HDC1000_PARAM_RES, \
68 .renew_interval = HDC1000_PARAM_RENEW_INTERVAL }
69#endif
70
71#ifndef HDC1000_SAUL_INFO
75#define HDC1000_SAUL_INFO { .name = "hdc1000" }
76#endif
78
83{
85};
86
94
95#ifdef __cplusplus
96}
97#endif
98
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