veml6070_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Inria
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 VEML6070_PARAMS_H
20 #define VEML6070_PARAMS_H
21 
22 #include "board.h"
23 #include "veml6070.h"
24 #include "saul_reg.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #ifndef VEML6070_PARAM_I2C_DEV
35 #define VEML6070_PARAM_I2C_DEV I2C_DEV(0)
36 #endif
37 #ifndef VEML6070_PARAM_ITIME
38 #define VEML6070_PARAM_ITIME VEML6070_1_T
39 #endif
40 
41 #ifndef VEML6070_PARAMS
42 #define VEML6070_PARAMS { .i2c_dev = VEML6070_PARAM_I2C_DEV, \
43  .itime = VEML6070_PARAM_ITIME }
44 #endif
45 #ifndef VEML6070_SAUL_INFO
46 #define VEML6070_SAUL_INFO { .name = "veml6070" }
47 #endif
48 
54 {
55  VEML6070_PARAMS
56 };
57 
62 {
63  VEML6070_SAUL_INFO
64 };
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* VEML6070_PARAMS_H */
71 
veml6070.h
Device driver interface for the VEML6070 UV sensor.
saul_reg_info_t
Additional data to collect for each entry.
Definition: saul_reg.h:49
veml6070_saul_info
static const saul_reg_info_t veml6070_saul_info[]
Configure SAUL registry entries.
Definition: veml6070_params.h:61
veml6070_params
static const veml6070_params_t veml6070_params[]
Configure VEML6070.
Definition: veml6070_params.h:53
veml6070_params_t
Device initialization parameters.
Definition: veml6070.h:55
saul_reg.h
SAUL registry interface definition.