tcs37727_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 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 TCS37727_PARAMS_H
20 #define TCS37727_PARAMS_H
21 
22 #include "board.h"
23 #include "tcs37727.h"
24 #include "saul_reg.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #ifndef TCS37727_PARAM_I2C
35 #define TCS37727_PARAM_I2C I2C_DEV(0)
36 #endif
37 #ifndef TCS37727_PARAM_ADDR
38 #define TCS37727_PARAM_ADDR (TCS37727_I2C_ADDRESS)
39 #endif
40 #ifndef TCS37727_PARAM_ATIME
41 #define TCS37727_PARAM_ATIME (CONFIG_TCS37727_ATIME_DEFAULT)
42 #endif
43 
44 #ifndef TCS37727_PARAMS
45 #define TCS37727_PARAMS { .i2c = TCS37727_PARAM_I2C, \
46  .addr = TCS37727_PARAM_ADDR, \
47  .atime = TCS37727_PARAM_ATIME }
48 #endif
49 #ifndef TCS37727_SAUL_INFO
50 #define TCS37727_SAUL_INFO { .name = "tcs37727" }
51 #endif
52 
58 {
59  TCS37727_PARAMS
60 };
61 
66 {
67  TCS37727_SAUL_INFO
68 };
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* TCS37727_PARAMS_H */
75 
static const saul_reg_info_t tcs37727_saul_info[]
Additional meta information to keep in the SAUL registry.
static const tcs37727_params_t tcs37727_params[]
TCS37727 configuration.
Interface definition for the TCS37727 sensor driver.
Additional data to collect for each entry.
Definition: saul_reg.h:49
SAUL registry interface definition.
TCS37727 configuration parameters.
Definition: tcs37727.h:76