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 
19 #ifndef BH1900NUX_PARAMS_H
20 #define BH1900NUX_PARAMS_H
21 
22 #include "board.h"
23 #include "bh1900nux.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #ifndef BH1900NUX_PARAM_I2C
34 #define BH1900NUX_PARAM_I2C I2C_DEV(0)
35 #endif
36 #ifndef BH1900NUX_PARAM_ADDR
37 #define BH1900NUX_PARAM_ADDR (BH1900NUX_DEFAULT_ADDR)
38 #endif
39 
40 #ifndef BH1900NUX_PARAMS
41 #define BH1900NUX_PARAMS { .i2c = BH1900NUX_PARAM_I2C, \
42  .addr = BH1900NUX_PARAM_ADDR }
43 #endif
44 
50 {
51  BH1900NUX_PARAMS
52 };
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* BH1900NUX_PARAMS_H */
59 
bh1900nux_params
static const bh1900nux_params_t bh1900nux_params[]
BH1900NUX configuration.
Definition: bh1900nux_params.h:49
bh1900nux.h
Interface definition for the BH1900NUX temperature sensor.
bh1900nux_params_t
Set of configuration parameters for BH1900NUX devices.
Definition: bh1900nux.h:84