veml6070.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 
21 #ifndef VEML6070_H
22 #define VEML6070_H
23 
24 #include "saul.h"
25 #include "periph/i2c.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
40 
44 enum {
47 };
48 
52 typedef struct {
56 
60 typedef struct {
62 } veml6070_t;
63 
73 int veml6070_init(veml6070_t *dev, const veml6070_params_t * params);
74 
82 uint16_t veml6070_read_uv(veml6070_t *dev);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* VEML6070_H */
89 
Error initializing the I2C bus.
Definition: veml6070.h:46
unsigned int i2c_t
Default i2c_t type definition.
Definition: i2c.h:104
1 T integration time
Definition: veml6070.h:36
4 T integration time
Definition: veml6070.h:38
1/2 T integration time
Definition: veml6070.h:35
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
Device initialization parameters.
Definition: veml6070.h:52
2 T integration time
Definition: veml6070.h:37
i2c_t i2c_dev
I2C device which is used.
Definition: veml6070.h:53
uint16_t veml6070_read_uv(veml6070_t *dev)
Read UV index from the given VEML6070 device.
veml6070_params_t params
Device parameters.
Definition: veml6070.h:61
int veml6070_init(veml6070_t *dev, const veml6070_params_t *params)
Initialize the given VEML6070 device.
enum veml6070_integrationtime veml6070_itime_t
Integration times.
veml6070_integrationtime
Integration times.
Definition: veml6070.h:34
veml6070_itime_t itime
Integration time.
Definition: veml6070.h:54
Device descriptor for the VEML6070 sensor.
Definition: veml6070.h:60
Everything was fine.
Definition: veml6070.h:45
Low-level I2C peripheral driver interface definition.