isl29125_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Freie Universität Berlin
3  * Copyright (C) 2018 HAW-Hamburg
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef ISL29125_PARAMS_H
22 #define ISL29125_PARAMS_H
23 
24 #include "board.h"
25 #include "isl29125.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #ifndef ISL29125_PARAM_I2C
36 #define ISL29125_PARAM_I2C I2C_DEV(0)
37 #endif
38 #ifndef ISL29125_PARAM_GPIO
39 #define ISL29125_PARAM_GPIO (GPIO_PIN(0, 0))
40 #endif
41 #ifndef ISL29125_PARAM_RANGE
42 #define ISL29125_PARAM_RANGE (ISL29125_RANGE_10K)
43 #endif
44 #ifndef ISL29125_PARAM_MODE
45 #define ISL29125_PARAM_MODE (ISL29125_MODE_RGB)
46 #endif
47 #ifndef ISL29125_PARAM_RES
48 #define ISL29125_PARAM_RES (ISL29125_RESOLUTION_16)
49 #endif
50 
51 #ifndef ISL29125_PARAMS
52 #define ISL29125_PARAMS { .i2c = ISL29125_PARAM_I2C, \
53  .gpio = ISL29125_PARAM_GPIO, \
54  .range = ISL29125_PARAM_RANGE, \
55  .mode = ISL29125_PARAM_MODE, \
56  .res = ISL29125_PARAM_RES }
57 #endif
58 
64 {
65  ISL29125_PARAMS
66 };
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* ISL29125_PARAMS_H */
73 
isl29125_params
static const isl29125_params_t isl29125_params[]
Allocate some memory to store the actual configuration.
Definition: isl29125_params.h:63
isl29125.h
Device driver interface for the ISL29125 RGB light sensor.
isl29125_params_t
Device parameters for ISL29125 sensors.
Definition: isl29125.h:105