bh1750fvi_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 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 
19 #ifndef BH1750FVI_PARAMS_H
20 #define BH1750FVI_PARAMS_H
21 
22 #include "board.h"
23 #include "bh1750fvi.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #ifndef BH1750FVI_PARAM_I2C
34 #define BH1750FVI_PARAM_I2C I2C_DEV(0)
35 #endif
36 #ifndef BH1750FVI_PARAM_ADDR
37 #define BH1750FVI_PARAM_ADDR (BH1750FVI_DEFAULT_ADDR)
38 #endif
39 
40 #ifndef BH1750FVI_PARAMS
41 #define BH1750FVI_PARAMS { .i2c = BH1750FVI_PARAM_I2C, \
42  .addr = BH1750FVI_PARAM_ADDR }
43 #endif
44 
50 {
51  BH1750FVI_PARAMS
52 };
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* BH1750FVI_PARAMS_H */
59 
static const bh1750fvi_params_t bh1750fvi_params[]
BH1750FVI configuration.
Interface definition for the Rohm BH1750FVI ambient light sensor.
Set of configuration parameters for BH1750FV devices.
Definition: bh1750fvi.h:69