Loading...
Searching...
No Matches
opt3001_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 HAW Hamburg
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
19#ifndef OPT3001_PARAMS_H
20#define OPT3001_PARAMS_H
21
22#include "board.h"
23#include "opt3001.h"
24#include "saul_reg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
35 #ifndef OPT3001_PARAM_I2C_DEV
36 #define OPT3001_PARAM_I2C_DEV I2C_DEV(0)
37 #endif
38 #ifndef OPT3001_PARAM_I2C_ADDR
39 #define OPT3001_PARAM_I2C_ADDR (CONFIG_OPT3001_I2C_ADDRESS)
40 #endif
41
42 #ifndef OPT3001_PARAMS
43 #define OPT3001_PARAMS { .i2c_dev = OPT3001_PARAM_I2C_DEV, \
44 .i2c_addr = OPT3001_PARAM_I2C_ADDR}
45
46 #endif
47 #ifndef OPT3001_SAUL_INFO
48 #define OPT3001_SAUL_INFO { .name = "opt3001" }
49 #endif
56 {
57 OPT3001_PARAMS
58 };
59
64 {
65 OPT3001_SAUL_INFO
66 };
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* OPT3001_PARAMS_H */
Interface definition for the OPT3001 sensor driver.
static const opt3001_params_t opt3001_params[]
OPT3001 configuration.
static const saul_reg_info_t opt3001_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
Parameters needed for device initialization.
Definition opt3001.h:96
Additional data to collect for each entry.
Definition saul_reg.h:49