Loading...
Searching...
No Matches
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
24#ifndef VEML6070_H
25#define VEML6070_H
26
27#include "saul.h"
28#include "periph/i2c.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
43
47enum {
50};
51
59
63typedef struct {
66
76int veml6070_init(veml6070_t *dev, const veml6070_params_t * params);
77
85uint16_t veml6070_read_uv(const veml6070_t *dev);
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* VEML6070_H */
uint_fast8_t i2c_t
Default i2c_t type definition.
Definition i2c.h:151
int veml6070_init(veml6070_t *dev, const veml6070_params_t *params)
Initialize the given VEML6070 device.
veml6070_integrationtime
Integration times.
Definition veml6070.h:37
uint16_t veml6070_read_uv(const veml6070_t *dev)
Read UV index from the given VEML6070 device.
enum veml6070_integrationtime veml6070_itime_t
Integration times.
@ VEML6070_1_T
1 T integration time
Definition veml6070.h:39
@ VEML6070_4_T
4 T integration time
Definition veml6070.h:41
@ VEML6070_HALF_T
1/2 T integration time
Definition veml6070.h:38
@ VEML6070_2_T
2 T integration time
Definition veml6070.h:40
@ VEML6070_ERR_I2C
Error initializing the I2C bus.
Definition veml6070.h:49
@ VEML6070_OK
Everything was fine.
Definition veml6070.h:48
Low-level I2C peripheral driver interface definition.
Device initialization parameters.
Definition veml6070.h:55
i2c_t i2c_dev
I2C device which is used.
Definition veml6070.h:56
veml6070_itime_t itime
Integration time.
Definition veml6070.h:57
Device descriptor for the VEML6070 sensor.
Definition veml6070.h:63
veml6070_params_t params
Device parameters.
Definition veml6070.h:64
Functionality for reading [S]ensor [A]ctuator [U]ber [L]ayer sensors as SenML.