Loading...
Searching...
No Matches
isl29125_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3 * SPDX-FileCopyrightText: 2018 HAW Hamburg
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "board.h"
21#include "isl29125.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef ISL29125_PARAM_I2C
32#define ISL29125_PARAM_I2C I2C_DEV(0)
33#endif
34#ifndef ISL29125_PARAM_GPIO
35#define ISL29125_PARAM_GPIO (GPIO_PIN(0, 0))
36#endif
37#ifndef ISL29125_PARAM_RANGE
38#define ISL29125_PARAM_RANGE (ISL29125_RANGE_10K)
39#endif
40#ifndef ISL29125_PARAM_MODE
41#define ISL29125_PARAM_MODE (ISL29125_MODE_RGB)
42#endif
43#ifndef ISL29125_PARAM_RES
44#define ISL29125_PARAM_RES (ISL29125_RESOLUTION_16)
45#endif
46
47#ifndef ISL29125_PARAMS
48#define ISL29125_PARAMS { .i2c = ISL29125_PARAM_I2C, \
49 .gpio = ISL29125_PARAM_GPIO, \
50 .range = ISL29125_PARAM_RANGE, \
51 .mode = ISL29125_PARAM_MODE, \
52 .res = ISL29125_PARAM_RES }
53#endif
55
60{
61 ISL29125_PARAMS
62};
63
64#ifdef __cplusplus
65}
66#endif
67
Device driver interface for the ISL29125 RGB light sensor.
static const isl29125_params_t isl29125_params[]
Allocate some memory to store the actual configuration.
Device parameters for ISL29125 sensors.
Definition isl29125.h:101