Loading...
Searching...
No Matches
tcs37727_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 "tcs37727.h"
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef TCS37727_PARAM_I2C
34#define TCS37727_PARAM_I2C I2C_DEV(0)
35#endif
36#ifndef TCS37727_PARAM_ADDR
37#define TCS37727_PARAM_ADDR (TCS37727_I2C_ADDRESS)
38#endif
39#ifndef TCS37727_PARAM_ATIME
40#define TCS37727_PARAM_ATIME (CONFIG_TCS37727_ATIME_DEFAULT)
41#endif
42
43#ifndef TCS37727_PARAMS
44#define TCS37727_PARAMS { .i2c = TCS37727_PARAM_I2C, \
45 .addr = TCS37727_PARAM_ADDR, \
46 .atime = TCS37727_PARAM_ATIME }
47#endif
48#ifndef TCS37727_SAUL_INFO
49#define TCS37727_SAUL_INFO { .name = "tcs37727" }
50#endif
52
57{
58 TCS37727_PARAMS
59};
60
65{
66 TCS37727_SAUL_INFO
67};
68
69#ifdef __cplusplus
70}
71#endif
72
SAUL registry interface definition.
Additional data to collect for each entry.
Definition saul_reg.h:48
TCS37727 configuration parameters.
Definition tcs37727.h:75
Interface definition for the TCS37727 sensor driver.
static const saul_reg_info_t tcs37727_saul_info[]
Additional meta information to keep in the SAUL registry.
static const tcs37727_params_t tcs37727_params[]
TCS37727 configuration.