bh1900nux_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Nalys
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 
21 #include "board.h"
22 #include "bh1900nux.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #ifndef BH1900NUX_PARAM_I2C
33 #define BH1900NUX_PARAM_I2C I2C_DEV(0)
34 #endif
35 #ifndef BH1900NUX_PARAM_ADDR
36 #define BH1900NUX_PARAM_ADDR (BH1900NUX_DEFAULT_ADDR)
37 #endif
38 
39 #ifndef BH1900NUX_PARAMS
40 #define BH1900NUX_PARAMS { .i2c = BH1900NUX_PARAM_I2C, \
41  .addr = BH1900NUX_PARAM_ADDR }
42 #endif
49 {
50  BH1900NUX_PARAMS
51 };
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
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