Loading...
Searching...
No Matches
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
9#pragma once
10
20
21#include "board.h"
22#include "veml6070.h"
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef VEML6070_PARAM_I2C_DEV
34#define VEML6070_PARAM_I2C_DEV I2C_DEV(0)
35#endif
36#ifndef VEML6070_PARAM_ITIME
37#define VEML6070_PARAM_ITIME VEML6070_1_T
38#endif
39
40#ifndef VEML6070_PARAMS
41#define VEML6070_PARAMS { .i2c_dev = VEML6070_PARAM_I2C_DEV, \
42 .itime = VEML6070_PARAM_ITIME }
43#endif
44#ifndef VEML6070_SAUL_INFO
45#define VEML6070_SAUL_INFO { .name = "veml6070" }
46#endif
48
53{
54 VEML6070_PARAMS
55};
56
61{
62 VEML6070_SAUL_INFO
63};
64
65#ifdef __cplusplus
66}
67#endif
68
SAUL registry interface definition.
Additional data to collect for each entry.
Definition saul_reg.h:48
Device initialization parameters.
Definition veml6070.h:54
Device driver interface for the VEML6070 UV sensor.
static const veml6070_params_t veml6070_params[]
Configure VEML6070.
static const saul_reg_info_t veml6070_saul_info[]
Configure SAUL registry entries.