Loading...
Searching...
No Matches
veml6070.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
22
23#include "saul.h"
24#include "periph/i2c.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
39
43enum {
46};
47
55
59typedef struct {
62
72int veml6070_init(veml6070_t *dev, const veml6070_params_t * params);
73
81uint16_t veml6070_read_uv(const veml6070_t *dev);
82
83#ifdef __cplusplus
84}
85#endif
86
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
uint_fast8_t i2c_t
Default i2c_t type definition.
Definition i2c.h:155
int veml6070_init(veml6070_t *dev, const veml6070_params_t *params)
Initialize the given VEML6070 device.
veml6070_integrationtime
Integration times.
Definition veml6070.h:33
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:35
@ VEML6070_4_T
4 T integration time
Definition veml6070.h:37
@ VEML6070_HALF_T
1/2 T integration time
Definition veml6070.h:34
@ VEML6070_2_T
2 T integration time
Definition veml6070.h:36
@ VEML6070_ERR_I2C
Error initializing the I2C bus.
Definition veml6070.h:45
@ VEML6070_OK
Everything was fine.
Definition veml6070.h:44
Low-level I2C peripheral driver interface definition.
Device initialization parameters.
Definition veml6070.h:51
i2c_t i2c_dev
I2C device which is used.
Definition veml6070.h:52
veml6070_itime_t itime
Integration time.
Definition veml6070.h:53
Device descriptor for the VEML6070 sensor.
Definition veml6070.h:59
veml6070_params_t params
Device parameters.
Definition veml6070.h:60