Loading...
Searching...
No Matches
isl29020_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Freie Universität Berlin
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 "isl29020.h"
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef ISL29020_PARAM_I2C
34#define ISL29020_PARAM_I2C I2C_DEV(0)
35#endif
36#ifndef ISL29020_PARAM_ADDR
37#define ISL29020_PARAM_ADDR (CONFIG_ISL29020_DEFAULT_ADDRESS)
38#endif
39#ifndef ISL29020_PARAM_RANGE
40#define ISL29020_PARAM_RANGE (ISL29020_RANGE_16K)
41#endif
42#ifndef ISL29020_PARAM_MODE
43#define ISL29020_PARAM_MODE (ISL29020_MODE_AMBIENT)
44#endif
45
46#ifndef ISL29020_PARAMS
47#define ISL29020_PARAMS { .i2c = ISL29020_PARAM_I2C, \
48 .addr = ISL29020_PARAM_ADDR, \
49 .range = ISL29020_PARAM_RANGE, \
50 .mode = ISL29020_PARAM_MODE }
51#endif
52#ifndef ISL29020_SAUL_INFO
53#define ISL29020_SAUL_INFO { .name = "isl29020" }
54#endif
56
61{
62 ISL29020_PARAMS
63};
64
69{
70 ISL29020_SAUL_INFO
71};
72
73#ifdef __cplusplus
74}
75#endif
76
Device driver interface for the ISL29020 light sensor.
static const isl29020_params_t isl29020_params[]
Allocate some memory to store the actual configuration.
static const saul_reg_info_t isl29020_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
Data structure holding the full set of configuration parameters.
Definition isl29020.h:71
Additional data to collect for each entry.
Definition saul_reg.h:48