Loading...
Searching...
No Matches
opt3001_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "opt3001.h"
20#include "saul_reg.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
31 #ifndef OPT3001_PARAM_I2C_DEV
32 #define OPT3001_PARAM_I2C_DEV I2C_DEV(0)
33 #endif
34 #ifndef OPT3001_PARAM_I2C_ADDR
35 #define OPT3001_PARAM_I2C_ADDR (CONFIG_OPT3001_I2C_ADDRESS)
36 #endif
37
38 #ifndef OPT3001_PARAMS
39 #define OPT3001_PARAMS { .i2c_dev = OPT3001_PARAM_I2C_DEV, \
40 .i2c_addr = OPT3001_PARAM_I2C_ADDR}
41
42 #endif
43 #ifndef OPT3001_SAUL_INFO
44 #define OPT3001_SAUL_INFO { .name = "opt3001" }
45 #endif
47
52 {
53 OPT3001_PARAMS
54 };
55
60 {
61 OPT3001_SAUL_INFO
62 };
63
64#ifdef __cplusplus
65}
66#endif
67
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:92
Additional data to collect for each entry.
Definition saul_reg.h:48