Loading...
Searching...
No Matches
bh1900nux_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Nalys
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "bh1900nux.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#ifndef BH1900NUX_PARAM_I2C
30#define BH1900NUX_PARAM_I2C I2C_DEV(0)
31#endif
32#ifndef BH1900NUX_PARAM_ADDR
33#define BH1900NUX_PARAM_ADDR (BH1900NUX_DEFAULT_ADDR)
34#endif
35
36#ifndef BH1900NUX_PARAMS
37#define BH1900NUX_PARAMS { .i2c = BH1900NUX_PARAM_I2C, \
38 .addr = BH1900NUX_PARAM_ADDR }
39#endif
41
46{
47 BH1900NUX_PARAMS
48};
49
50#ifdef __cplusplus
51}
52#endif
53
Interface definition for the BH1900NUX temperature sensor.
static const bh1900nux_params_t bh1900nux_params[]
BH1900NUX configuration.
Set of configuration parameters for BH1900NUX devices.
Definition bh1900nux.h:83